wavespeed 1.0.3__tar.gz → 1.0.4__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.
Files changed (68) hide show
  1. {wavespeed-1.0.3 → wavespeed-1.0.4}/PKG-INFO +1 -1
  2. {wavespeed-1.0.3 → wavespeed-1.0.4}/src/wavespeed/_version.py +1 -1
  3. {wavespeed-1.0.3 → wavespeed-1.0.4}/src/wavespeed/api/client.py +10 -4
  4. {wavespeed-1.0.3 → wavespeed-1.0.4}/src/wavespeed.egg-info/PKG-INFO +1 -1
  5. {wavespeed-1.0.3 → wavespeed-1.0.4}/.github/workflows/claude-code-review.yml +0 -0
  6. {wavespeed-1.0.3 → wavespeed-1.0.4}/.github/workflows/claude.yml +0 -0
  7. {wavespeed-1.0.3 → wavespeed-1.0.4}/.github/workflows/pre-commit.yml +0 -0
  8. {wavespeed-1.0.3 → wavespeed-1.0.4}/.github/workflows/python-packages.yml +0 -0
  9. {wavespeed-1.0.3 → wavespeed-1.0.4}/.github/workflows/python-publish.yml +0 -0
  10. {wavespeed-1.0.3 → wavespeed-1.0.4}/.gitignore +0 -0
  11. {wavespeed-1.0.3 → wavespeed-1.0.4}/.pre-commit-config.yaml +0 -0
  12. {wavespeed-1.0.3 → wavespeed-1.0.4}/CLAUDE.md +0 -0
  13. {wavespeed-1.0.3 → wavespeed-1.0.4}/LICENSE +0 -0
  14. {wavespeed-1.0.3 → wavespeed-1.0.4}/MANIFEST.in +0 -0
  15. {wavespeed-1.0.3 → wavespeed-1.0.4}/README.md +0 -0
  16. {wavespeed-1.0.3 → wavespeed-1.0.4}/VERSIONING.md +0 -0
  17. {wavespeed-1.0.3 → wavespeed-1.0.4}/images/build_and_push.sh +0 -0
  18. {wavespeed-1.0.3 → wavespeed-1.0.4}/images/test_worker/Dockerfile +0 -0
  19. {wavespeed-1.0.3 → wavespeed-1.0.4}/images/test_worker/build_and_test.sh +0 -0
  20. {wavespeed-1.0.3 → wavespeed-1.0.4}/images/test_worker/handler.py +0 -0
  21. {wavespeed-1.0.3 → wavespeed-1.0.4}/images/test_worker/requirements.txt +0 -0
  22. {wavespeed-1.0.3 → wavespeed-1.0.4}/images/test_worker/test_input.json +0 -0
  23. {wavespeed-1.0.3 → wavespeed-1.0.4}/pyproject.toml +0 -0
  24. {wavespeed-1.0.3 → wavespeed-1.0.4}/pytest.ini +0 -0
  25. {wavespeed-1.0.3 → wavespeed-1.0.4}/setup.cfg +0 -0
  26. {wavespeed-1.0.3 → wavespeed-1.0.4}/src/wavespeed/__init__.py +0 -0
  27. {wavespeed-1.0.3 → wavespeed-1.0.4}/src/wavespeed/_config_module.py +0 -0
  28. {wavespeed-1.0.3 → wavespeed-1.0.4}/src/wavespeed/api/__init__.py +0 -0
  29. {wavespeed-1.0.3 → wavespeed-1.0.4}/src/wavespeed/config.py +0 -0
  30. {wavespeed-1.0.3 → wavespeed-1.0.4}/src/wavespeed/serverless/__init__.py +0 -0
  31. {wavespeed-1.0.3 → wavespeed-1.0.4}/src/wavespeed/serverless/modules/__init__.py +0 -0
  32. {wavespeed-1.0.3 → wavespeed-1.0.4}/src/wavespeed/serverless/modules/fastapi.py +0 -0
  33. {wavespeed-1.0.3 → wavespeed-1.0.4}/src/wavespeed/serverless/modules/handler.py +0 -0
  34. {wavespeed-1.0.3 → wavespeed-1.0.4}/src/wavespeed/serverless/modules/heartbeat.py +0 -0
  35. {wavespeed-1.0.3 → wavespeed-1.0.4}/src/wavespeed/serverless/modules/http.py +0 -0
  36. {wavespeed-1.0.3 → wavespeed-1.0.4}/src/wavespeed/serverless/modules/job.py +0 -0
  37. {wavespeed-1.0.3 → wavespeed-1.0.4}/src/wavespeed/serverless/modules/local.py +0 -0
  38. {wavespeed-1.0.3 → wavespeed-1.0.4}/src/wavespeed/serverless/modules/logger.py +0 -0
  39. {wavespeed-1.0.3 → wavespeed-1.0.4}/src/wavespeed/serverless/modules/progress.py +0 -0
  40. {wavespeed-1.0.3 → wavespeed-1.0.4}/src/wavespeed/serverless/modules/scaler.py +0 -0
  41. {wavespeed-1.0.3 → wavespeed-1.0.4}/src/wavespeed/serverless/modules/state.py +0 -0
  42. {wavespeed-1.0.3 → wavespeed-1.0.4}/src/wavespeed/serverless/utils/__init__.py +0 -0
  43. {wavespeed-1.0.3 → wavespeed-1.0.4}/src/wavespeed/serverless/utils/boto3_utils.py +0 -0
  44. {wavespeed-1.0.3 → wavespeed-1.0.4}/src/wavespeed/serverless/utils/validator.py +0 -0
  45. {wavespeed-1.0.3 → wavespeed-1.0.4}/src/wavespeed/serverless/worker.py +0 -0
  46. {wavespeed-1.0.3 → wavespeed-1.0.4}/src/wavespeed.egg-info/SOURCES.txt +0 -0
  47. {wavespeed-1.0.3 → wavespeed-1.0.4}/src/wavespeed.egg-info/dependency_links.txt +0 -0
  48. {wavespeed-1.0.3 → wavespeed-1.0.4}/src/wavespeed.egg-info/not-zip-safe +0 -0
  49. {wavespeed-1.0.3 → wavespeed-1.0.4}/src/wavespeed.egg-info/requires.txt +0 -0
  50. {wavespeed-1.0.3 → wavespeed-1.0.4}/src/wavespeed.egg-info/top_level.txt +0 -0
  51. {wavespeed-1.0.3 → wavespeed-1.0.4}/tests/__init__.py +0 -0
  52. {wavespeed-1.0.3 → wavespeed-1.0.4}/tests/conftest.py +0 -0
  53. {wavespeed-1.0.3 → wavespeed-1.0.4}/tests/test_api.py +0 -0
  54. {wavespeed-1.0.3 → wavespeed-1.0.4}/tests/test_config.py +0 -0
  55. {wavespeed-1.0.3 → wavespeed-1.0.4}/tests/test_serverless/__init__.py +0 -0
  56. {wavespeed-1.0.3 → wavespeed-1.0.4}/tests/test_serverless/test_modules/__init__.py +0 -0
  57. {wavespeed-1.0.3 → wavespeed-1.0.4}/tests/test_serverless/test_modules/test_fastapi.py +0 -0
  58. {wavespeed-1.0.3 → wavespeed-1.0.4}/tests/test_serverless/test_modules/test_handler.py +0 -0
  59. {wavespeed-1.0.3 → wavespeed-1.0.4}/tests/test_serverless/test_modules/test_http.py +0 -0
  60. {wavespeed-1.0.3 → wavespeed-1.0.4}/tests/test_serverless/test_modules/test_job.py +0 -0
  61. {wavespeed-1.0.3 → wavespeed-1.0.4}/tests/test_serverless/test_modules/test_local.py +0 -0
  62. {wavespeed-1.0.3 → wavespeed-1.0.4}/tests/test_serverless/test_modules/test_logger.py +0 -0
  63. {wavespeed-1.0.3 → wavespeed-1.0.4}/tests/test_serverless/test_modules/test_progress.py +0 -0
  64. {wavespeed-1.0.3 → wavespeed-1.0.4}/tests/test_serverless/test_modules/test_scaler.py +0 -0
  65. {wavespeed-1.0.3 → wavespeed-1.0.4}/tests/test_serverless/test_modules/test_state.py +0 -0
  66. {wavespeed-1.0.3 → wavespeed-1.0.4}/tests/test_serverless/test_utils/__init__.py +0 -0
  67. {wavespeed-1.0.3 → wavespeed-1.0.4}/tests/test_serverless/test_utils/test_validator.py +0 -0
  68. {wavespeed-1.0.3 → wavespeed-1.0.4}/tests/test_serverless/test_worker.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wavespeed
3
- Version: 1.0.3
3
+ Version: 1.0.4
4
4
  Summary: WaveSpeedAI Python Client — Official Python SDK for WaveSpeedAI inference platform
5
5
  Author-email: WaveSpeedAI <support@wavespeed.ai>
6
6
  License: MIT
@@ -1,2 +1,2 @@
1
1
  # This file is automatically generated by setuptools_scm
2
- __version__ = "1.0.3"
2
+ __version__ = "1.0.4"
@@ -179,7 +179,8 @@ class Client:
179
179
 
180
180
  if response.status_code != 200:
181
181
  raise RuntimeError(
182
- f"Failed to get result: HTTP {response.status_code}: {response.text}"
182
+ f"Failed to get result for task {request_id}: "
183
+ f"HTTP {response.status_code}: {response.text}"
183
184
  )
184
185
 
185
186
  return response.json()
@@ -199,7 +200,8 @@ class Client:
199
200
  time.sleep(delay)
200
201
  else:
201
202
  raise RuntimeError(
202
- f"Failed to get result after {self.max_connection_retries + 1} attempts"
203
+ f"Failed to get result for task {request_id} "
204
+ f"after {self.max_connection_retries + 1} attempts"
203
205
  ) from e
204
206
 
205
207
  def _wait(
@@ -229,7 +231,9 @@ class Client:
229
231
  if timeout is not None:
230
232
  elapsed = time.time() - start_time
231
233
  if elapsed >= timeout:
232
- raise TimeoutError(f"Prediction timed out after {timeout} seconds")
234
+ raise TimeoutError(
235
+ f"Prediction timed out after {timeout} seconds (task_id: {request_id})"
236
+ )
233
237
 
234
238
  result = self._get_result(request_id, timeout=timeout)
235
239
  data = result.get("data", {})
@@ -240,7 +244,9 @@ class Client:
240
244
 
241
245
  if status == "failed":
242
246
  error = data.get("error") or "Unknown error"
243
- raise RuntimeError(f"Prediction failed: {error}")
247
+ raise RuntimeError(
248
+ f"Prediction failed (task_id: {request_id}): {error}"
249
+ )
244
250
 
245
251
  time.sleep(poll_interval)
246
252
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wavespeed
3
- Version: 1.0.3
3
+ Version: 1.0.4
4
4
  Summary: WaveSpeedAI Python Client — Official Python SDK for WaveSpeedAI inference platform
5
5
  Author-email: WaveSpeedAI <support@wavespeed.ai>
6
6
  License: MIT
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