qurl-python 0.2.1__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.
- layerv_qurl/__init__.py +161 -0
- layerv_qurl/_utils.py +1414 -0
- layerv_qurl/async_client.py +1512 -0
- layerv_qurl/client.py +1533 -0
- layerv_qurl/errors.py +152 -0
- layerv_qurl/langchain.py +159 -0
- layerv_qurl/py.typed +0 -0
- layerv_qurl/types.py +690 -0
- qurl_python-0.2.1.dist-info/METADATA +282 -0
- qurl_python-0.2.1.dist-info/RECORD +12 -0
- qurl_python-0.2.1.dist-info/WHEEL +4 -0
- qurl_python-0.2.1.dist-info/licenses/LICENSE +21 -0
layerv_qurl/__init__.py
ADDED
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
"""qURL Python SDK — secure, time-limited access links for AI agents."""
|
|
2
|
+
|
|
3
|
+
from importlib.metadata import PackageNotFoundError
|
|
4
|
+
from importlib.metadata import version as _pkg_version
|
|
5
|
+
|
|
6
|
+
from layerv_qurl.async_client import AsyncQURLClient
|
|
7
|
+
from layerv_qurl.client import QURLClient
|
|
8
|
+
from layerv_qurl.errors import (
|
|
9
|
+
AuthenticationError,
|
|
10
|
+
AuthorizationError,
|
|
11
|
+
ConflictError,
|
|
12
|
+
GoneError,
|
|
13
|
+
NotFoundError,
|
|
14
|
+
QURLError,
|
|
15
|
+
QURLNetworkError,
|
|
16
|
+
QURLTimeoutError,
|
|
17
|
+
RateLimitError,
|
|
18
|
+
ServerError,
|
|
19
|
+
ValidationError,
|
|
20
|
+
)
|
|
21
|
+
from layerv_qurl.types import (
|
|
22
|
+
QURL,
|
|
23
|
+
AccessCode,
|
|
24
|
+
AccessCodeListOutput,
|
|
25
|
+
AccessGrant,
|
|
26
|
+
AccessPolicy,
|
|
27
|
+
AccessToken,
|
|
28
|
+
AgentBootstrapOutput,
|
|
29
|
+
AIAgentPolicy,
|
|
30
|
+
APIKey,
|
|
31
|
+
APIKeyListOutput,
|
|
32
|
+
BatchCreateItem,
|
|
33
|
+
BatchCreateOutput,
|
|
34
|
+
BatchItemError,
|
|
35
|
+
BatchItemResult,
|
|
36
|
+
CheckDetail,
|
|
37
|
+
CheckoutSession,
|
|
38
|
+
ConnectorInstallation,
|
|
39
|
+
ConnectorInstallationCapabilities,
|
|
40
|
+
ConnectorInstallationListOutput,
|
|
41
|
+
ConnectorInstallationStats,
|
|
42
|
+
CreateOutput,
|
|
43
|
+
CurrentPeriodUsage,
|
|
44
|
+
Customer,
|
|
45
|
+
DailyUsage,
|
|
46
|
+
DNSRecord,
|
|
47
|
+
Domain,
|
|
48
|
+
DomainListOutput,
|
|
49
|
+
DomainVerifyOutput,
|
|
50
|
+
Invoice,
|
|
51
|
+
InvoiceListOutput,
|
|
52
|
+
ListOutput,
|
|
53
|
+
MintOutput,
|
|
54
|
+
NHPServerPeerInfo,
|
|
55
|
+
PortalSession,
|
|
56
|
+
Quota,
|
|
57
|
+
QuotaPlan,
|
|
58
|
+
QURLStatus,
|
|
59
|
+
RateLimits,
|
|
60
|
+
RedeemAccessCodeOutput,
|
|
61
|
+
ResolveOutput,
|
|
62
|
+
Resource,
|
|
63
|
+
ResourceDetail,
|
|
64
|
+
ResourceListOutput,
|
|
65
|
+
ResourceType,
|
|
66
|
+
Session,
|
|
67
|
+
SessionListOutput,
|
|
68
|
+
SessionTerminateOutput,
|
|
69
|
+
TokenStatus,
|
|
70
|
+
Usage,
|
|
71
|
+
UsageCostEstimate,
|
|
72
|
+
UsageDailyEntry,
|
|
73
|
+
Webhook,
|
|
74
|
+
WebhookDelivery,
|
|
75
|
+
WebhookDeliveryListOutput,
|
|
76
|
+
WebhookEventType,
|
|
77
|
+
WebhookEventTypeInfo,
|
|
78
|
+
WebhookEventTypesOutput,
|
|
79
|
+
WebhookListOutput,
|
|
80
|
+
)
|
|
81
|
+
|
|
82
|
+
__all__ = [
|
|
83
|
+
"AsyncQURLClient",
|
|
84
|
+
"QURLClient",
|
|
85
|
+
# Errors
|
|
86
|
+
"AuthenticationError",
|
|
87
|
+
"AuthorizationError",
|
|
88
|
+
"ConflictError",
|
|
89
|
+
"GoneError",
|
|
90
|
+
"NotFoundError",
|
|
91
|
+
"QURLError",
|
|
92
|
+
"QURLNetworkError",
|
|
93
|
+
"QURLTimeoutError",
|
|
94
|
+
"RateLimitError",
|
|
95
|
+
"ServerError",
|
|
96
|
+
"ValidationError",
|
|
97
|
+
# Types
|
|
98
|
+
"AccessCode",
|
|
99
|
+
"AccessCodeListOutput",
|
|
100
|
+
"AIAgentPolicy",
|
|
101
|
+
"AgentBootstrapOutput",
|
|
102
|
+
"APIKey",
|
|
103
|
+
"APIKeyListOutput",
|
|
104
|
+
"BatchCreateItem",
|
|
105
|
+
"BatchCreateOutput",
|
|
106
|
+
"BatchItemError",
|
|
107
|
+
"BatchItemResult",
|
|
108
|
+
"CheckoutSession",
|
|
109
|
+
"CheckDetail",
|
|
110
|
+
"ConnectorInstallation",
|
|
111
|
+
"ConnectorInstallationCapabilities",
|
|
112
|
+
"ConnectorInstallationListOutput",
|
|
113
|
+
"ConnectorInstallationStats",
|
|
114
|
+
"CurrentPeriodUsage",
|
|
115
|
+
"Customer",
|
|
116
|
+
"DailyUsage",
|
|
117
|
+
"DNSRecord",
|
|
118
|
+
"Domain",
|
|
119
|
+
"DomainListOutput",
|
|
120
|
+
"DomainVerifyOutput",
|
|
121
|
+
"Invoice",
|
|
122
|
+
"InvoiceListOutput",
|
|
123
|
+
"NHPServerPeerInfo",
|
|
124
|
+
"PortalSession",
|
|
125
|
+
"QuotaPlan",
|
|
126
|
+
"QURLStatus",
|
|
127
|
+
"RedeemAccessCodeOutput",
|
|
128
|
+
"Resource",
|
|
129
|
+
"ResourceDetail",
|
|
130
|
+
"ResourceListOutput",
|
|
131
|
+
"ResourceType",
|
|
132
|
+
"Session",
|
|
133
|
+
"SessionListOutput",
|
|
134
|
+
"SessionTerminateOutput",
|
|
135
|
+
"TokenStatus",
|
|
136
|
+
"UsageCostEstimate",
|
|
137
|
+
"UsageDailyEntry",
|
|
138
|
+
"Webhook",
|
|
139
|
+
"WebhookDelivery",
|
|
140
|
+
"WebhookDeliveryListOutput",
|
|
141
|
+
"WebhookEventType",
|
|
142
|
+
"WebhookEventTypeInfo",
|
|
143
|
+
"WebhookEventTypesOutput",
|
|
144
|
+
"WebhookListOutput",
|
|
145
|
+
"AccessGrant",
|
|
146
|
+
"AccessPolicy",
|
|
147
|
+
"AccessToken",
|
|
148
|
+
"CreateOutput",
|
|
149
|
+
"ListOutput",
|
|
150
|
+
"MintOutput",
|
|
151
|
+
"QURL",
|
|
152
|
+
"Quota",
|
|
153
|
+
"RateLimits",
|
|
154
|
+
"ResolveOutput",
|
|
155
|
+
"Usage",
|
|
156
|
+
]
|
|
157
|
+
|
|
158
|
+
try:
|
|
159
|
+
__version__ = _pkg_version("qurl-python")
|
|
160
|
+
except PackageNotFoundError:
|
|
161
|
+
__version__ = "dev"
|