wherobots-python-sdk 0.7.0__tar.gz → 0.7.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {wherobots_python_sdk-0.7.0 → wherobots_python_sdk-0.7.1}/PKG-INFO +4 -5
- {wherobots_python_sdk-0.7.0 → wherobots_python_sdk-0.7.1}/README.md +3 -4
- {wherobots_python_sdk-0.7.0 → wherobots_python_sdk-0.7.1}/wherobots/__version__.py +1 -1
- {wherobots_python_sdk-0.7.0 → wherobots_python_sdk-0.7.1}/wherobots/client.py +6 -6
- {wherobots_python_sdk-0.7.0 → wherobots_python_sdk-0.7.1}/wherobots/config.py +10 -9
- {wherobots_python_sdk-0.7.0 → wherobots_python_sdk-0.7.1}/wherobots_python_sdk.egg-info/PKG-INFO +4 -5
- {wherobots_python_sdk-0.7.0 → wherobots_python_sdk-0.7.1}/LICENSE +0 -0
- {wherobots_python_sdk-0.7.0 → wherobots_python_sdk-0.7.1}/pyproject.toml +0 -0
- {wherobots_python_sdk-0.7.0 → wherobots_python_sdk-0.7.1}/setup.cfg +0 -0
- {wherobots_python_sdk-0.7.0 → wherobots_python_sdk-0.7.1}/tests/test_api.py +0 -0
- {wherobots_python_sdk-0.7.0 → wherobots_python_sdk-0.7.1}/tests/test_base_client.py +0 -0
- {wherobots_python_sdk-0.7.0 → wherobots_python_sdk-0.7.1}/tests/test_client.py +0 -0
- {wherobots_python_sdk-0.7.0 → wherobots_python_sdk-0.7.1}/tests/test_client_header.py +0 -0
- {wherobots_python_sdk-0.7.0 → wherobots_python_sdk-0.7.1}/tests/test_config.py +0 -0
- {wherobots_python_sdk-0.7.0 → wherobots_python_sdk-0.7.1}/tests/test_enums.py +0 -0
- {wherobots_python_sdk-0.7.0 → wherobots_python_sdk-0.7.1}/tests/test_exceptions.py +0 -0
- {wherobots_python_sdk-0.7.0 → wherobots_python_sdk-0.7.1}/tests/test_files_api.py +0 -0
- {wherobots_python_sdk-0.7.0 → wherobots_python_sdk-0.7.1}/tests/test_files_drive.py +0 -0
- {wherobots_python_sdk-0.7.0 → wherobots_python_sdk-0.7.1}/tests/test_init_exports.py +0 -0
- {wherobots_python_sdk-0.7.0 → wherobots_python_sdk-0.7.1}/tests/test_integration.py +0 -0
- {wherobots_python_sdk-0.7.0 → wherobots_python_sdk-0.7.1}/tests/test_logger.py +0 -0
- {wherobots_python_sdk-0.7.0 → wherobots_python_sdk-0.7.1}/tests/test_models.py +0 -0
- {wherobots_python_sdk-0.7.0 → wherobots_python_sdk-0.7.1}/tests/test_regressions.py +0 -0
- {wherobots_python_sdk-0.7.0 → wherobots_python_sdk-0.7.1}/tests/test_security.py +0 -0
- {wherobots_python_sdk-0.7.0 → wherobots_python_sdk-0.7.1}/tests/test_tasks.py +0 -0
- {wherobots_python_sdk-0.7.0 → wherobots_python_sdk-0.7.1}/tests/test_utils.py +0 -0
- {wherobots_python_sdk-0.7.0 → wherobots_python_sdk-0.7.1}/tests/test_workload_auth.py +0 -0
- {wherobots_python_sdk-0.7.0 → wherobots_python_sdk-0.7.1}/wherobots/__init__.py +0 -0
- {wherobots_python_sdk-0.7.0 → wherobots_python_sdk-0.7.1}/wherobots/api/__init__.py +0 -0
- {wherobots_python_sdk-0.7.0 → wherobots_python_sdk-0.7.1}/wherobots/api/base.py +0 -0
- {wherobots_python_sdk-0.7.0 → wherobots_python_sdk-0.7.1}/wherobots/api/drive.py +0 -0
- {wherobots_python_sdk-0.7.0 → wherobots_python_sdk-0.7.1}/wherobots/api/files.py +0 -0
- {wherobots_python_sdk-0.7.0 → wherobots_python_sdk-0.7.1}/wherobots/api/runs.py +0 -0
- {wherobots_python_sdk-0.7.0 → wherobots_python_sdk-0.7.1}/wherobots/api/tasks.py +0 -0
- {wherobots_python_sdk-0.7.0 → wherobots_python_sdk-0.7.1}/wherobots/api/workload_auth.py +0 -0
- {wherobots_python_sdk-0.7.0 → wherobots_python_sdk-0.7.1}/wherobots/enums.py +0 -0
- {wherobots_python_sdk-0.7.0 → wherobots_python_sdk-0.7.1}/wherobots/exceptions.py +0 -0
- {wherobots_python_sdk-0.7.0 → wherobots_python_sdk-0.7.1}/wherobots/models.py +0 -0
- {wherobots_python_sdk-0.7.0 → wherobots_python_sdk-0.7.1}/wherobots/py.typed +0 -0
- {wherobots_python_sdk-0.7.0 → wherobots_python_sdk-0.7.1}/wherobots/sdk.py +0 -0
- {wherobots_python_sdk-0.7.0 → wherobots_python_sdk-0.7.1}/wherobots/utils/__init__.py +0 -0
- {wherobots_python_sdk-0.7.0 → wherobots_python_sdk-0.7.1}/wherobots/utils/client_header.py +0 -0
- {wherobots_python_sdk-0.7.0 → wherobots_python_sdk-0.7.1}/wherobots/utils/logger.py +0 -0
- {wherobots_python_sdk-0.7.0 → wherobots_python_sdk-0.7.1}/wherobots/utils/validation.py +0 -0
- {wherobots_python_sdk-0.7.0 → wherobots_python_sdk-0.7.1}/wherobots_python_sdk.egg-info/SOURCES.txt +0 -0
- {wherobots_python_sdk-0.7.0 → wherobots_python_sdk-0.7.1}/wherobots_python_sdk.egg-info/dependency_links.txt +0 -0
- {wherobots_python_sdk-0.7.0 → wherobots_python_sdk-0.7.1}/wherobots_python_sdk.egg-info/requires.txt +0 -0
- {wherobots_python_sdk-0.7.0 → wherobots_python_sdk-0.7.1}/wherobots_python_sdk.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: wherobots-python-sdk
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.1
|
|
4
4
|
Summary: Python SDK for Wherobots (currently covers the Jobs REST API)
|
|
5
5
|
Author-email: Wherobots <support@wherobots.com>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -39,7 +39,7 @@ Additional Wherobots surfaces will be added over time.
|
|
|
39
39
|
## Features
|
|
40
40
|
|
|
41
41
|
- Submit Python scripts or JARs as Wherobots jobs
|
|
42
|
-
- Auto-upload local scripts
|
|
42
|
+
- Auto-upload local scripts to Wherobots managed storage (only needs an API key)
|
|
43
43
|
- Stream or iterate logs with pagination
|
|
44
44
|
- List runs with status, name, and date filters
|
|
45
45
|
- Typed dataclass models for all API responses (no pydantic dependency)
|
|
@@ -61,7 +61,7 @@ The simplest way to run a local script — only an API key is needed:
|
|
|
61
61
|
from wherobots import WherobotsJob
|
|
62
62
|
|
|
63
63
|
job = WherobotsJob(
|
|
64
|
-
script="my_analysis.py", # local file — auto-uploaded
|
|
64
|
+
script="my_analysis.py", # local file — auto-uploaded to managed storage
|
|
65
65
|
name="analysis-job-001",
|
|
66
66
|
runtime="tiny",
|
|
67
67
|
region="aws-us-west-2",
|
|
@@ -88,8 +88,7 @@ job = WherobotsJob(
|
|
|
88
88
|
### Script Upload Behavior
|
|
89
89
|
|
|
90
90
|
When `script` is a local file path (not an `s3://` URI) and `auto_upload=True`
|
|
91
|
-
(the default), the SDK uploads your script
|
|
92
|
-
managed storage. Only needs a valid API key — no AWS credentials required.
|
|
91
|
+
(the default), the SDK uploads your script to Wherobots managed storage. Only needs a valid API key — no AWS credentials required.
|
|
93
92
|
|
|
94
93
|
You can also reference scripts already in a
|
|
95
94
|
[Storage Integration](https://docs.wherobots.com/latest/develop/storage-management/storage/)
|
|
@@ -13,7 +13,7 @@ Additional Wherobots surfaces will be added over time.
|
|
|
13
13
|
## Features
|
|
14
14
|
|
|
15
15
|
- Submit Python scripts or JARs as Wherobots jobs
|
|
16
|
-
- Auto-upload local scripts
|
|
16
|
+
- Auto-upload local scripts to Wherobots managed storage (only needs an API key)
|
|
17
17
|
- Stream or iterate logs with pagination
|
|
18
18
|
- List runs with status, name, and date filters
|
|
19
19
|
- Typed dataclass models for all API responses (no pydantic dependency)
|
|
@@ -35,7 +35,7 @@ The simplest way to run a local script — only an API key is needed:
|
|
|
35
35
|
from wherobots import WherobotsJob
|
|
36
36
|
|
|
37
37
|
job = WherobotsJob(
|
|
38
|
-
script="my_analysis.py", # local file — auto-uploaded
|
|
38
|
+
script="my_analysis.py", # local file — auto-uploaded to managed storage
|
|
39
39
|
name="analysis-job-001",
|
|
40
40
|
runtime="tiny",
|
|
41
41
|
region="aws-us-west-2",
|
|
@@ -62,8 +62,7 @@ job = WherobotsJob(
|
|
|
62
62
|
### Script Upload Behavior
|
|
63
63
|
|
|
64
64
|
When `script` is a local file path (not an `s3://` URI) and `auto_upload=True`
|
|
65
|
-
(the default), the SDK uploads your script
|
|
66
|
-
managed storage. Only needs a valid API key — no AWS credentials required.
|
|
65
|
+
(the default), the SDK uploads your script to Wherobots managed storage. Only needs a valid API key — no AWS credentials required.
|
|
67
66
|
|
|
68
67
|
You can also reference scripts already in a
|
|
69
68
|
[Storage Integration](https://docs.wherobots.com/latest/develop/storage-management/storage/)
|
|
@@ -154,13 +154,13 @@ class WherobotsJob:
|
|
|
154
154
|
dependencies: Optional list of PyPI or file dependencies
|
|
155
155
|
spark_driver_disk_gb: Optional driver disk size
|
|
156
156
|
spark_executor_disk_gb: Optional executor disk size
|
|
157
|
-
s3_bucket: Deprecated.
|
|
158
|
-
|
|
159
|
-
s3_prefix: Deprecated.
|
|
160
|
-
|
|
157
|
+
s3_bucket: Deprecated and ignored. Will be removed in a future
|
|
158
|
+
release.
|
|
159
|
+
s3_prefix: Deprecated and ignored. Will be removed in a future
|
|
160
|
+
release.
|
|
161
161
|
jar_main_class: Main class for JAR files (required for JARs)
|
|
162
|
-
auto_upload: Automatically upload local scripts
|
|
163
|
-
|
|
162
|
+
auto_upload: Automatically upload local scripts to managed
|
|
163
|
+
storage (default: True)
|
|
164
164
|
base_url: Override the API base URL
|
|
165
165
|
request_timeout_seconds: HTTP request timeout in seconds
|
|
166
166
|
config: Optional WherobotsConfig to override defaults
|
|
@@ -16,8 +16,8 @@ class WherobotsConfig:
|
|
|
16
16
|
Attributes:
|
|
17
17
|
api_key: Wherobots API key.
|
|
18
18
|
region: Default deployment region (e.g. ``"aws-us-west-2"``).
|
|
19
|
-
s3_bucket:
|
|
20
|
-
s3_prefix:
|
|
19
|
+
s3_bucket: Deprecated and ignored. Will be removed in a future release.
|
|
20
|
+
s3_prefix: Deprecated and ignored. Will be removed in a future release.
|
|
21
21
|
base_url: Wherobots API base URL (must use HTTPS).
|
|
22
22
|
version: API version string.
|
|
23
23
|
request_timeout_seconds: HTTP request timeout in seconds.
|
|
@@ -26,8 +26,7 @@ class WherobotsConfig:
|
|
|
26
26
|
own hop to the right of it, so the origin client stays leftmost.
|
|
27
27
|
Advisory only — it never affects authentication.
|
|
28
28
|
id_token_path: Workload-identity token mounted in Wherobots notebook
|
|
29
|
-
and job pods. Used for auth only when no ``api_key`` is set
|
|
30
|
-
(ADR-0003).
|
|
29
|
+
and job pods. Used for auth only when no ``api_key`` is set.
|
|
31
30
|
"""
|
|
32
31
|
|
|
33
32
|
api_key: str | None = None
|
|
@@ -105,8 +104,10 @@ class WherobotsConfig:
|
|
|
105
104
|
Args:
|
|
106
105
|
api_key: Override for ``WHEROBOTS_API_KEY``.
|
|
107
106
|
region: Override for ``WHEROBOTS_REGION``.
|
|
108
|
-
s3_bucket:
|
|
109
|
-
|
|
107
|
+
s3_bucket: Deprecated and ignored, like ``WHEROBOTS_S3_BUCKET``.
|
|
108
|
+
Will be removed in a future release.
|
|
109
|
+
s3_prefix: Deprecated and ignored, like ``WHEROBOTS_S3_PREFIX``.
|
|
110
|
+
Will be removed in a future release.
|
|
110
111
|
base_url: Override for ``WHEROBOTS_API_BASE_URL``.
|
|
111
112
|
version: Override for ``WHEROBOTS_VERSION``.
|
|
112
113
|
request_timeout_seconds: Override for
|
|
@@ -147,14 +148,14 @@ class WherobotsConfig:
|
|
|
147
148
|
timeout = 30
|
|
148
149
|
|
|
149
150
|
# Emit deprecation warnings for S3-related env vars that are no
|
|
150
|
-
# longer used (
|
|
151
|
+
# longer used (job scripts always go to managed storage).
|
|
151
152
|
resolved_bucket = s3_bucket or _env("WHEROBOTS_S3_BUCKET")
|
|
152
153
|
resolved_prefix = s3_prefix or _env("WHEROBOTS_S3_PREFIX")
|
|
153
154
|
|
|
154
155
|
if resolved_bucket:
|
|
155
156
|
warnings.warn(
|
|
156
157
|
"WHEROBOTS_S3_BUCKET / s3_bucket is deprecated and ignored. "
|
|
157
|
-
"The SDK
|
|
158
|
+
"The SDK uploads job scripts to Wherobots managed storage "
|
|
158
159
|
"(only an API key is needed). This setting will be removed "
|
|
159
160
|
"in a future release.",
|
|
160
161
|
DeprecationWarning,
|
|
@@ -163,7 +164,7 @@ class WherobotsConfig:
|
|
|
163
164
|
if resolved_prefix and resolved_prefix != "wherobots-jobs":
|
|
164
165
|
warnings.warn(
|
|
165
166
|
"WHEROBOTS_S3_PREFIX / s3_prefix is deprecated and ignored. "
|
|
166
|
-
"The SDK
|
|
167
|
+
"The SDK uploads job scripts to Wherobots managed storage "
|
|
167
168
|
"(only an API key is needed). This setting will be removed "
|
|
168
169
|
"in a future release.",
|
|
169
170
|
DeprecationWarning,
|
{wherobots_python_sdk-0.7.0 → wherobots_python_sdk-0.7.1}/wherobots_python_sdk.egg-info/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: wherobots-python-sdk
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.1
|
|
4
4
|
Summary: Python SDK for Wherobots (currently covers the Jobs REST API)
|
|
5
5
|
Author-email: Wherobots <support@wherobots.com>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -39,7 +39,7 @@ Additional Wherobots surfaces will be added over time.
|
|
|
39
39
|
## Features
|
|
40
40
|
|
|
41
41
|
- Submit Python scripts or JARs as Wherobots jobs
|
|
42
|
-
- Auto-upload local scripts
|
|
42
|
+
- Auto-upload local scripts to Wherobots managed storage (only needs an API key)
|
|
43
43
|
- Stream or iterate logs with pagination
|
|
44
44
|
- List runs with status, name, and date filters
|
|
45
45
|
- Typed dataclass models for all API responses (no pydantic dependency)
|
|
@@ -61,7 +61,7 @@ The simplest way to run a local script — only an API key is needed:
|
|
|
61
61
|
from wherobots import WherobotsJob
|
|
62
62
|
|
|
63
63
|
job = WherobotsJob(
|
|
64
|
-
script="my_analysis.py", # local file — auto-uploaded
|
|
64
|
+
script="my_analysis.py", # local file — auto-uploaded to managed storage
|
|
65
65
|
name="analysis-job-001",
|
|
66
66
|
runtime="tiny",
|
|
67
67
|
region="aws-us-west-2",
|
|
@@ -88,8 +88,7 @@ job = WherobotsJob(
|
|
|
88
88
|
### Script Upload Behavior
|
|
89
89
|
|
|
90
90
|
When `script` is a local file path (not an `s3://` URI) and `auto_upload=True`
|
|
91
|
-
(the default), the SDK uploads your script
|
|
92
|
-
managed storage. Only needs a valid API key — no AWS credentials required.
|
|
91
|
+
(the default), the SDK uploads your script to Wherobots managed storage. Only needs a valid API key — no AWS credentials required.
|
|
93
92
|
|
|
94
93
|
You can also reference scripts already in a
|
|
95
94
|
[Storage Integration](https://docs.wherobots.com/latest/develop/storage-management/storage/)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{wherobots_python_sdk-0.7.0 → wherobots_python_sdk-0.7.1}/wherobots_python_sdk.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{wherobots_python_sdk-0.7.0 → wherobots_python_sdk-0.7.1}/wherobots_python_sdk.egg-info/requires.txt
RENAMED
|
File without changes
|
|
File without changes
|