sonilo 0.2.0__tar.gz → 0.2.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.
Files changed (34) hide show
  1. {sonilo-0.2.0 → sonilo-0.2.1}/PKG-INFO +2 -3
  2. {sonilo-0.2.0 → sonilo-0.2.1}/README.md +1 -2
  3. {sonilo-0.2.0 → sonilo-0.2.1}/pyproject.toml +1 -1
  4. {sonilo-0.2.0 → sonilo-0.2.1}/src/sonilo/types.py +2 -0
  5. {sonilo-0.2.0 → sonilo-0.2.1}/.github/workflows/ci.yml +0 -0
  6. {sonilo-0.2.0 → sonilo-0.2.1}/.github/workflows/publish.yml +0 -0
  7. {sonilo-0.2.0 → sonilo-0.2.1}/.gitignore +0 -0
  8. {sonilo-0.2.0 → sonilo-0.2.1}/LICENSE +0 -0
  9. {sonilo-0.2.0 → sonilo-0.2.1}/examples/generate.py +0 -0
  10. {sonilo-0.2.0 → sonilo-0.2.1}/examples/sfx.py +0 -0
  11. {sonilo-0.2.0 → sonilo-0.2.1}/src/sonilo/__init__.py +0 -0
  12. {sonilo-0.2.0 → sonilo-0.2.1}/src/sonilo/_async_client.py +0 -0
  13. {sonilo-0.2.0 → sonilo-0.2.1}/src/sonilo/_client.py +0 -0
  14. {sonilo-0.2.0 → sonilo-0.2.1}/src/sonilo/_requests.py +0 -0
  15. {sonilo-0.2.0 → sonilo-0.2.1}/src/sonilo/_streaming.py +0 -0
  16. {sonilo-0.2.0 → sonilo-0.2.1}/src/sonilo/_version.py +0 -0
  17. {sonilo-0.2.0 → sonilo-0.2.1}/src/sonilo/errors.py +0 -0
  18. {sonilo-0.2.0 → sonilo-0.2.1}/src/sonilo/py.typed +0 -0
  19. {sonilo-0.2.0 → sonilo-0.2.1}/src/sonilo/resources/__init__.py +0 -0
  20. {sonilo-0.2.0 → sonilo-0.2.1}/src/sonilo/resources/account.py +0 -0
  21. {sonilo-0.2.0 → sonilo-0.2.1}/src/sonilo/resources/tasks.py +0 -0
  22. {sonilo-0.2.0 → sonilo-0.2.1}/src/sonilo/resources/text_to_music.py +0 -0
  23. {sonilo-0.2.0 → sonilo-0.2.1}/src/sonilo/resources/text_to_sfx.py +0 -0
  24. {sonilo-0.2.0 → sonilo-0.2.1}/src/sonilo/resources/video_to_music.py +0 -0
  25. {sonilo-0.2.0 → sonilo-0.2.1}/src/sonilo/resources/video_to_sfx.py +0 -0
  26. {sonilo-0.2.0 → sonilo-0.2.1}/tests/__init__.py +0 -0
  27. {sonilo-0.2.0 → sonilo-0.2.1}/tests/test_async_client.py +0 -0
  28. {sonilo-0.2.0 → sonilo-0.2.1}/tests/test_errors.py +0 -0
  29. {sonilo-0.2.0 → sonilo-0.2.1}/tests/test_requests.py +0 -0
  30. {sonilo-0.2.0 → sonilo-0.2.1}/tests/test_sfx.py +0 -0
  31. {sonilo-0.2.0 → sonilo-0.2.1}/tests/test_sfx_async.py +0 -0
  32. {sonilo-0.2.0 → sonilo-0.2.1}/tests/test_sfx_types.py +0 -0
  33. {sonilo-0.2.0 → sonilo-0.2.1}/tests/test_streaming.py +0 -0
  34. {sonilo-0.2.0 → sonilo-0.2.1}/tests/test_sync_client.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sonilo
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: Official Python client for the Sonilo API
5
5
  Project-URL: Repository, https://github.com/sonilo-ai/sonilo-python
6
6
  Author: Sonilo AI
@@ -107,8 +107,7 @@ task = client.video_to_sfx.submit(
107
107
  audio_format="wav",
108
108
  )
109
109
  result = client.tasks.wait(task.task_id, poll_interval=2.0, timeout=600.0)
110
- result.save("audio.wav")
111
- result.save("with_audio.mp4", which="video") # video-to-sfx also returns the muxed video
110
+ result.save("audio.wav") # video-to-sfx returns the generated audio only
112
111
  ```
113
112
 
114
113
  `tasks.get(task_id)` fetches state once and never raises on a failed task;
@@ -90,8 +90,7 @@ task = client.video_to_sfx.submit(
90
90
  audio_format="wav",
91
91
  )
92
92
  result = client.tasks.wait(task.task_id, poll_interval=2.0, timeout=600.0)
93
- result.save("audio.wav")
94
- result.save("with_audio.mp4", which="video") # video-to-sfx also returns the muxed video
93
+ result.save("audio.wav") # video-to-sfx returns the generated audio only
95
94
  ```
96
95
 
97
96
  `tasks.get(task_id)` fetches state once and never raises on a failed task;
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "sonilo"
7
- version = "0.2.0"
7
+ version = "0.2.1"
8
8
  description = "Official Python client for the Sonilo API"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -60,6 +60,8 @@ class SfxResult:
60
60
  status: str
61
61
  type: Optional[str] = None
62
62
  audio: Optional[SfxMedia] = None
63
+ # video-to-sfx now returns audio only; `video` is kept for backward
64
+ # compatibility but is no longer populated by the API.
63
65
  video: Optional[SfxMedia] = None
64
66
  cost: Optional[float] = None
65
67
  error: Optional[Dict[str, Any]] = None
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