codeset 0.1.0a4__py3-none-any.whl → 0.1.0a5__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.
Potentially problematic release.
This version of codeset might be problematic. Click here for more details.
- codeset/_constants.py +5 -5
- codeset/_version.py +1 -1
- {codeset-0.1.0a4.dist-info → codeset-0.1.0a5.dist-info}/METADATA +4 -4
- {codeset-0.1.0a4.dist-info → codeset-0.1.0a5.dist-info}/RECORD +6 -6
- {codeset-0.1.0a4.dist-info → codeset-0.1.0a5.dist-info}/WHEEL +0 -0
- {codeset-0.1.0a4.dist-info → codeset-0.1.0a5.dist-info}/licenses/LICENSE +0 -0
codeset/_constants.py
CHANGED
|
@@ -5,10 +5,10 @@ import httpx
|
|
|
5
5
|
RAW_RESPONSE_HEADER = "X-Stainless-Raw-Response"
|
|
6
6
|
OVERRIDE_CAST_TO_HEADER = "____stainless_override_cast_to"
|
|
7
7
|
|
|
8
|
-
# default timeout is
|
|
9
|
-
DEFAULT_TIMEOUT = httpx.Timeout(timeout=
|
|
10
|
-
DEFAULT_MAX_RETRIES =
|
|
8
|
+
# default timeout is 5 minutes
|
|
9
|
+
DEFAULT_TIMEOUT = httpx.Timeout(timeout=300, connect=5.0)
|
|
10
|
+
DEFAULT_MAX_RETRIES = 0
|
|
11
11
|
DEFAULT_CONNECTION_LIMITS = httpx.Limits(max_connections=100, max_keepalive_connections=20)
|
|
12
12
|
|
|
13
|
-
INITIAL_RETRY_DELAY = 0.
|
|
14
|
-
MAX_RETRY_DELAY =
|
|
13
|
+
INITIAL_RETRY_DELAY = 0.0
|
|
14
|
+
MAX_RETRY_DELAY = 0.0
|
codeset/_version.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: codeset
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.0a5
|
|
4
4
|
Summary: The official Python library for the codeset API
|
|
5
5
|
Project-URL: Homepage, https://github.com/codeset-ai/codeset-sdk
|
|
6
6
|
Project-URL: Repository, https://github.com/codeset-ai/codeset-sdk
|
|
@@ -182,7 +182,7 @@ Error codes are as follows:
|
|
|
182
182
|
|
|
183
183
|
### Retries
|
|
184
184
|
|
|
185
|
-
Certain errors are automatically retried
|
|
185
|
+
Certain errors are automatically retried 0 times by default, with a short exponential backoff.
|
|
186
186
|
Connection errors (for example, due to a network connectivity problem), 408 Request Timeout, 409 Conflict,
|
|
187
187
|
429 Rate Limit, and >=500 Internal errors are all retried by default.
|
|
188
188
|
|
|
@@ -203,7 +203,7 @@ client.with_options(max_retries=5).health.check()
|
|
|
203
203
|
|
|
204
204
|
### Timeouts
|
|
205
205
|
|
|
206
|
-
By default requests time out after
|
|
206
|
+
By default requests time out after 5 minutes. You can configure this with a `timeout` option,
|
|
207
207
|
which accepts a float or an [`httpx.Timeout`](https://www.python-httpx.org/advanced/timeouts/#fine-tuning-the-configuration) object:
|
|
208
208
|
|
|
209
209
|
```python
|
|
@@ -211,7 +211,7 @@ from codeset import Codeset
|
|
|
211
211
|
|
|
212
212
|
# Configure the default for all requests:
|
|
213
213
|
client = Codeset(
|
|
214
|
-
# 20 seconds (default is
|
|
214
|
+
# 20 seconds (default is 5 minutes)
|
|
215
215
|
timeout=20.0,
|
|
216
216
|
)
|
|
217
217
|
|
|
@@ -2,7 +2,7 @@ codeset/__init__.py,sha256=EsK759s1z8FPFqxjNIVx1WaqbYYHOpI2xeHcSNyW30U,2587
|
|
|
2
2
|
codeset/_base_client.py,sha256=AY78tq7Tul-Hwl1Lmw3MCuSJ9WeWTA6UikYi8NSPW4Q,66716
|
|
3
3
|
codeset/_client.py,sha256=bjUU8sUoVdWxTXNrpLaijL-JwucihqzfeEglN_nmH_g,16585
|
|
4
4
|
codeset/_compat.py,sha256=VWemUKbj6DDkQ-O4baSpHVLJafotzeXmCQGJugfVTIw,6580
|
|
5
|
-
codeset/_constants.py,sha256=
|
|
5
|
+
codeset/_constants.py,sha256=SiR7F9XqRp2zFGI5kXnK7smZu4Ek80R8bg6EGeH0SqI,464
|
|
6
6
|
codeset/_exceptions.py,sha256=b6V9pgGqb8KEwAif3Qw9PuGjOr3eCJo25n89ZWBKZlw,3222
|
|
7
7
|
codeset/_files.py,sha256=mf4dOgL4b0ryyZlbqLhggD3GVgDf6XxdGFAgce01ugE,3549
|
|
8
8
|
codeset/_models.py,sha256=G1vczEodX0vUySeVKbF-mbzlaObNL1oVAYH4c65agRk,29131
|
|
@@ -11,7 +11,7 @@ codeset/_resource.py,sha256=MhmvrwixEq6echG2IFv1gO_nE_zfFTNw65s0JjsMee0,1106
|
|
|
11
11
|
codeset/_response.py,sha256=lC6V1z6Az0X_Rk9MgwN8hOzYUSEwtp6_py_H3agR04A,28794
|
|
12
12
|
codeset/_streaming.py,sha256=HqkgFE-gv9S7T4QfGa5pD4suEOvQ8BHZRxJR_NQcXak,10104
|
|
13
13
|
codeset/_types.py,sha256=vWg2CtlXHiPre02gXyJkXvCkxVygqATc07iCsEZmceA,6198
|
|
14
|
-
codeset/_version.py,sha256=
|
|
14
|
+
codeset/_version.py,sha256=Yqn7t1RPDJB1DtF6HpMB4LbFmd0iUGlVnG0g8t4EjKc,167
|
|
15
15
|
codeset/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
16
|
codeset/_utils/__init__.py,sha256=PNZ_QJuzZEgyYXqkO1HVhGkj5IU9bglVUcw7H-Knjzw,2062
|
|
17
17
|
codeset/_utils/_logs.py,sha256=3sgppSduJj3mlW7qLTrVdtoy3NXJnuu7MFZrpGzamJQ,777
|
|
@@ -50,7 +50,7 @@ codeset/types/sessions/__init__.py,sha256=hRiBeT3umo01iicnTjI3UOh_Q6AspqzyyG-OEt
|
|
|
50
50
|
codeset/types/sessions/job_status.py,sha256=-BwrXSe6dZJaofc2J08HVu1croIV9-C3cURHR947PF4,279
|
|
51
51
|
codeset/types/sessions/verify_start_response.py,sha256=Dk1iyafuj1IAL39VQji_znUUMxDXI8QXn2QKB-ME4uw,482
|
|
52
52
|
codeset/types/sessions/verify_status_response.py,sha256=WI1QkwnsBAYvqjRzD4ewZ0685SwIhTjX6Hber3AadxY,1722
|
|
53
|
-
codeset-0.1.
|
|
54
|
-
codeset-0.1.
|
|
55
|
-
codeset-0.1.
|
|
56
|
-
codeset-0.1.
|
|
53
|
+
codeset-0.1.0a5.dist-info/METADATA,sha256=wQRIMgNog18_pv7YwkuTft_v3QSL_VJMZ9GJ30pCXvk,13345
|
|
54
|
+
codeset-0.1.0a5.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
|
55
|
+
codeset-0.1.0a5.dist-info/licenses/LICENSE,sha256=SzrebAd3MnL58zf3dEBLJvstQvQe33mCCY2TmzKEmY8,11337
|
|
56
|
+
codeset-0.1.0a5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|