wherobots-python-sdk 0.7.0__py3-none-any.whl → 0.7.1__py3-none-any.whl

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/__version__.py CHANGED
@@ -1,5 +1,5 @@
1
1
  """Version information."""
2
2
 
3
- __version__ = "0.7.0"
3
+ __version__ = "0.7.1"
4
4
  __author__ = "Wherobots"
5
5
  __email__ = "support@wherobots.com"
wherobots/client.py CHANGED
@@ -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. Ignored; presigned uploads are used
158
- instead. Will be removed in a future release.
159
- s3_prefix: Deprecated. Ignored; presigned uploads are used
160
- instead. Will be removed in a future release.
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 via presigned
163
- URL (default: True)
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
wherobots/config.py CHANGED
@@ -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: S3 bucket for script uploads.
20
- s3_prefix: Key prefix within the bucket.
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: Override for ``WHEROBOTS_S3_BUCKET``.
109
- s3_prefix: Override for ``WHEROBOTS_S3_PREFIX``.
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 (presigned uploads are the sole upload method).
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 now uploads files exclusively via presigned URLs "
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 now uploads files exclusively via presigned URLs "
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,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wherobots-python-sdk
3
- Version: 0.7.0
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 via presigned URLs (only needs an API key)
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 via presigned URL
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 via a presigned S3 URL to Wherobots
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/)
@@ -1,7 +1,7 @@
1
1
  wherobots/__init__.py,sha256=MUFjzOBaVW2lzPw35F5SBlTChJBKl1n0-p16qUnIO9k,2759
2
- wherobots/__version__.py,sha256=fIE1uN53hY31LBi8pDljwzsVPIy2DxhD_1aN1rJ34iw,111
3
- wherobots/client.py,sha256=mFShTtxXfCg9GLVMykM7jC1SvuDCZ_sY9JnHIOlOwxQ,37797
4
- wherobots/config.py,sha256=53BCZxXathnEjEJqwti07MxTmqNyYNP3b40qmri1blE,7986
2
+ wherobots/__version__.py,sha256=0aWZXIsHsxzJSwRXuhRrXtneDvx6JrMHHu9b5zWh-EQ,111
3
+ wherobots/client.py,sha256=A3cksL8i-gfcN9tlUfZ4oBSHM2KYKjJgDt1Ghn-qooI,37732
4
+ wherobots/config.py,sha256=M9mw74j8TLJW4Qsy5wpQmMDYjqLfErfxuB-DI4tyjxw,8159
5
5
  wherobots/enums.py,sha256=T_x0QzDCmrZZTfYuEjkdjT_tbt0DDP5S-Kr5HnC8j2o,5218
6
6
  wherobots/exceptions.py,sha256=lBzjRNtWRGyh0PgnIKAQr4x2liEhFvWoLn-Ndf91nCQ,2558
7
7
  wherobots/models.py,sha256=A1KxUivCoUUzFFhhMJCfu7qJHs_2ouYJR27gk39UzWs,62256
@@ -18,8 +18,8 @@ wherobots/utils/__init__.py,sha256=cTM2QNJDauQWyGBTJPE5yH4ULc4Ucg_4KFzemjM3HaA,1
18
18
  wherobots/utils/client_header.py,sha256=-zczKIl8QfFBs1uTLbzp6cGLEzit1qGgdWbV9MLYEcM,8083
19
19
  wherobots/utils/logger.py,sha256=eclhD9Vf2LsSm4engRzT3jE2v0wdHJH01OfeI3ml4HM,1103
20
20
  wherobots/utils/validation.py,sha256=mjWGGhNji1crdn1AhLZoTIfknSQm38X0MmgI4ow14T8,907
21
- wherobots_python_sdk-0.7.0.dist-info/licenses/LICENSE,sha256=U1EH466XmvxbqaWOY0cax49w0R87_6w6yJLyV14v4bc,10767
22
- wherobots_python_sdk-0.7.0.dist-info/METADATA,sha256=eyfrSSkWK3vTgWCla5BSrDusKgW3XJrs4Aw-RfTzWiE,33310
23
- wherobots_python_sdk-0.7.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
24
- wherobots_python_sdk-0.7.0.dist-info/top_level.txt,sha256=oL-n-9GIG0rmUeukuytUqdN6yfROIsVh8bNrgZsOdxw,10
25
- wherobots_python_sdk-0.7.0.dist-info/RECORD,,
21
+ wherobots_python_sdk-0.7.1.dist-info/licenses/LICENSE,sha256=U1EH466XmvxbqaWOY0cax49w0R87_6w6yJLyV14v4bc,10767
22
+ wherobots_python_sdk-0.7.1.dist-info/METADATA,sha256=3KXwyNiaqHSoWet4a55gLH3FS1x_l-tP0aLrIbmJtLE,33298
23
+ wherobots_python_sdk-0.7.1.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
24
+ wherobots_python_sdk-0.7.1.dist-info/top_level.txt,sha256=oL-n-9GIG0rmUeukuytUqdN6yfROIsVh8bNrgZsOdxw,10
25
+ wherobots_python_sdk-0.7.1.dist-info/RECORD,,