raccoonai 0.1.0a4__py3-none-any.whl → 0.1.0a6__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 raccoonai might be problematic. Click here for more details.
- raccoonai/_base_client.py +1 -1
- raccoonai/_constants.py +4 -4
- raccoonai/_version.py +1 -1
- raccoonai/resources/fleet.py +4 -4
- raccoonai/resources/lam.py +4 -4
- {raccoonai-0.1.0a4.dist-info → raccoonai-0.1.0a6.dist-info}/METADATA +13 -13
- {raccoonai-0.1.0a4.dist-info → raccoonai-0.1.0a6.dist-info}/RECORD +9 -9
- {raccoonai-0.1.0a4.dist-info → raccoonai-0.1.0a6.dist-info}/WHEEL +0 -0
- {raccoonai-0.1.0a4.dist-info → raccoonai-0.1.0a6.dist-info}/licenses/LICENSE +0 -0
raccoonai/_base_client.py
CHANGED
|
@@ -518,7 +518,7 @@ class BaseClient(Generic[_HttpxClientT, _DefaultStreamT]):
|
|
|
518
518
|
# so that passing a `TypedDict` doesn't cause an error.
|
|
519
519
|
# https://github.com/microsoft/pyright/issues/3526#event-6715453066
|
|
520
520
|
params=self.qs.stringify(cast(Mapping[str, Any], params)) if params else None,
|
|
521
|
-
json=json_data,
|
|
521
|
+
json=json_data if is_given(json_data) else None,
|
|
522
522
|
files=files,
|
|
523
523
|
**kwargs,
|
|
524
524
|
)
|
raccoonai/_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 10 minutes
|
|
9
|
+
DEFAULT_TIMEOUT = httpx.Timeout(timeout=600, 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
|
|
13
|
+
INITIAL_RETRY_DELAY = 1.0
|
|
14
14
|
MAX_RETRY_DELAY = 8.0
|
raccoonai/_version.py
CHANGED
raccoonai/resources/fleet.py
CHANGED
|
@@ -36,7 +36,7 @@ class FleetResource(SyncAPIResource):
|
|
|
36
36
|
This property can be used as a prefix for any HTTP method call to return
|
|
37
37
|
the raw response object instead of the parsed content.
|
|
38
38
|
|
|
39
|
-
For more information, see https://www.github.com/
|
|
39
|
+
For more information, see https://www.github.com/raccoonaihq/raccoonai-python#accessing-raw-response-data-eg-headers
|
|
40
40
|
"""
|
|
41
41
|
return FleetResourceWithRawResponse(self)
|
|
42
42
|
|
|
@@ -45,7 +45,7 @@ class FleetResource(SyncAPIResource):
|
|
|
45
45
|
"""
|
|
46
46
|
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
47
47
|
|
|
48
|
-
For more information, see https://www.github.com/
|
|
48
|
+
For more information, see https://www.github.com/raccoonaihq/raccoonai-python#with_streaming_response
|
|
49
49
|
"""
|
|
50
50
|
return FleetResourceWithStreamingResponse(self)
|
|
51
51
|
|
|
@@ -228,7 +228,7 @@ class AsyncFleetResource(AsyncAPIResource):
|
|
|
228
228
|
This property can be used as a prefix for any HTTP method call to return
|
|
229
229
|
the raw response object instead of the parsed content.
|
|
230
230
|
|
|
231
|
-
For more information, see https://www.github.com/
|
|
231
|
+
For more information, see https://www.github.com/raccoonaihq/raccoonai-python#accessing-raw-response-data-eg-headers
|
|
232
232
|
"""
|
|
233
233
|
return AsyncFleetResourceWithRawResponse(self)
|
|
234
234
|
|
|
@@ -237,7 +237,7 @@ class AsyncFleetResource(AsyncAPIResource):
|
|
|
237
237
|
"""
|
|
238
238
|
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
239
239
|
|
|
240
|
-
For more information, see https://www.github.com/
|
|
240
|
+
For more information, see https://www.github.com/raccoonaihq/raccoonai-python#with_streaming_response
|
|
241
241
|
"""
|
|
242
242
|
return AsyncFleetResourceWithStreamingResponse(self)
|
|
243
243
|
|
raccoonai/resources/lam.py
CHANGED
|
@@ -38,7 +38,7 @@ class LamResource(SyncAPIResource):
|
|
|
38
38
|
This property can be used as a prefix for any HTTP method call to return
|
|
39
39
|
the raw response object instead of the parsed content.
|
|
40
40
|
|
|
41
|
-
For more information, see https://www.github.com/
|
|
41
|
+
For more information, see https://www.github.com/raccoonaihq/raccoonai-python#accessing-raw-response-data-eg-headers
|
|
42
42
|
"""
|
|
43
43
|
return LamResourceWithRawResponse(self)
|
|
44
44
|
|
|
@@ -47,7 +47,7 @@ class LamResource(SyncAPIResource):
|
|
|
47
47
|
"""
|
|
48
48
|
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
49
49
|
|
|
50
|
-
For more information, see https://www.github.com/
|
|
50
|
+
For more information, see https://www.github.com/raccoonaihq/raccoonai-python#with_streaming_response
|
|
51
51
|
"""
|
|
52
52
|
return LamResourceWithStreamingResponse(self)
|
|
53
53
|
|
|
@@ -615,7 +615,7 @@ class AsyncLamResource(AsyncAPIResource):
|
|
|
615
615
|
This property can be used as a prefix for any HTTP method call to return
|
|
616
616
|
the raw response object instead of the parsed content.
|
|
617
617
|
|
|
618
|
-
For more information, see https://www.github.com/
|
|
618
|
+
For more information, see https://www.github.com/raccoonaihq/raccoonai-python#accessing-raw-response-data-eg-headers
|
|
619
619
|
"""
|
|
620
620
|
return AsyncLamResourceWithRawResponse(self)
|
|
621
621
|
|
|
@@ -624,7 +624,7 @@ class AsyncLamResource(AsyncAPIResource):
|
|
|
624
624
|
"""
|
|
625
625
|
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
626
626
|
|
|
627
|
-
For more information, see https://www.github.com/
|
|
627
|
+
For more information, see https://www.github.com/raccoonaihq/raccoonai-python#with_streaming_response
|
|
628
628
|
"""
|
|
629
629
|
return AsyncLamResourceWithStreamingResponse(self)
|
|
630
630
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: raccoonai
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.0a6
|
|
4
4
|
Summary: The official Python library for the raccoonAI API
|
|
5
|
-
Project-URL: Homepage, https://github.com/
|
|
6
|
-
Project-URL: Repository, https://github.com/
|
|
5
|
+
Project-URL: Homepage, https://github.com/raccoonaihq/raccoonai-python
|
|
6
|
+
Project-URL: Repository, https://github.com/raccoonaihq/raccoonai-python
|
|
7
7
|
Author-email: Raccoon AI <team@flyingraccoon.tech>
|
|
8
8
|
License-Expression: Apache-2.0
|
|
9
9
|
License-File: LICENSE
|
|
@@ -42,7 +42,7 @@ It is generated with [Stainless](https://www.stainlessapi.com/).
|
|
|
42
42
|
|
|
43
43
|
## Documentation
|
|
44
44
|
|
|
45
|
-
The REST API documentation can be found on [docs.flyingraccoon.tech](https://docs.flyingraccoon.tech). The full API of this library can be found in [api.md](https://github.com/
|
|
45
|
+
The REST API documentation can be found on [docs.flyingraccoon.tech](https://docs.flyingraccoon.tech). The full API of this library can be found in [api.md](https://github.com/raccoonaihq/raccoonai-python/tree/main/api.md).
|
|
46
46
|
|
|
47
47
|
## Installation
|
|
48
48
|
|
|
@@ -53,7 +53,7 @@ pip install --pre raccoonai
|
|
|
53
53
|
|
|
54
54
|
## Usage
|
|
55
55
|
|
|
56
|
-
The full API of this library can be found in [api.md](https://github.com/
|
|
56
|
+
The full API of this library can be found in [api.md](https://github.com/raccoonaihq/raccoonai-python/tree/main/api.md).
|
|
57
57
|
|
|
58
58
|
```python
|
|
59
59
|
import os
|
|
@@ -195,7 +195,7 @@ Error codes are as follows:
|
|
|
195
195
|
|
|
196
196
|
### Retries
|
|
197
197
|
|
|
198
|
-
Certain errors are automatically retried
|
|
198
|
+
Certain errors are automatically retried 0 times by default, with a short exponential backoff.
|
|
199
199
|
Connection errors (for example, due to a network connectivity problem), 408 Request Timeout, 409 Conflict,
|
|
200
200
|
429 Rate Limit, and >=500 Internal errors are all retried by default.
|
|
201
201
|
|
|
@@ -219,7 +219,7 @@ client.with_options(max_retries=5).lam.run(
|
|
|
219
219
|
|
|
220
220
|
### Timeouts
|
|
221
221
|
|
|
222
|
-
By default requests time out after
|
|
222
|
+
By default requests time out after 10 minutes. You can configure this with a `timeout` option,
|
|
223
223
|
which accepts a float or an [`httpx.Timeout`](https://www.python-httpx.org/advanced/#fine-tuning-the-configuration) object:
|
|
224
224
|
|
|
225
225
|
```python
|
|
@@ -227,7 +227,7 @@ from raccoonai import RaccoonAI
|
|
|
227
227
|
|
|
228
228
|
# Configure the default for all requests:
|
|
229
229
|
client = RaccoonAI(
|
|
230
|
-
# 20 seconds (default is
|
|
230
|
+
# 20 seconds (default is 10 minutes)
|
|
231
231
|
timeout=20.0,
|
|
232
232
|
)
|
|
233
233
|
|
|
@@ -245,7 +245,7 @@ client.with_options(timeout=5.0).lam.run(
|
|
|
245
245
|
|
|
246
246
|
On timeout, an `APITimeoutError` is thrown.
|
|
247
247
|
|
|
248
|
-
Note that requests that time out are [retried twice by default](https://github.com/
|
|
248
|
+
Note that requests that time out are [retried twice by default](https://github.com/raccoonaihq/raccoonai-python/tree/main/#retries).
|
|
249
249
|
|
|
250
250
|
## Advanced
|
|
251
251
|
|
|
@@ -291,9 +291,9 @@ lam = response.parse() # get the object that `lam.run()` would have returned
|
|
|
291
291
|
print(lam.livestream_url)
|
|
292
292
|
```
|
|
293
293
|
|
|
294
|
-
These methods return an [`APIResponse`](https://github.com/
|
|
294
|
+
These methods return an [`APIResponse`](https://github.com/raccoonaihq/raccoonai-python/tree/main/src/raccoonai/_response.py) object.
|
|
295
295
|
|
|
296
|
-
The async client returns an [`AsyncAPIResponse`](https://github.com/
|
|
296
|
+
The async client returns an [`AsyncAPIResponse`](https://github.com/raccoonaihq/raccoonai-python/tree/main/src/raccoonai/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
|
|
297
297
|
|
|
298
298
|
#### `.with_streaming_response`
|
|
299
299
|
|
|
@@ -400,7 +400,7 @@ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) con
|
|
|
400
400
|
|
|
401
401
|
We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.
|
|
402
402
|
|
|
403
|
-
We are keen for your feedback; please open an [issue](https://www.github.com/
|
|
403
|
+
We are keen for your feedback; please open an [issue](https://www.github.com/raccoonaihq/raccoonai-python/issues) with questions, bugs, or suggestions.
|
|
404
404
|
|
|
405
405
|
### Determining the installed version
|
|
406
406
|
|
|
@@ -419,4 +419,4 @@ Python 3.8 or higher.
|
|
|
419
419
|
|
|
420
420
|
## Contributing
|
|
421
421
|
|
|
422
|
-
See [the contributing documentation](https://github.com/
|
|
422
|
+
See [the contributing documentation](https://github.com/raccoonaihq/raccoonai-python/tree/main/./CONTRIBUTING.md).
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
raccoonai/__init__.py,sha256=ut5jCAExi9IzT9pzrjpsJoVhn6bzWI6jIXNXB-fXBY4,2523
|
|
2
|
-
raccoonai/_base_client.py,sha256=
|
|
2
|
+
raccoonai/_base_client.py,sha256=HDA399HQtReESPbDTRyKWwxMgqGrR1PHojrKm1-TYTI,68563
|
|
3
3
|
raccoonai/_client.py,sha256=WBaHMcDUAb0PfzgvSOmIlaYwP7VrdbY0nXm_SLft3PQ,18397
|
|
4
4
|
raccoonai/_compat.py,sha256=VWemUKbj6DDkQ-O4baSpHVLJafotzeXmCQGJugfVTIw,6580
|
|
5
|
-
raccoonai/_constants.py,sha256=
|
|
5
|
+
raccoonai/_constants.py,sha256=FkmVVcfVS3gR69v_fTrqA_qjakyxJHOWJcw3jpEck8Y,465
|
|
6
6
|
raccoonai/_exceptions.py,sha256=Y-DcD2M8xkSw8IEkk4KHj73O8GQxCtWm4HWYQ02j7z8,3226
|
|
7
7
|
raccoonai/_files.py,sha256=mf4dOgL4b0ryyZlbqLhggD3GVgDf6XxdGFAgce01ugE,3549
|
|
8
8
|
raccoonai/_models.py,sha256=PDLSNsn3Umxm3UMZPgyBiyN308rRzzPX6F9NO9FU2vs,28943
|
|
@@ -11,7 +11,7 @@ raccoonai/_resource.py,sha256=zfxyYCvzutc1dvCP-j9UPc1sn9U8F-X9gGyqleOvCxY,1118
|
|
|
11
11
|
raccoonai/_response.py,sha256=q3bfYfS84vvIRPz_wL8djh6ir9UHGDzzF2l3gKDOWX8,28807
|
|
12
12
|
raccoonai/_streaming.py,sha256=zHnkREZO5v33YJ7P0YZ7KhJET4ZzevGw1JzRY2-Mls4,10112
|
|
13
13
|
raccoonai/_types.py,sha256=sN2zE-vBl9KBlBKL8fkN2DNZnItdjDl-3fTpP9cg69w,6146
|
|
14
|
-
raccoonai/_version.py,sha256=
|
|
14
|
+
raccoonai/_version.py,sha256=bJgkE0Tv3jA8Oif1Wjlcjq4OCxnkKYwrytcHWBJTZLQ,169
|
|
15
15
|
raccoonai/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
16
|
raccoonai/_utils/__init__.py,sha256=PNZ_QJuzZEgyYXqkO1HVhGkj5IU9bglVUcw7H-Knjzw,2062
|
|
17
17
|
raccoonai/_utils/_logs.py,sha256=Af3FKkE-LAPzYTl8bnFD4yPvPBIO-QyCra-r9_dSmOM,784
|
|
@@ -24,8 +24,8 @@ raccoonai/_utils/_typing.py,sha256=nTJz0jcrQbEgxwy4TtAkNxuU0QHHlmc6mQtA6vIR8tg,4
|
|
|
24
24
|
raccoonai/_utils/_utils.py,sha256=8UmbPOy_AAr2uUjjFui-VZSrVBHRj6bfNEKRp5YZP2A,12004
|
|
25
25
|
raccoonai/lib/.keep,sha256=wuNrz-5SXo3jJaJOJgz4vFHM41YH_g20F5cRQo0vLes,224
|
|
26
26
|
raccoonai/resources/__init__.py,sha256=kSwRlkcSl9bYen9uCJOA5g0Fn0Z0TmVl_5oxvGjoTwU,950
|
|
27
|
-
raccoonai/resources/fleet.py,sha256=
|
|
28
|
-
raccoonai/resources/lam.py,sha256=
|
|
27
|
+
raccoonai/resources/fleet.py,sha256=sdzRZLxOfO2lWIlVXBFyJX3z_2-7nbj2YxA4Fv2RWTM,18563
|
|
28
|
+
raccoonai/resources/lam.py,sha256=VqroE1kmpDsuDmZ0n9gPR1BxoCKWlefxrOcMRebwwew,50772
|
|
29
29
|
raccoonai/types/__init__.py,sha256=WJT-J_FVRZNpVlalIHmWsb_VLFJHPSxhm9u_wKUipKM,962
|
|
30
30
|
raccoonai/types/fleet_create_params.py,sha256=iNUUKzQxgkrSjsxBLSpkuIiW1kTLOPyNIe5sANPwOB4,2091
|
|
31
31
|
raccoonai/types/fleet_create_response.py,sha256=Z-a9Hj89f6bwGv0r5juOlvCp1zF29a0cyZpLC1m-VT4,545
|
|
@@ -38,7 +38,7 @@ raccoonai/types/lam_integration_run_params.py,sha256=fuXnByzGxq2ZurCp6P4ZpkpuS0I
|
|
|
38
38
|
raccoonai/types/lam_integration_run_response.py,sha256=OpCNhoZc4puHY59lwmlmd_Wa5cRmlR_o0BFHV-tECoA,1456
|
|
39
39
|
raccoonai/types/lam_run_params.py,sha256=FY9Y9RYQloTNM9FU3QMPdl1Szr6-yMB4ddJVKfKq1hA,1800
|
|
40
40
|
raccoonai/types/lam_run_response.py,sha256=TlUs1l9dDeDSxn30dbfAklTxQV3O5ZcwlSS2cB7GESw,606
|
|
41
|
-
raccoonai-0.1.
|
|
42
|
-
raccoonai-0.1.
|
|
43
|
-
raccoonai-0.1.
|
|
44
|
-
raccoonai-0.1.
|
|
41
|
+
raccoonai-0.1.0a6.dist-info/METADATA,sha256=8qq0R6eJW6zQLF8W51hPC7HcJLzkWrzUA_Xgy40W-9g,14318
|
|
42
|
+
raccoonai-0.1.0a6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
43
|
+
raccoonai-0.1.0a6.dist-info/licenses/LICENSE,sha256=enGvZ2fGU7wGgMPWkgyWhnsFhCpxwdeG_selO_ovoTM,11340
|
|
44
|
+
raccoonai-0.1.0a6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|