spitch 1.25.0__tar.gz → 1.27.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.
- spitch-1.27.0/.release-please-manifest.json +3 -0
- {spitch-1.25.0 → spitch-1.27.0}/CHANGELOG.md +57 -0
- {spitch-1.25.0 → spitch-1.27.0}/CONTRIBUTING.md +1 -2
- {spitch-1.25.0 → spitch-1.27.0}/PKG-INFO +2 -2
- {spitch-1.25.0 → spitch-1.27.0}/README.md +1 -1
- {spitch-1.25.0 → spitch-1.27.0}/SECURITY.md +2 -2
- {spitch-1.25.0 → spitch-1.27.0}/pyproject.toml +5 -3
- {spitch-1.25.0 → spitch-1.27.0}/requirements-dev.lock +5 -1
- {spitch-1.25.0 → spitch-1.27.0}/src/spitch/__init__.py +5 -0
- {spitch-1.25.0 → spitch-1.27.0}/src/spitch/_base_client.py +227 -233
- {spitch-1.25.0 → spitch-1.27.0}/src/spitch/_client.py +1 -4
- {spitch-1.25.0 → spitch-1.27.0}/src/spitch/_models.py +4 -3
- {spitch-1.25.0 → spitch-1.27.0}/src/spitch/_response.py +1 -1
- {spitch-1.25.0 → spitch-1.27.0}/src/spitch/_types.py +2 -0
- {spitch-1.25.0 → spitch-1.27.0}/src/spitch/_utils/_proxy.py +4 -1
- spitch-1.27.0/src/spitch/_utils/_resources_proxy.py +24 -0
- {spitch-1.25.0 → spitch-1.27.0}/src/spitch/_utils/_typing.py +1 -1
- {spitch-1.25.0 → spitch-1.27.0}/src/spitch/_utils/_utils.py +9 -1
- {spitch-1.25.0 → spitch-1.27.0}/src/spitch/_version.py +1 -1
- {spitch-1.25.0 → spitch-1.27.0}/src/spitch/resources/speech.py +13 -10
- {spitch-1.25.0 → spitch-1.27.0}/src/spitch/resources/text.py +7 -10
- {spitch-1.25.0 → spitch-1.27.0}/src/spitch/types/speech_generate_params.py +5 -1
- {spitch-1.25.0 → spitch-1.27.0}/src/spitch/types/speech_transcribe_params.py +1 -1
- {spitch-1.25.0 → spitch-1.27.0}/src/spitch/types/text_tone_mark_params.py +1 -1
- {spitch-1.25.0 → spitch-1.27.0}/src/spitch/types/text_translate_params.py +2 -2
- {spitch-1.25.0 → spitch-1.27.0}/tests/conftest.py +3 -1
- {spitch-1.25.0 → spitch-1.27.0}/tests/test_client.py +106 -1
- {spitch-1.25.0 → spitch-1.27.0}/tests/test_models.py +60 -0
- {spitch-1.25.0 → spitch-1.27.0}/tests/test_utils/test_proxy.py +11 -0
- spitch-1.25.0/.release-please-manifest.json +0 -3
- {spitch-1.25.0 → spitch-1.27.0}/.gitignore +0 -0
- {spitch-1.25.0 → spitch-1.27.0}/LICENSE +0 -0
- {spitch-1.25.0 → spitch-1.27.0}/api.md +0 -0
- {spitch-1.25.0 → spitch-1.27.0}/bin/check-release-environment +0 -0
- {spitch-1.25.0 → spitch-1.27.0}/bin/publish-pypi +0 -0
- {spitch-1.25.0 → spitch-1.27.0}/examples/.keep +0 -0
- {spitch-1.25.0 → spitch-1.27.0}/examples/example.py +0 -0
- {spitch-1.25.0 → spitch-1.27.0}/mypy.ini +0 -0
- {spitch-1.25.0 → spitch-1.27.0}/noxfile.py +0 -0
- {spitch-1.25.0 → spitch-1.27.0}/release-please-config.json +0 -0
- {spitch-1.25.0 → spitch-1.27.0}/requirements.lock +0 -0
- {spitch-1.25.0 → spitch-1.27.0}/src/spitch/_compat.py +0 -0
- {spitch-1.25.0 → spitch-1.27.0}/src/spitch/_constants.py +0 -0
- {spitch-1.25.0 → spitch-1.27.0}/src/spitch/_exceptions.py +0 -0
- {spitch-1.25.0 → spitch-1.27.0}/src/spitch/_files.py +0 -0
- {spitch-1.25.0 → spitch-1.27.0}/src/spitch/_qs.py +0 -0
- {spitch-1.25.0 → spitch-1.27.0}/src/spitch/_resource.py +0 -0
- {spitch-1.25.0 → spitch-1.27.0}/src/spitch/_streaming.py +0 -0
- {spitch-1.25.0 → spitch-1.27.0}/src/spitch/_utils/__init__.py +0 -0
- {spitch-1.25.0 → spitch-1.27.0}/src/spitch/_utils/_logs.py +0 -0
- {spitch-1.25.0 → spitch-1.27.0}/src/spitch/_utils/_reflection.py +0 -0
- {spitch-1.25.0 → spitch-1.27.0}/src/spitch/_utils/_streams.py +0 -0
- {spitch-1.25.0 → spitch-1.27.0}/src/spitch/_utils/_sync.py +0 -0
- {spitch-1.25.0 → spitch-1.27.0}/src/spitch/_utils/_transform.py +0 -0
- {spitch-1.25.0 → spitch-1.27.0}/src/spitch/lib/.keep +0 -0
- {spitch-1.25.0 → spitch-1.27.0}/src/spitch/py.typed +0 -0
- {spitch-1.25.0 → spitch-1.27.0}/src/spitch/resources/__init__.py +0 -0
- {spitch-1.25.0 → spitch-1.27.0}/src/spitch/types/__init__.py +0 -0
- {spitch-1.25.0 → spitch-1.27.0}/src/spitch/types/speech_transcribe_response.py +0 -0
- {spitch-1.25.0 → spitch-1.27.0}/src/spitch/types/text_tone_mark_response.py +0 -0
- {spitch-1.25.0 → spitch-1.27.0}/src/spitch/types/text_translate_response.py +0 -0
- {spitch-1.25.0 → spitch-1.27.0}/tests/__init__.py +0 -0
- {spitch-1.25.0 → spitch-1.27.0}/tests/api_resources/__init__.py +0 -0
- {spitch-1.25.0 → spitch-1.27.0}/tests/api_resources/test_speech.py +0 -0
- {spitch-1.25.0 → spitch-1.27.0}/tests/api_resources/test_text.py +0 -0
- {spitch-1.25.0 → spitch-1.27.0}/tests/sample_file.txt +0 -0
- {spitch-1.25.0 → spitch-1.27.0}/tests/test_deepcopy.py +0 -0
- {spitch-1.25.0 → spitch-1.27.0}/tests/test_extract_files.py +0 -0
- {spitch-1.25.0 → spitch-1.27.0}/tests/test_files.py +0 -0
- {spitch-1.25.0 → spitch-1.27.0}/tests/test_qs.py +0 -0
- {spitch-1.25.0 → spitch-1.27.0}/tests/test_required_args.py +0 -0
- {spitch-1.25.0 → spitch-1.27.0}/tests/test_response.py +0 -0
- {spitch-1.25.0 → spitch-1.27.0}/tests/test_streaming.py +0 -0
- {spitch-1.25.0 → spitch-1.27.0}/tests/test_transform.py +0 -0
- {spitch-1.25.0 → spitch-1.27.0}/tests/test_utils/test_typing.py +0 -0
- {spitch-1.25.0 → spitch-1.27.0}/tests/utils.py +0 -0
|
@@ -1,5 +1,62 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.27.0 (2025-06-17)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v1.26.0...v1.27.0](https://github.com/spi-tch/spitch-python/compare/v1.26.0...v1.27.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **client:** add follow_redirects request option ([23f17af](https://github.com/spi-tch/spitch-python/commit/23f17afc3292d6641890115e849134e14412ab7c))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* **client:** correctly parse binary response | stream ([43997d9](https://github.com/spi-tch/spitch-python/commit/43997d9e1f67269df4f5ed9472f1abb6dfc8afc3))
|
|
15
|
+
* **package:** support direct resource imports ([3b664db](https://github.com/spi-tch/spitch-python/commit/3b664db8de2fe51363215430c04ef0d45a96ef15))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Chores
|
|
19
|
+
|
|
20
|
+
* broadly detect json family of content-type headers ([1358fe6](https://github.com/spi-tch/spitch-python/commit/1358fe6da25145ce5d57317a835bf306e9886f5c))
|
|
21
|
+
* **ci:** enable for pull requests ([f21c633](https://github.com/spi-tch/spitch-python/commit/f21c633b3bc746fdfcf95214bda7e664212fce3f))
|
|
22
|
+
* **ci:** fix installation instructions ([c23d223](https://github.com/spi-tch/spitch-python/commit/c23d22393563b50ac77742d75cda7f7b95e8a4a0))
|
|
23
|
+
* **ci:** only use depot for staging repos ([86c82b9](https://github.com/spi-tch/spitch-python/commit/86c82b989e1599bc9d71060f2f2998eaa4b79081))
|
|
24
|
+
* **ci:** upload sdks to package manager ([a40305e](https://github.com/spi-tch/spitch-python/commit/a40305e129dd6795b0e0e1408b863758cfad62d0))
|
|
25
|
+
* **docs:** grammar improvements ([e31d3bb](https://github.com/spi-tch/spitch-python/commit/e31d3bbe8aa390cdbae514e16e31e45b3ee5a4d5))
|
|
26
|
+
* **docs:** remove reference to rye shell ([b7f1703](https://github.com/spi-tch/spitch-python/commit/b7f1703ce312c6733e2986d045568b003ac4bba1))
|
|
27
|
+
* **internal:** avoid errors for isinstance checks on proxies ([aaf12a5](https://github.com/spi-tch/spitch-python/commit/aaf12a5580a673adbf303bea88f958f384b0ebcd))
|
|
28
|
+
* **internal:** codegen related update ([fc70ee0](https://github.com/spi-tch/spitch-python/commit/fc70ee0bf2bb47f12ec36a35fad1b27d257897ce))
|
|
29
|
+
* **internal:** update conftest.py ([1b062cd](https://github.com/spi-tch/spitch-python/commit/1b062cdf9d6200399d24bceb73e31779a80be190))
|
|
30
|
+
* **tests:** add tests for httpx client instantiation & proxies ([a57f4cc](https://github.com/spi-tch/spitch-python/commit/a57f4cc2105706eb53c9483ac74e2ec4995bd757))
|
|
31
|
+
* **tests:** run tests in parallel ([da93455](https://github.com/spi-tch/spitch-python/commit/da93455365f885480cf4553ab138fc71eebd59f9))
|
|
32
|
+
|
|
33
|
+
## 1.26.0 (2025-04-23)
|
|
34
|
+
|
|
35
|
+
Full Changelog: [v1.25.0...v1.26.0](https://github.com/spi-tch/spitch-python/compare/v1.25.0...v1.26.0)
|
|
36
|
+
|
|
37
|
+
### Features
|
|
38
|
+
|
|
39
|
+
* **api:** update via SDK Studio ([9e64faf](https://github.com/spi-tch/spitch-python/commit/9e64faf9bbbc57c8e44d1a347a64ef3396ed4472))
|
|
40
|
+
* **api:** update via SDK Studio ([2fc4429](https://github.com/spi-tch/spitch-python/commit/2fc442984db836b5432b07891ea9a777822a5cac))
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### Bug Fixes
|
|
44
|
+
|
|
45
|
+
* **pydantic v1:** more robust ModelField.annotation check ([f5079d4](https://github.com/spi-tch/spitch-python/commit/f5079d48e4adc75593d5656512946569ca8f2932))
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
### Chores
|
|
49
|
+
|
|
50
|
+
* **ci:** add timeout thresholds for CI jobs ([8dd6edf](https://github.com/spi-tch/spitch-python/commit/8dd6edf6523812a052ce8b900c387f4fc0928925))
|
|
51
|
+
* **client:** minor internal fixes ([d9a6927](https://github.com/spi-tch/spitch-python/commit/d9a69272125832cfab65cf88ede7527770e447f3))
|
|
52
|
+
* **internal:** base client updates ([b900090](https://github.com/spi-tch/spitch-python/commit/b9000901050f076ce2c2485c878ea7a8535c9257))
|
|
53
|
+
* **internal:** bump pyright version ([a281060](https://github.com/spi-tch/spitch-python/commit/a28106063e43b6f6d7d9af738a6cc4a0b0e2ebed))
|
|
54
|
+
* **internal:** fix list file params ([21ca206](https://github.com/spi-tch/spitch-python/commit/21ca2061b42069c0405e6302ab8841e7a7683670))
|
|
55
|
+
* **internal:** import reformatting ([65b55d9](https://github.com/spi-tch/spitch-python/commit/65b55d9ed72e5656b5cd70152d652295d3925b4b))
|
|
56
|
+
* **internal:** refactor retries to not use recursion ([be7d9aa](https://github.com/spi-tch/spitch-python/commit/be7d9aac3cd43ea510181717329acd4607c37c07))
|
|
57
|
+
* **internal:** update models test ([05a0518](https://github.com/spi-tch/spitch-python/commit/05a0518e8db6186e2c7ac031352b336f5c43e68d))
|
|
58
|
+
* **internal:** update pyright settings ([8df5838](https://github.com/spi-tch/spitch-python/commit/8df58385cb95aadcfe2b341cd7a49142b64d960e))
|
|
59
|
+
|
|
3
60
|
## 1.25.0 (2025-04-14)
|
|
4
61
|
|
|
5
62
|
Full Changelog: [v1.24.1...v1.25.0](https://github.com/spi-tch/spitch-python/compare/v1.24.1...v1.25.0)
|
|
@@ -17,8 +17,7 @@ $ rye sync --all-features
|
|
|
17
17
|
You can then run scripts using `rye run python script.py` or by activating the virtual environment:
|
|
18
18
|
|
|
19
19
|
```sh
|
|
20
|
-
|
|
21
|
-
# or manually activate - https://docs.python.org/3/library/venv.html#how-venvs-work
|
|
20
|
+
# Activate the virtual environment - https://docs.python.org/3/library/venv.html#how-venvs-work
|
|
22
21
|
$ source .venv/bin/activate
|
|
23
22
|
|
|
24
23
|
# now you can omit the `rye run` prefix
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: spitch
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.27.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
|
|
@@ -42,7 +42,7 @@ It is generated with [Stainless](https://www.stainless.com/).
|
|
|
42
42
|
|
|
43
43
|
## Documentation
|
|
44
44
|
|
|
45
|
-
The REST API documentation can be found on [docs.
|
|
45
|
+
The REST API documentation can be found on [docs.spitch.app](https://docs.spitch.app). The full API of this library can be found in [api.md](https://github.com/spi-tch/spitch-python/tree/main/api.md).
|
|
46
46
|
|
|
47
47
|
## Installation
|
|
48
48
|
|
|
@@ -10,7 +10,7 @@ It is generated with [Stainless](https://www.stainless.com/).
|
|
|
10
10
|
|
|
11
11
|
## Documentation
|
|
12
12
|
|
|
13
|
-
The REST API documentation can be found on [docs.
|
|
13
|
+
The REST API documentation can be found on [docs.spitch.app](https://docs.spitch.app). The full API of this library can be found in [api.md](api.md).
|
|
14
14
|
|
|
15
15
|
## Installation
|
|
16
16
|
|
|
@@ -16,11 +16,11 @@ before making any information public.
|
|
|
16
16
|
## Reporting Non-SDK Related Security Issues
|
|
17
17
|
|
|
18
18
|
If you encounter security issues that are not directly related to SDKs but pertain to the services
|
|
19
|
-
or products provided by Spitch please follow the respective company's security reporting guidelines.
|
|
19
|
+
or products provided by Spitch, please follow the respective company's security reporting guidelines.
|
|
20
20
|
|
|
21
21
|
### Spitch Terms and Policies
|
|
22
22
|
|
|
23
|
-
Please contact dev@spitch.app for any questions or concerns regarding security of our services.
|
|
23
|
+
Please contact dev@spitch.app for any questions or concerns regarding the security of our services.
|
|
24
24
|
|
|
25
25
|
---
|
|
26
26
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "spitch"
|
|
3
|
-
version = "1.
|
|
3
|
+
version = "1.27.0"
|
|
4
4
|
description = "The official Python library for the spitch API"
|
|
5
5
|
dynamic = ["readme"]
|
|
6
6
|
license = "Apache-2.0"
|
|
@@ -43,7 +43,7 @@ Repository = "https://github.com/spi-tch/spitch-python"
|
|
|
43
43
|
managed = true
|
|
44
44
|
# version pins are in requirements-dev.lock
|
|
45
45
|
dev-dependencies = [
|
|
46
|
-
"pyright
|
|
46
|
+
"pyright==1.1.399",
|
|
47
47
|
"mypy",
|
|
48
48
|
"respx",
|
|
49
49
|
"pytest",
|
|
@@ -55,6 +55,7 @@ dev-dependencies = [
|
|
|
55
55
|
"importlib-metadata>=6.7.0",
|
|
56
56
|
"rich>=13.7.1",
|
|
57
57
|
"nest_asyncio==1.6.0",
|
|
58
|
+
"pytest-xdist>=3.6.1",
|
|
58
59
|
]
|
|
59
60
|
|
|
60
61
|
[tool.rye.scripts]
|
|
@@ -126,7 +127,7 @@ replacement = '[\1](https://github.com/spi-tch/spitch-python/tree/main/\g<2>)'
|
|
|
126
127
|
|
|
127
128
|
[tool.pytest.ini_options]
|
|
128
129
|
testpaths = ["tests"]
|
|
129
|
-
addopts = "--tb=short"
|
|
130
|
+
addopts = "--tb=short -n auto"
|
|
130
131
|
xfail_strict = true
|
|
131
132
|
asyncio_mode = "auto"
|
|
132
133
|
asyncio_default_fixture_loop_scope = "session"
|
|
@@ -148,6 +149,7 @@ exclude = [
|
|
|
148
149
|
]
|
|
149
150
|
|
|
150
151
|
reportImplicitOverride = true
|
|
152
|
+
reportOverlappingOverload = false
|
|
151
153
|
|
|
152
154
|
reportImportCycles = false
|
|
153
155
|
reportPrivateUsage = false
|
|
@@ -30,6 +30,8 @@ distro==1.8.0
|
|
|
30
30
|
exceptiongroup==1.2.2
|
|
31
31
|
# via anyio
|
|
32
32
|
# via pytest
|
|
33
|
+
execnet==2.1.1
|
|
34
|
+
# via pytest-xdist
|
|
33
35
|
filelock==3.12.4
|
|
34
36
|
# via virtualenv
|
|
35
37
|
h11==0.14.0
|
|
@@ -69,10 +71,12 @@ pydantic-core==2.23.4
|
|
|
69
71
|
# via pydantic
|
|
70
72
|
pygments==2.18.0
|
|
71
73
|
# via rich
|
|
72
|
-
pyright==1.1.
|
|
74
|
+
pyright==1.1.399
|
|
73
75
|
pytest==8.3.3
|
|
74
76
|
# via pytest-asyncio
|
|
77
|
+
# via pytest-xdist
|
|
75
78
|
pytest-asyncio==0.24.0
|
|
79
|
+
pytest-xdist==3.7.0
|
|
76
80
|
python-dateutil==2.8.2
|
|
77
81
|
# via time-machine
|
|
78
82
|
pytz==2023.3.post1
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
+
import typing as _t
|
|
4
|
+
|
|
3
5
|
from . import types
|
|
4
6
|
from ._types import NOT_GIVEN, NoneType, NotGiven, Transport, ProxiesTypes
|
|
5
7
|
from ._utils import file_from_path
|
|
@@ -67,6 +69,9 @@ __all__ = [
|
|
|
67
69
|
"DefaultAsyncHttpxClient",
|
|
68
70
|
]
|
|
69
71
|
|
|
72
|
+
if not _t.TYPE_CHECKING:
|
|
73
|
+
from ._utils._resources_proxy import resources as resources
|
|
74
|
+
|
|
70
75
|
_setup_logging()
|
|
71
76
|
|
|
72
77
|
# Update the __module__ attribute for exported symbols so that
|