From 8e825d39aeb4393309d3ffe9be18b70c6739c76f Mon Sep 17 00:00:00 2001 From: GuyEshdat Date: Thu, 16 Jul 2026 15:06:56 +0300 Subject: [PATCH 1/2] python sdk fixes --- docs/python-sdk/api-reference/overview.mdx | 12 ++++++------ docs/python-sdk/quickstart.mdx | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/python-sdk/api-reference/overview.mdx b/docs/python-sdk/api-reference/overview.mdx index 80fd07f23..c1628843b 100644 --- a/docs/python-sdk/api-reference/overview.mdx +++ b/docs/python-sdk/api-reference/overview.mdx @@ -40,7 +40,7 @@ Where: - `project_id` is your Python project identifier (chosen by you, used to deduplicate and identify reported assets) - `api_key` is your API token (generated from the steps above) - `url` is the full SDK ingest endpoint URL (the Elementary team will provide you with this URL): `{base_url}/sdk-ingest/{env_id}/batch` - - Example: `https://app.elementary-data.com/sdk-ingest/a6b2425d-36e2-4e13-8458-9825688ca1f2/batch` + - Example: `https://prod.api.elementary-data.com/sdk-ingest/a6b2425d-36e2-4e13-8458-9825688ca1f2/batch` ## Test Context @@ -86,7 +86,7 @@ You can also use context managers for inline tests: with elementary_test_context(asset=asset) as ctx: # Using context managers with ctx.boolean_test(name="my_test", description="Inline test") as my_bool_test: - my_bool_test.assert_value(my_test_function()) + my_bool_test.check_value(my_test_function()) with ctx.expected_values_test( name="country_count", @@ -95,23 +95,23 @@ with elementary_test_context(asset=asset) as ctx: metadata={"my_metadata_field": "my_metadata_value"}, ) as my_expected_values_test: # This will fail - my_expected_values_test.assert_value(5) + my_expected_values_test.check_value(5) # This will pass - my_expected_values_test.assert_value(3) + my_expected_values_test.check_value(3) with ctx.expected_range_test( name="age_range", min=18, max=50, ) as my_range_test: - my_range_test.assert_value(25.5) + my_range_test.check_value(25.5) with ctx.row_count_test( name="row_count", min=1, max=1000, ) as my_row_count_test: - my_row_count_test.assert_value(users_df) # Passes DataFrame, list, etc. + my_row_count_test.check_value(users_df) # Passes DataFrame, list, etc. ``` ## Supported Objects diff --git a/docs/python-sdk/quickstart.mdx b/docs/python-sdk/quickstart.mdx index ed6def244..ae132b3bf 100644 --- a/docs/python-sdk/quickstart.mdx +++ b/docs/python-sdk/quickstart.mdx @@ -117,7 +117,7 @@ def main(): # Send results to Elementary Cloud PROJECT_ID = "my-python-project" # Your Python project identifier (used to deduplicate and identify assets) API_KEY = "your-api-key" - URL = "https://app.elementary-data.com/sdk-ingest/{env_id}/batch" + URL = "https://prod.api.elementary-data.com/sdk-ingest/{env_id}/batch" client = ElementaryCloudClient(PROJECT_ID, API_KEY, URL) client.send_to_cloud(ctx) From 4603065e7291dc1abfae8bc993c663fe99a5f7a1 Mon Sep 17 00:00:00 2001 From: GuyEshdat Date: Thu, 16 Jul 2026 15:10:26 +0300 Subject: [PATCH 2/2] fixed python sdk url endpoint --- docs/python-sdk/installation.mdx | 2 +- docs/python-sdk/quickstart.mdx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/python-sdk/installation.mdx b/docs/python-sdk/installation.mdx index 697d55ddd..a06b7b691 100644 --- a/docs/python-sdk/installation.mdx +++ b/docs/python-sdk/installation.mdx @@ -38,7 +38,7 @@ To use the Python SDK, you'll need: 1. **Project ID** - Your Python project identifier (choose any string to identify your code project; used to deduplicate and identify reported assets) 2. **API Key** - Your Elementary Cloud API token 3. **URL** - The full endpoint URL: `{base_url}/sdk-ingest/{env_id}/batch` - - Example: `https://app.elementary-data.com/sdk-ingest/a6b2425d-36e2-4e13-8458-9825688ca1f2/batch` + - Example: `https://prod.api.elementary-data.com/sdk-ingest/a6b2425d-36e2-4e13-8458-9825688ca1f2/batch` ### Generate an Access Token diff --git a/docs/python-sdk/quickstart.mdx b/docs/python-sdk/quickstart.mdx index ae132b3bf..6099bb06e 100644 --- a/docs/python-sdk/quickstart.mdx +++ b/docs/python-sdk/quickstart.mdx @@ -191,7 +191,7 @@ def main(): # Initialize client and send results PROJECT_ID = "my-python-project" # Your Python project identifier (used to deduplicate and identify assets) API_KEY = "your-api-key" - URL = "https://app.elementary-data.com/sdk-ingest/{env_id}/batch" + URL = "https://prod.api.elementary-data.com/sdk-ingest/{env_id}/batch" client = ElementaryCloudClient(PROJECT_ID, API_KEY, URL) client.send_to_cloud(ctx)