raccoonai 0.1.0a6__py3-none-any.whl → 0.1.0a7__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 +7 -1
- raccoonai/_client.py +2 -2
- raccoonai/_version.py +1 -1
- raccoonai/resources/fleet.py +3 -12
- raccoonai/resources/lam.py +73 -422
- raccoonai/types/__init__.py +0 -2
- raccoonai/types/fleet_create_params.py +26 -12
- raccoonai/types/fleet_create_response.py +3 -5
- raccoonai/types/fleet_status_response.py +3 -5
- raccoonai/types/fleet_terminate_response.py +3 -5
- raccoonai/types/lam_integration_run_params.py +24 -3
- raccoonai/types/lam_integration_run_response.py +3 -3
- raccoonai/types/lam_run_params.py +36 -3
- raccoonai/types/lam_run_response.py +9 -1
- {raccoonai-0.1.0a6.dist-info → raccoonai-0.1.0a7.dist-info}/METADATA +16 -16
- {raccoonai-0.1.0a6.dist-info → raccoonai-0.1.0a7.dist-info}/RECORD +18 -20
- raccoonai/types/lam_extract_params.py +0 -68
- raccoonai/types/lam_extract_response.py +0 -31
- {raccoonai-0.1.0a6.dist-info → raccoonai-0.1.0a7.dist-info}/WHEEL +0 -0
- {raccoonai-0.1.0a6.dist-info → raccoonai-0.1.0a7.dist-info}/licenses/LICENSE +0 -0
raccoonai/_base_client.py
CHANGED
|
@@ -63,7 +63,7 @@ from ._types import (
|
|
|
63
63
|
ModelBuilderProtocol,
|
|
64
64
|
)
|
|
65
65
|
from ._utils import is_dict, is_list, asyncify, is_given, lru_cache, is_mapping
|
|
66
|
-
from ._compat import model_copy, model_dump
|
|
66
|
+
from ._compat import PYDANTIC_V2, model_copy, model_dump
|
|
67
67
|
from ._models import GenericModel, FinalRequestOptions, validate_type, construct_type
|
|
68
68
|
from ._response import (
|
|
69
69
|
APIResponse,
|
|
@@ -207,6 +207,9 @@ class BaseSyncPage(BasePage[_T], Generic[_T]):
|
|
|
207
207
|
model: Type[_T],
|
|
208
208
|
options: FinalRequestOptions,
|
|
209
209
|
) -> None:
|
|
210
|
+
if PYDANTIC_V2 and getattr(self, "__pydantic_private__", None) is None:
|
|
211
|
+
self.__pydantic_private__ = {}
|
|
212
|
+
|
|
210
213
|
self._model = model
|
|
211
214
|
self._client = client
|
|
212
215
|
self._options = options
|
|
@@ -292,6 +295,9 @@ class BaseAsyncPage(BasePage[_T], Generic[_T]):
|
|
|
292
295
|
client: AsyncAPIClient,
|
|
293
296
|
options: FinalRequestOptions,
|
|
294
297
|
) -> None:
|
|
298
|
+
if PYDANTIC_V2 and getattr(self, "__pydantic_private__", None) is None:
|
|
299
|
+
self.__pydantic_private__ = {}
|
|
300
|
+
|
|
295
301
|
self._model = model
|
|
296
302
|
self._client = client
|
|
297
303
|
self._options = options
|
raccoonai/_client.py
CHANGED
|
@@ -87,7 +87,7 @@ class RaccoonAI(SyncAPIClient):
|
|
|
87
87
|
# part of our public interface in the future.
|
|
88
88
|
_strict_response_validation: bool = False,
|
|
89
89
|
) -> None:
|
|
90
|
-
"""Construct a new synchronous
|
|
90
|
+
"""Construct a new synchronous RaccoonAI client instance.
|
|
91
91
|
|
|
92
92
|
This automatically infers the `secret_key` argument from the `RACCOON_SECRET_KEY` environment variable if it is not provided.
|
|
93
93
|
"""
|
|
@@ -283,7 +283,7 @@ class AsyncRaccoonAI(AsyncAPIClient):
|
|
|
283
283
|
# part of our public interface in the future.
|
|
284
284
|
_strict_response_validation: bool = False,
|
|
285
285
|
) -> None:
|
|
286
|
-
"""Construct a new async
|
|
286
|
+
"""Construct a new async AsyncRaccoonAI client instance.
|
|
287
287
|
|
|
288
288
|
This automatically infers the `secret_key` argument from the `RACCOON_SECRET_KEY` environment variable if it is not provided.
|
|
289
289
|
"""
|
raccoonai/_version.py
CHANGED
raccoonai/resources/fleet.py
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
5
|
from typing import Optional
|
|
6
|
+
from typing_extensions import Literal
|
|
6
7
|
|
|
7
8
|
import httpx
|
|
8
9
|
|
|
@@ -53,8 +54,7 @@ class FleetResource(SyncAPIResource):
|
|
|
53
54
|
self,
|
|
54
55
|
*,
|
|
55
56
|
advanced: Optional[fleet_create_params.Advanced] | NotGiven = NOT_GIVEN,
|
|
56
|
-
|
|
57
|
-
browser_type: Optional[str] | NotGiven = NOT_GIVEN,
|
|
57
|
+
browser_type: Optional[Literal["chromium", "firefox", "webkit"]] | NotGiven = NOT_GIVEN,
|
|
58
58
|
headless: Optional[bool] | NotGiven = NOT_GIVEN,
|
|
59
59
|
raccoon_passcode: Optional[str] | NotGiven = NOT_GIVEN,
|
|
60
60
|
session_timeout: Optional[int] | NotGiven = NOT_GIVEN,
|
|
@@ -74,9 +74,6 @@ class FleetResource(SyncAPIResource):
|
|
|
74
74
|
advanced: Advanced configuration options for the session, such as ad-blocking and CAPTCHA
|
|
75
75
|
solving.
|
|
76
76
|
|
|
77
|
-
app_name: The name of the app for which the session is going to run for, used for
|
|
78
|
-
streamlining authentication.
|
|
79
|
-
|
|
80
77
|
browser_type: The type of browser to use. Supported values include 'chromium', 'firefox', and
|
|
81
78
|
'webkit'.
|
|
82
79
|
|
|
@@ -105,7 +102,6 @@ class FleetResource(SyncAPIResource):
|
|
|
105
102
|
body=maybe_transform(
|
|
106
103
|
{
|
|
107
104
|
"advanced": advanced,
|
|
108
|
-
"app_name": app_name,
|
|
109
105
|
"browser_type": browser_type,
|
|
110
106
|
"headless": headless,
|
|
111
107
|
"raccoon_passcode": raccoon_passcode,
|
|
@@ -245,8 +241,7 @@ class AsyncFleetResource(AsyncAPIResource):
|
|
|
245
241
|
self,
|
|
246
242
|
*,
|
|
247
243
|
advanced: Optional[fleet_create_params.Advanced] | NotGiven = NOT_GIVEN,
|
|
248
|
-
|
|
249
|
-
browser_type: Optional[str] | NotGiven = NOT_GIVEN,
|
|
244
|
+
browser_type: Optional[Literal["chromium", "firefox", "webkit"]] | NotGiven = NOT_GIVEN,
|
|
250
245
|
headless: Optional[bool] | NotGiven = NOT_GIVEN,
|
|
251
246
|
raccoon_passcode: Optional[str] | NotGiven = NOT_GIVEN,
|
|
252
247
|
session_timeout: Optional[int] | NotGiven = NOT_GIVEN,
|
|
@@ -266,9 +261,6 @@ class AsyncFleetResource(AsyncAPIResource):
|
|
|
266
261
|
advanced: Advanced configuration options for the session, such as ad-blocking and CAPTCHA
|
|
267
262
|
solving.
|
|
268
263
|
|
|
269
|
-
app_name: The name of the app for which the session is going to run for, used for
|
|
270
|
-
streamlining authentication.
|
|
271
|
-
|
|
272
264
|
browser_type: The type of browser to use. Supported values include 'chromium', 'firefox', and
|
|
273
265
|
'webkit'.
|
|
274
266
|
|
|
@@ -297,7 +289,6 @@ class AsyncFleetResource(AsyncAPIResource):
|
|
|
297
289
|
body=await async_maybe_transform(
|
|
298
290
|
{
|
|
299
291
|
"advanced": advanced,
|
|
300
|
-
"app_name": app_name,
|
|
301
292
|
"browser_type": browser_type,
|
|
302
293
|
"headless": headless,
|
|
303
294
|
"raccoon_passcode": raccoon_passcode,
|