eazy-sdk-core 0.2.0a8__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.
- eazy_sdk/__init__.py +99 -0
- eazy_sdk/api.py +1469 -0
- eazy_sdk/auth/__init__.py +51 -0
- eazy_sdk/auth/cookies.py +94 -0
- eazy_sdk/auth/core.py +402 -0
- eazy_sdk/auth/lifecycle.py +34 -0
- eazy_sdk/auth/session.py +445 -0
- eazy_sdk/auth/session_runtime.py +659 -0
- eazy_sdk/clients/__init__.py +45 -0
- eazy_sdk/clients/_decisions.py +401 -0
- eazy_sdk/clients/_shared.py +158 -0
- eazy_sdk/clients/async_client.py +104 -0
- eazy_sdk/clients/attempts.py +258 -0
- eazy_sdk/clients/base.py +27 -0
- eazy_sdk/clients/config.py +184 -0
- eazy_sdk/clients/executor.py +2624 -0
- eazy_sdk/clients/sync_client.py +104 -0
- eazy_sdk/clients/zapros_client.py +378 -0
- eazy_sdk/codecs/__init__.py +21 -0
- eazy_sdk/codecs/core.py +88 -0
- eazy_sdk/codegen/__init__.py +160 -0
- eazy_sdk/compile/__init__.py +26 -0
- eazy_sdk/compile/http_compiler.py +1276 -0
- eazy_sdk/compile/http_operation.py +105 -0
- eazy_sdk/compile/input.py +541 -0
- eazy_sdk/core/__init__.py +137 -0
- eazy_sdk/core/errors.py +100 -0
- eazy_sdk/core/http.py +17 -0
- eazy_sdk/core/http_plan.py +208 -0
- eazy_sdk/core/kernel.py +533 -0
- eazy_sdk/crypto/__init__.py +139 -0
- eazy_sdk/crypto/_compiler.py +404 -0
- eazy_sdk/crypto/_http.py +276 -0
- eazy_sdk/crypto/_inputs.py +59 -0
- eazy_sdk/crypto/core.py +1012 -0
- eazy_sdk/dependencies/__init__.py +444 -0
- eazy_sdk/driver.py +83 -0
- eazy_sdk/exceptions.py +91 -0
- eazy_sdk/ext/__init__.py +59 -0
- eazy_sdk/handlers/__init__.py +70 -0
- eazy_sdk/handlers/curl_cffi.py +229 -0
- eazy_sdk/handlers/httpx.py +171 -0
- eazy_sdk/handlers/profile.py +145 -0
- eazy_sdk/handlers/requests.py +119 -0
- eazy_sdk/handlers/zapros.py +177 -0
- eazy_sdk/identity.py +97 -0
- eazy_sdk/logging.py +14 -0
- eazy_sdk/middleware.py +183 -0
- eazy_sdk/models/__init__.py +29 -0
- eazy_sdk/models/adapters.py +1070 -0
- eazy_sdk/models/documents.py +49 -0
- eazy_sdk/operation.py +214 -0
- eazy_sdk/pagination.py +366 -0
- eazy_sdk/policies.py +100 -0
- eazy_sdk/preparation.py +133 -0
- eazy_sdk/protection/__init__.py +56 -0
- eazy_sdk/protection/advanced.py +1148 -0
- eazy_sdk/protection/guard.py +202 -0
- eazy_sdk/protocols/__init__.py +40 -0
- eazy_sdk/protocols/core.py +98 -0
- eazy_sdk/protocols/jsonrpc.py +216 -0
- eazy_sdk/protocols/operation.py +105 -0
- eazy_sdk/py.typed +0 -0
- eazy_sdk/pydantic_integration/__init__.py +0 -0
- eazy_sdk/pydantic_integration/errors.py +14 -0
- eazy_sdk/pydantic_integration/parsers.py +18 -0
- eazy_sdk/ratelimit_runtime.py +28 -0
- eazy_sdk/redaction.py +80 -0
- eazy_sdk/request/__init__.py +112 -0
- eazy_sdk/request/descriptors.py +156 -0
- eazy_sdk/request/logical.py +67 -0
- eazy_sdk/request/markers.py +37 -0
- eazy_sdk/request/params.py +428 -0
- eazy_sdk/request/pipeline.py +61 -0
- eazy_sdk/request/prepared.py +1117 -0
- eazy_sdk/request/short.py +27 -0
- eazy_sdk/request/signatures.py +776 -0
- eazy_sdk/request/wire.py +236 -0
- eazy_sdk/response/__init__.py +62 -0
- eazy_sdk/response/_mapping.py +471 -0
- eazy_sdk/response/cases.py +965 -0
- eazy_sdk/response/headers.py +148 -0
- eazy_sdk/response/markers.py +255 -0
- eazy_sdk/response/match.py +206 -0
- eazy_sdk/response/normalized.py +82 -0
- eazy_sdk/response/short.py +16 -0
- eazy_sdk/root.py +400 -0
- eazy_sdk/sentinels.py +30 -0
- eazy_sdk/serialization.py +141 -0
- eazy_sdk/testing/__init__.py +152 -0
- eazy_sdk/websocket/__init__.py +186 -0
- eazy_sdk/websocket/_clearance.py +223 -0
- eazy_sdk/websocket/_connection.py +557 -0
- eazy_sdk/websocket/_crypto.py +185 -0
- eazy_sdk/websocket/_decisions.py +260 -0
- eazy_sdk/websocket/_messages.py +126 -0
- eazy_sdk/websocket/_outbound.py +696 -0
- eazy_sdk/websocket/_reconnect.py +213 -0
- eazy_sdk/websocket/_state.py +635 -0
- eazy_sdk/websocket/api.py +364 -0
- eazy_sdk/websocket/auth.py +94 -0
- eazy_sdk/websocket/codecs.py +51 -0
- eazy_sdk/websocket/composition.py +39 -0
- eazy_sdk/websocket/errors.py +106 -0
- eazy_sdk/websocket/frames.py +71 -0
- eazy_sdk/websocket/graphql.py +174 -0
- eazy_sdk/websocket/middleware.py +192 -0
- eazy_sdk/websocket/operation.py +212 -0
- eazy_sdk/websocket/policies.py +116 -0
- eazy_sdk/websocket/protection.py +352 -0
- eazy_sdk/websocket/protocols.py +236 -0
- eazy_sdk/websocket/runtime.py +140 -0
- eazy_sdk/websocket/schemas.py +146 -0
- eazy_sdk/websocket/subscriptions.py +229 -0
- eazy_sdk_accounts/__init__.py +88 -0
- eazy_sdk_accounts/http.py +36 -0
- eazy_sdk_accounts/py.typed +0 -0
- eazy_sdk_accounts/registration.py +1021 -0
- eazy_sdk_accounts/storage/__init__.py +123 -0
- eazy_sdk_accounts/storage/entities.py +304 -0
- eazy_sdk_accounts/storage/exceptions.py +61 -0
- eazy_sdk_accounts/storage/memory.py +305 -0
- eazy_sdk_accounts/storage/observers.py +73 -0
- eazy_sdk_accounts/storage/repository.py +75 -0
- eazy_sdk_accounts/storage/services/__init__.py +23 -0
- eazy_sdk_accounts/storage/services/accounts.py +105 -0
- eazy_sdk_accounts/storage/services/base.py +44 -0
- eazy_sdk_accounts/storage/services/history.py +67 -0
- eazy_sdk_accounts/storage/services/links.py +64 -0
- eazy_sdk_accounts/storage/services/pool.py +170 -0
- eazy_sdk_accounts/storage/services/restrictions.py +97 -0
- eazy_sdk_accounts/storage/services/sessions.py +66 -0
- eazy_sdk_accounts/storage/services/verifications.py +79 -0
- eazy_sdk_accounts/storage/services/workspace.py +54 -0
- eazy_sdk_accounts/storage/session_bridge.py +43 -0
- eazy_sdk_accounts/storage/storage.py +129 -0
- eazy_sdk_adaptix/__init__.py +119 -0
- eazy_sdk_adaptix/py.typed +0 -0
- eazy_sdk_asyncapi/__init__.py +23 -0
- eazy_sdk_asyncapi/cli.py +52 -0
- eazy_sdk_asyncapi/generator.py +470 -0
- eazy_sdk_asyncapi/ir.py +664 -0
- eazy_sdk_asyncapi/py.typed +0 -0
- eazy_sdk_browser/__init__.py +231 -0
- eazy_sdk_browser/api.py +223 -0
- eazy_sdk_browser/client.py +258 -0
- eazy_sdk_browser/conditions.py +272 -0
- eazy_sdk_browser/content.py +143 -0
- eazy_sdk_browser/driver.py +105 -0
- eazy_sdk_browser/errors.py +29 -0
- eazy_sdk_browser/failures.py +103 -0
- eazy_sdk_browser/fetch.py +118 -0
- eazy_sdk_browser/handlers/__init__.py +13 -0
- eazy_sdk_browser/handlers/_page_fetch.py +78 -0
- eazy_sdk_browser/handlers/_response_buffer.py +60 -0
- eazy_sdk_browser/handlers/capture.py +35 -0
- eazy_sdk_browser/handlers/playwright.py +478 -0
- eazy_sdk_browser/handlers/pydoll.py +675 -0
- eazy_sdk_browser/integrations/__init__.py +1 -0
- eazy_sdk_browser/integrations/accounts.py +273 -0
- eazy_sdk_browser/integrations/eazy_sdk.py +73 -0
- eazy_sdk_browser/integrations/handler.py +198 -0
- eazy_sdk_browser/interceptors.py +73 -0
- eazy_sdk_browser/locators.py +443 -0
- eazy_sdk_browser/login.py +265 -0
- eazy_sdk_browser/navigation.py +135 -0
- eazy_sdk_browser/network.py +255 -0
- eazy_sdk_browser/operations.py +424 -0
- eazy_sdk_browser/outcomes.py +246 -0
- eazy_sdk_browser/profile.py +87 -0
- eazy_sdk_browser/py.typed +0 -0
- eazy_sdk_browser/rich_text.py +93 -0
- eazy_sdk_browser/session.py +242 -0
- eazy_sdk_browser/spec.py +149 -0
- eazy_sdk_browser/state.py +124 -0
- eazy_sdk_browser/testing.py +414 -0
- eazy_sdk_core-0.2.0a8.dist-info/METADATA +244 -0
- eazy_sdk_core-0.2.0a8.dist-info/RECORD +216 -0
- eazy_sdk_core-0.2.0a8.dist-info/WHEEL +4 -0
- eazy_sdk_core-0.2.0a8.dist-info/entry_points.txt +4 -0
- eazy_sdk_core-0.2.0a8.dist-info/licenses/LICENSE +21 -0
- eazy_sdk_html/__init__.py +33 -0
- eazy_sdk_html/exceptions.py +20 -0
- eazy_sdk_html/extract_plan.py +136 -0
- eazy_sdk_html/forms.py +30 -0
- eazy_sdk_html/html_inspector.py +180 -0
- eazy_sdk_html/html_scanner.py +86 -0
- eazy_sdk_html/py.typed +0 -0
- eazy_sdk_html/schema.py +346 -0
- eazy_sdk_html/urls.py +39 -0
- eazy_sdk_html/visible_text.py +103 -0
- eazy_sdk_openapi/__init__.py +41 -0
- eazy_sdk_openapi/cli.py +70 -0
- eazy_sdk_openapi/compatibility.py +220 -0
- eazy_sdk_openapi/generator.py +1600 -0
- eazy_sdk_openapi/ir.py +1905 -0
- eazy_sdk_openapi/py.typed +1 -0
- eazy_sdk_presets/__init__.py +36 -0
- eazy_sdk_presets/cloudflare.py +296 -0
- eazy_sdk_presets/core.py +218 -0
- eazy_sdk_presets/py.typed +1 -0
- eazy_sdk_presets/recaptcha.py +331 -0
- eazy_sdk_sqlmodel/__init__.py +76 -0
- eazy_sdk_sqlmodel/adapter.py +343 -0
- eazy_sdk_sqlmodel/cli.py +77 -0
- eazy_sdk_sqlmodel/codecs.py +114 -0
- eazy_sdk_sqlmodel/factory.py +359 -0
- eazy_sdk_sqlmodel/migration.py +406 -0
- eazy_sdk_sqlmodel/models.py +181 -0
- eazy_sdk_sqlmodel/py.typed +0 -0
- eazy_sdk_sqlmodel/registration.py +648 -0
- eazy_sdk_sqlmodel/schema.py +48 -0
- eazy_sdk_sqlmodel/session_store.py +185 -0
- eazy_sdk_sqlmodel/tables.py +87 -0
- eazy_sdk_xml/__init__.py +162 -0
- eazy_sdk_xml/py.typed +1 -0
eazy_sdk/__init__.py
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"""Eazy SDK: declare an API, compose it into an SDK, hand it a client.
|
|
2
|
+
|
|
3
|
+
What lives here is what an SDK author needs in the first hour: the declaration surface, the
|
|
4
|
+
composition surface, the request markers and the response contract. Everything else stays
|
|
5
|
+
importable from the module that owns it — ``eazy_sdk.models``, ``eazy_sdk.codecs``,
|
|
6
|
+
``eazy_sdk.crypto``, ``eazy_sdk.protection.advanced``, ``eazy_sdk.core.errors`` — because a
|
|
7
|
+
second name in the root is duplication, not convenience.
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
from __future__ import annotations
|
|
11
|
+
|
|
12
|
+
from typing import TYPE_CHECKING, Any
|
|
13
|
+
|
|
14
|
+
from eazy_sdk.api import AsyncApi, SyncApi, api, api_group, op
|
|
15
|
+
from eazy_sdk.clients import ClientConfig, Hooks, Resilience, RetryPolicy, Security
|
|
16
|
+
from eazy_sdk.dependencies import Inject
|
|
17
|
+
from eazy_sdk.handlers import HandlerProfile, TransportError
|
|
18
|
+
from eazy_sdk.identity import Identity
|
|
19
|
+
from eazy_sdk.operation import Http, HttpOperation
|
|
20
|
+
from eazy_sdk.preparation import PreparedCall, PrepareOptions
|
|
21
|
+
from eazy_sdk.request import (
|
|
22
|
+
Body,
|
|
23
|
+
BodyProjection,
|
|
24
|
+
Cookie,
|
|
25
|
+
FormBody,
|
|
26
|
+
Header,
|
|
27
|
+
JsonBody,
|
|
28
|
+
JsonField,
|
|
29
|
+
Path,
|
|
30
|
+
Query,
|
|
31
|
+
)
|
|
32
|
+
from eazy_sdk.response import (
|
|
33
|
+
Html,
|
|
34
|
+
Json,
|
|
35
|
+
ResponseEnvelope,
|
|
36
|
+
UnexpectedResponseError,
|
|
37
|
+
)
|
|
38
|
+
from eazy_sdk.root import AsyncRoot, Binding, SyncRoot, bind
|
|
39
|
+
from eazy_sdk.sentinels import UNSET, Omittable
|
|
40
|
+
from eazy_sdk.serialization import Serialization
|
|
41
|
+
|
|
42
|
+
__version__ = "0.2.0a8"
|
|
43
|
+
|
|
44
|
+
if TYPE_CHECKING:
|
|
45
|
+
from eazy_sdk.clients import AsyncClient, Client
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
def __getattr__(name: str) -> Any:
|
|
49
|
+
if name not in {"AsyncClient", "Client"}:
|
|
50
|
+
raise AttributeError(name)
|
|
51
|
+
from eazy_sdk.clients import AsyncClient, Client
|
|
52
|
+
|
|
53
|
+
value = AsyncClient if name == "AsyncClient" else Client
|
|
54
|
+
globals()[name] = value
|
|
55
|
+
return value
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
__all__ = [
|
|
59
|
+
"UNSET",
|
|
60
|
+
"AsyncApi",
|
|
61
|
+
"AsyncClient",
|
|
62
|
+
"AsyncRoot",
|
|
63
|
+
"Binding",
|
|
64
|
+
"Body",
|
|
65
|
+
"BodyProjection",
|
|
66
|
+
"Client",
|
|
67
|
+
"ClientConfig",
|
|
68
|
+
"Cookie",
|
|
69
|
+
"FormBody",
|
|
70
|
+
"HandlerProfile",
|
|
71
|
+
"Header",
|
|
72
|
+
"Hooks",
|
|
73
|
+
"Html",
|
|
74
|
+
"Http",
|
|
75
|
+
"HttpOperation",
|
|
76
|
+
"Identity",
|
|
77
|
+
"Inject",
|
|
78
|
+
"Json",
|
|
79
|
+
"JsonBody",
|
|
80
|
+
"JsonField",
|
|
81
|
+
"Omittable",
|
|
82
|
+
"Path",
|
|
83
|
+
"PrepareOptions",
|
|
84
|
+
"PreparedCall",
|
|
85
|
+
"Query",
|
|
86
|
+
"Resilience",
|
|
87
|
+
"ResponseEnvelope",
|
|
88
|
+
"RetryPolicy",
|
|
89
|
+
"Security",
|
|
90
|
+
"Serialization",
|
|
91
|
+
"SyncApi",
|
|
92
|
+
"SyncRoot",
|
|
93
|
+
"TransportError",
|
|
94
|
+
"UnexpectedResponseError",
|
|
95
|
+
"api",
|
|
96
|
+
"api_group",
|
|
97
|
+
"bind",
|
|
98
|
+
"op",
|
|
99
|
+
]
|