spitch 1.3.0__tar.gz → 1.4.0__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.

Potentially problematic release.


This version of spitch might be problematic. Click here for more details.

Files changed (71) hide show
  1. spitch-1.4.0/.release-please-manifest.json +3 -0
  2. {spitch-1.3.0 → spitch-1.4.0}/CHANGELOG.md +9 -0
  3. {spitch-1.3.0 → spitch-1.4.0}/PKG-INFO +1 -1
  4. {spitch-1.3.0 → spitch-1.4.0}/pyproject.toml +1 -1
  5. {spitch-1.3.0 → spitch-1.4.0}/src/spitch/_version.py +1 -1
  6. {spitch-1.3.0 → spitch-1.4.0}/src/spitch/resources/speech.py +2 -12
  7. {spitch-1.3.0 → spitch-1.4.0}/src/spitch/types/speech_generate_params.py +0 -2
  8. {spitch-1.3.0 → spitch-1.4.0}/tests/api_resources/test_speech.py +0 -2
  9. spitch-1.3.0/.release-please-manifest.json +0 -3
  10. {spitch-1.3.0 → spitch-1.4.0}/.gitignore +0 -0
  11. {spitch-1.3.0 → spitch-1.4.0}/CONTRIBUTING.md +0 -0
  12. {spitch-1.3.0 → spitch-1.4.0}/LICENSE +0 -0
  13. {spitch-1.3.0 → spitch-1.4.0}/README.md +0 -0
  14. {spitch-1.3.0 → spitch-1.4.0}/SECURITY.md +0 -0
  15. {spitch-1.3.0 → spitch-1.4.0}/api.md +0 -0
  16. {spitch-1.3.0 → spitch-1.4.0}/bin/check-release-environment +0 -0
  17. {spitch-1.3.0 → spitch-1.4.0}/bin/publish-pypi +0 -0
  18. {spitch-1.3.0 → spitch-1.4.0}/examples/.keep +0 -0
  19. {spitch-1.3.0 → spitch-1.4.0}/examples/example.py +0 -0
  20. {spitch-1.3.0 → spitch-1.4.0}/mypy.ini +0 -0
  21. {spitch-1.3.0 → spitch-1.4.0}/noxfile.py +0 -0
  22. {spitch-1.3.0 → spitch-1.4.0}/release-please-config.json +0 -0
  23. {spitch-1.3.0 → spitch-1.4.0}/requirements-dev.lock +0 -0
  24. {spitch-1.3.0 → spitch-1.4.0}/requirements.lock +0 -0
  25. {spitch-1.3.0 → spitch-1.4.0}/src/spitch/__init__.py +0 -0
  26. {spitch-1.3.0 → spitch-1.4.0}/src/spitch/_base_client.py +0 -0
  27. {spitch-1.3.0 → spitch-1.4.0}/src/spitch/_client.py +0 -0
  28. {spitch-1.3.0 → spitch-1.4.0}/src/spitch/_compat.py +0 -0
  29. {spitch-1.3.0 → spitch-1.4.0}/src/spitch/_constants.py +0 -0
  30. {spitch-1.3.0 → spitch-1.4.0}/src/spitch/_exceptions.py +0 -0
  31. {spitch-1.3.0 → spitch-1.4.0}/src/spitch/_files.py +0 -0
  32. {spitch-1.3.0 → spitch-1.4.0}/src/spitch/_models.py +0 -0
  33. {spitch-1.3.0 → spitch-1.4.0}/src/spitch/_qs.py +0 -0
  34. {spitch-1.3.0 → spitch-1.4.0}/src/spitch/_resource.py +0 -0
  35. {spitch-1.3.0 → spitch-1.4.0}/src/spitch/_response.py +0 -0
  36. {spitch-1.3.0 → spitch-1.4.0}/src/spitch/_streaming.py +0 -0
  37. {spitch-1.3.0 → spitch-1.4.0}/src/spitch/_types.py +0 -0
  38. {spitch-1.3.0 → spitch-1.4.0}/src/spitch/_utils/__init__.py +0 -0
  39. {spitch-1.3.0 → spitch-1.4.0}/src/spitch/_utils/_logs.py +0 -0
  40. {spitch-1.3.0 → spitch-1.4.0}/src/spitch/_utils/_proxy.py +0 -0
  41. {spitch-1.3.0 → spitch-1.4.0}/src/spitch/_utils/_reflection.py +0 -0
  42. {spitch-1.3.0 → spitch-1.4.0}/src/spitch/_utils/_streams.py +0 -0
  43. {spitch-1.3.0 → spitch-1.4.0}/src/spitch/_utils/_sync.py +0 -0
  44. {spitch-1.3.0 → spitch-1.4.0}/src/spitch/_utils/_transform.py +0 -0
  45. {spitch-1.3.0 → spitch-1.4.0}/src/spitch/_utils/_typing.py +0 -0
  46. {spitch-1.3.0 → spitch-1.4.0}/src/spitch/_utils/_utils.py +0 -0
  47. {spitch-1.3.0 → spitch-1.4.0}/src/spitch/lib/.keep +0 -0
  48. {spitch-1.3.0 → spitch-1.4.0}/src/spitch/py.typed +0 -0
  49. {spitch-1.3.0 → spitch-1.4.0}/src/spitch/resources/__init__.py +0 -0
  50. {spitch-1.3.0 → spitch-1.4.0}/src/spitch/resources/text.py +0 -0
  51. {spitch-1.3.0 → spitch-1.4.0}/src/spitch/types/__init__.py +0 -0
  52. {spitch-1.3.0 → spitch-1.4.0}/src/spitch/types/speech_transcibe_params.py +0 -0
  53. {spitch-1.3.0 → spitch-1.4.0}/src/spitch/types/text_tone_mark_params.py +0 -0
  54. {spitch-1.3.0 → spitch-1.4.0}/tests/__init__.py +0 -0
  55. {spitch-1.3.0 → spitch-1.4.0}/tests/api_resources/__init__.py +0 -0
  56. {spitch-1.3.0 → spitch-1.4.0}/tests/api_resources/test_text.py +0 -0
  57. {spitch-1.3.0 → spitch-1.4.0}/tests/conftest.py +0 -0
  58. {spitch-1.3.0 → spitch-1.4.0}/tests/sample_file.txt +0 -0
  59. {spitch-1.3.0 → spitch-1.4.0}/tests/test_client.py +0 -0
  60. {spitch-1.3.0 → spitch-1.4.0}/tests/test_deepcopy.py +0 -0
  61. {spitch-1.3.0 → spitch-1.4.0}/tests/test_extract_files.py +0 -0
  62. {spitch-1.3.0 → spitch-1.4.0}/tests/test_files.py +0 -0
  63. {spitch-1.3.0 → spitch-1.4.0}/tests/test_models.py +0 -0
  64. {spitch-1.3.0 → spitch-1.4.0}/tests/test_qs.py +0 -0
  65. {spitch-1.3.0 → spitch-1.4.0}/tests/test_required_args.py +0 -0
  66. {spitch-1.3.0 → spitch-1.4.0}/tests/test_response.py +0 -0
  67. {spitch-1.3.0 → spitch-1.4.0}/tests/test_streaming.py +0 -0
  68. {spitch-1.3.0 → spitch-1.4.0}/tests/test_transform.py +0 -0
  69. {spitch-1.3.0 → spitch-1.4.0}/tests/test_utils/test_proxy.py +0 -0
  70. {spitch-1.3.0 → spitch-1.4.0}/tests/test_utils/test_typing.py +0 -0
  71. {spitch-1.3.0 → spitch-1.4.0}/tests/utils.py +0 -0
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "1.4.0"
3
+ }
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.4.0 (2024-10-07)
4
+
5
+ Full Changelog: [v1.3.0...v1.4.0](https://github.com/spi-tch/spitch-python/compare/v1.3.0...v1.4.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** update via SDK Studio ([#20](https://github.com/spi-tch/spitch-python/issues/20)) ([d1b3421](https://github.com/spi-tch/spitch-python/commit/d1b3421f383b9a575c0721baa32e687aa6609dd6))
10
+ * **api:** update via SDK Studio ([#23](https://github.com/spi-tch/spitch-python/issues/23)) ([b0ee3b3](https://github.com/spi-tch/spitch-python/commit/b0ee3b3f10059097252b95498097a4ebeb203afb))
11
+
3
12
  ## 1.3.0 (2024-10-07)
4
13
 
5
14
  Full Changelog: [v1.2.0...v1.3.0](https://github.com/spi-tch/spitch-python/compare/v1.2.0...v1.3.0)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: spitch
3
- Version: 1.3.0
3
+ Version: 1.4.0
4
4
  Summary: The official Python library for the spitch API
5
5
  Project-URL: Homepage, https://github.com/spi-tch/spitch-python
6
6
  Project-URL: Repository, https://github.com/spi-tch/spitch-python
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "spitch"
3
- version = "1.3.0"
3
+ version = "1.4.0"
4
4
  description = "The official Python library for the spitch API"
5
5
  dynamic = ["readme"]
6
6
  license = "Apache-2.0"
@@ -1,4 +1,4 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  __title__ = "spitch"
4
- __version__ = "1.3.0" # x-release-please-version
4
+ __version__ = "1.4.0" # x-release-please-version
@@ -61,7 +61,6 @@ class SpeechResource(SyncAPIResource):
61
61
  *,
62
62
  language: Literal["yo", "en", "ha", "ig"],
63
63
  text: str,
64
- stream: bool | NotGiven = NOT_GIVEN,
65
64
  voice: Literal["sade", "segun", "femi", "funmi"] | NotGiven = NOT_GIVEN,
66
65
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
67
66
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -94,11 +93,7 @@ class SpeechResource(SyncAPIResource):
94
93
  speech_generate_params.SpeechGenerateParams,
95
94
  ),
96
95
  options=make_request_options(
97
- extra_headers=extra_headers,
98
- extra_query=extra_query,
99
- extra_body=extra_body,
100
- timeout=timeout,
101
- query=maybe_transform({"stream": stream}, speech_generate_params.SpeechGenerateParams),
96
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
102
97
  ),
103
98
  cast_to=BinaryAPIResponse,
104
99
  )
@@ -176,7 +171,6 @@ class AsyncSpeechResource(AsyncAPIResource):
176
171
  *,
177
172
  language: Literal["yo", "en", "ha", "ig"],
178
173
  text: str,
179
- stream: bool | NotGiven = NOT_GIVEN,
180
174
  voice: Literal["sade", "segun", "femi", "funmi"] | NotGiven = NOT_GIVEN,
181
175
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
182
176
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -209,11 +203,7 @@ class AsyncSpeechResource(AsyncAPIResource):
209
203
  speech_generate_params.SpeechGenerateParams,
210
204
  ),
211
205
  options=make_request_options(
212
- extra_headers=extra_headers,
213
- extra_query=extra_query,
214
- extra_body=extra_body,
215
- timeout=timeout,
216
- query=await async_maybe_transform({"stream": stream}, speech_generate_params.SpeechGenerateParams),
206
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
217
207
  ),
218
208
  cast_to=AsyncBinaryAPIResponse,
219
209
  )
@@ -12,6 +12,4 @@ class SpeechGenerateParams(TypedDict, total=False):
12
12
 
13
13
  text: Required[str]
14
14
 
15
- stream: bool
16
-
17
15
  voice: Literal["sade", "segun", "femi", "funmi"]
@@ -44,7 +44,6 @@ class TestSpeech:
44
44
  speech = client.speech.generate(
45
45
  language="yo",
46
46
  text="text",
47
- stream=True,
48
47
  voice="sade",
49
48
  )
50
49
  assert speech.is_closed
@@ -148,7 +147,6 @@ class TestAsyncSpeech:
148
147
  speech = await async_client.speech.generate(
149
148
  language="yo",
150
149
  text="text",
151
- stream=True,
152
150
  voice="sade",
153
151
  )
154
152
  assert speech.is_closed
@@ -1,3 +0,0 @@
1
- {
2
- ".": "1.3.0"
3
- }
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
File without changes