gainflow 0.1.0__tar.gz

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.
@@ -0,0 +1,5 @@
1
+ .venv/
2
+ __pycache__/
3
+ .pytest_cache/
4
+ .ruff_cache/
5
+ dist/
@@ -0,0 +1 @@
1
+ 3.12
gainflow-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Gainflow (JJJ Labs)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,93 @@
1
+ Metadata-Version: 2.5
2
+ Name: gainflow
3
+ Version: 0.1.0
4
+ Summary: Official Python SDK (sync & async) for the Gainflow web data API
5
+ Project-URL: Homepage, https://gainflow.ai
6
+ Project-URL: Documentation, https://docs.gainflow.ai
7
+ License: MIT
8
+ License-File: LICENSE
9
+ Keywords: ai-agents,crawl,gainflow,markdown,mcp,monitoring,web-scraping
10
+ Classifier: Development Status :: 4 - Beta
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: License :: OSI Approved :: MIT License
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3.10
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Programming Language :: Python :: 3.13
18
+ Classifier: Typing :: Typed
19
+ Requires-Python: >=3.10
20
+ Requires-Dist: httpx<1.0.0,>=0.27.0
21
+ Description-Content-Type: text/markdown
22
+
23
+ # gainflow
24
+
25
+ Official Python SDK (sync & async) for [Gainflow](https://gainflow.ai) - hard-to-get web data for builders and AI agents.
26
+
27
+ - **Docs:** https://docs.gainflow.ai
28
+ - **Hosted MCP Server:** `https://mcp.gainflow.ai/mcp`
29
+ - **Agent Skill:** `npx skills add https://gainflow.ai`
30
+
31
+ ## Install
32
+
33
+ ```bash
34
+ pip install gainflow
35
+ # or
36
+ uv add gainflow
37
+ ```
38
+
39
+ ## Quickstart (Sync)
40
+
41
+ Set `GAINFLOW_API_KEY` in your environment (or pass `api_key=...` explicitly):
42
+
43
+ ```bash
44
+ export GAINFLOW_API_KEY="gf_live_..."
45
+ ```
46
+
47
+ ```python
48
+ from gainflow import GainflowClient
49
+
50
+ with GainflowClient() as gf:
51
+ page = gf.scrape(
52
+ "https://news.ycombinator.com",
53
+ formats=["markdown"],
54
+ parse={"titles": ".titleline > a"},
55
+ extract={
56
+ "prompt": "Extract the top 3 story titles",
57
+ "schema": {
58
+ "type": "object",
59
+ "properties": {"top_stories": {"type": "array", "items": {"type": "string"}}},
60
+ "required": ["top_stories"],
61
+ },
62
+ },
63
+ )
64
+ print(page["data"]["extracted"])
65
+ ```
66
+
67
+ ## Async Client
68
+
69
+ ```python
70
+ import asyncio
71
+ from gainflow import AsyncGainflowClient
72
+
73
+ async def main() -> None:
74
+ async with AsyncGainflowClient() as gf:
75
+ page = await gf.scrape("https://example.com", render_js=True)
76
+ print(page["data"]["markdown"])
77
+
78
+ asyncio.run(main())
79
+ ```
80
+
81
+ ## Features
82
+
83
+ - **Scraping & PDF OCR:** `gf.scrape(url, formats=..., parse=..., extract=..., render_js=..., actions=..., ocr=..., country=..., max_age_sec=..., zdr=...)`
84
+ - **Site Mapping & Crawling:** `gf.map(url, search=..., limit=...)`, `gf.crawls.create(url=..., max_pages=..., max_depth=...)`
85
+ - **Async Batches:** `gf.batches.create(urls=...)`, `gf.batches.get(batch_id)`, `gf.batches.cancel(batch_id)`
86
+ - **Monitors & Webhooks:** `gf.monitors.create(...)`, `gf.webhooks.create(url=..., events=...)`
87
+ - **Local Businesses:** `gf.businesses.search(...)`, `gf.businesses.enrich(business_id)`
88
+ - **Account & Billing:** `gf.account.balance()`, `gf.account.usage()`, `gf.account.create_api_key(name=...)`, `gf.billing.checkout(...)`
89
+ - **Low-level Escape Hatch:** `gf.request("POST", "/v1/...", json=...)` with automatic auth and retries on `408`/`429`/`502`/`503`/`504`.
90
+
91
+ ## License
92
+
93
+ MIT
@@ -0,0 +1,71 @@
1
+ # gainflow
2
+
3
+ Official Python SDK (sync & async) for [Gainflow](https://gainflow.ai) - hard-to-get web data for builders and AI agents.
4
+
5
+ - **Docs:** https://docs.gainflow.ai
6
+ - **Hosted MCP Server:** `https://mcp.gainflow.ai/mcp`
7
+ - **Agent Skill:** `npx skills add https://gainflow.ai`
8
+
9
+ ## Install
10
+
11
+ ```bash
12
+ pip install gainflow
13
+ # or
14
+ uv add gainflow
15
+ ```
16
+
17
+ ## Quickstart (Sync)
18
+
19
+ Set `GAINFLOW_API_KEY` in your environment (or pass `api_key=...` explicitly):
20
+
21
+ ```bash
22
+ export GAINFLOW_API_KEY="gf_live_..."
23
+ ```
24
+
25
+ ```python
26
+ from gainflow import GainflowClient
27
+
28
+ with GainflowClient() as gf:
29
+ page = gf.scrape(
30
+ "https://news.ycombinator.com",
31
+ formats=["markdown"],
32
+ parse={"titles": ".titleline > a"},
33
+ extract={
34
+ "prompt": "Extract the top 3 story titles",
35
+ "schema": {
36
+ "type": "object",
37
+ "properties": {"top_stories": {"type": "array", "items": {"type": "string"}}},
38
+ "required": ["top_stories"],
39
+ },
40
+ },
41
+ )
42
+ print(page["data"]["extracted"])
43
+ ```
44
+
45
+ ## Async Client
46
+
47
+ ```python
48
+ import asyncio
49
+ from gainflow import AsyncGainflowClient
50
+
51
+ async def main() -> None:
52
+ async with AsyncGainflowClient() as gf:
53
+ page = await gf.scrape("https://example.com", render_js=True)
54
+ print(page["data"]["markdown"])
55
+
56
+ asyncio.run(main())
57
+ ```
58
+
59
+ ## Features
60
+
61
+ - **Scraping & PDF OCR:** `gf.scrape(url, formats=..., parse=..., extract=..., render_js=..., actions=..., ocr=..., country=..., max_age_sec=..., zdr=...)`
62
+ - **Site Mapping & Crawling:** `gf.map(url, search=..., limit=...)`, `gf.crawls.create(url=..., max_pages=..., max_depth=...)`
63
+ - **Async Batches:** `gf.batches.create(urls=...)`, `gf.batches.get(batch_id)`, `gf.batches.cancel(batch_id)`
64
+ - **Monitors & Webhooks:** `gf.monitors.create(...)`, `gf.webhooks.create(url=..., events=...)`
65
+ - **Local Businesses:** `gf.businesses.search(...)`, `gf.businesses.enrich(business_id)`
66
+ - **Account & Billing:** `gf.account.balance()`, `gf.account.usage()`, `gf.account.create_api_key(name=...)`, `gf.billing.checkout(...)`
67
+ - **Low-level Escape Hatch:** `gf.request("POST", "/v1/...", json=...)` with automatic auth and retries on `408`/`429`/`502`/`503`/`504`.
68
+
69
+ ## License
70
+
71
+ MIT
@@ -0,0 +1,52 @@
1
+ [project]
2
+ name = "gainflow"
3
+ version = "0.1.0"
4
+ description = "Official Python SDK (sync & async) for the Gainflow web data API"
5
+ readme = "README.md"
6
+ license = { text = "MIT" }
7
+ requires-python = ">=3.10"
8
+ keywords = ["gainflow", "web-scraping", "ai-agents", "mcp", "markdown", "crawl", "monitoring"]
9
+ classifiers = [
10
+ "Development Status :: 4 - Beta",
11
+ "Intended Audience :: Developers",
12
+ "License :: OSI Approved :: MIT License",
13
+ "Programming Language :: Python :: 3",
14
+ "Programming Language :: Python :: 3.10",
15
+ "Programming Language :: Python :: 3.11",
16
+ "Programming Language :: Python :: 3.12",
17
+ "Programming Language :: Python :: 3.13",
18
+ "Typing :: Typed",
19
+ ]
20
+ dependencies = [
21
+ "httpx>=0.27.0,<1.0.0",
22
+ ]
23
+
24
+ [project.urls]
25
+ Homepage = "https://gainflow.ai"
26
+ Documentation = "https://docs.gainflow.ai"
27
+
28
+ [dependency-groups]
29
+ dev = [
30
+ "ruff==0.11.10",
31
+ "pyright==1.1.400",
32
+ "pytest==8.3.5",
33
+ ]
34
+
35
+ [build-system]
36
+ requires = ["hatchling"]
37
+ build-backend = "hatchling.build"
38
+
39
+ [tool.hatch.build.targets.wheel]
40
+ packages = ["src/gainflow"]
41
+
42
+ [tool.ruff]
43
+ target-version = "py310"
44
+ line-length = 100
45
+
46
+ [tool.ruff.lint]
47
+ select = ["E", "F", "I", "UP", "B", "ANN"]
48
+
49
+ [tool.pyright]
50
+ typeCheckingMode = "strict"
51
+ pythonVersion = "3.12"
52
+ include = ["src", "tests"]
@@ -0,0 +1,13 @@
1
+ from gainflow.async_client import AsyncGainflowClient
2
+ from gainflow.client import GainflowClient
3
+ from gainflow.errors import DEFAULT_BASE_URL, SDK_VERSION, GainflowApiError
4
+
5
+ __version__ = SDK_VERSION
6
+
7
+ __all__ = [
8
+ "DEFAULT_BASE_URL",
9
+ "AsyncGainflowClient",
10
+ "GainflowApiError",
11
+ "GainflowClient",
12
+ "__version__",
13
+ ]
@@ -0,0 +1,236 @@
1
+ import asyncio
2
+ from collections.abc import Sequence
3
+ from typing import Any
4
+ from urllib.parse import quote
5
+
6
+ import httpx
7
+
8
+ from gainflow.errors import (
9
+ RETRYABLE_STATUSES,
10
+ SDK_VERSION,
11
+ decode_response,
12
+ parse_retry_after,
13
+ qs,
14
+ resolve_api_key,
15
+ resolve_base_url,
16
+ )
17
+
18
+
19
+ class _AsyncResource:
20
+ def __init__(self, client: "AsyncGainflowClient") -> None:
21
+ self._c = client
22
+
23
+
24
+ class AsyncBusinessesResource(_AsyncResource):
25
+ async def search(self, **kwargs: object) -> dict[str, Any]:
26
+ return await self._c.request("POST", "/v1/businesses/search", json=dict(kwargs))
27
+
28
+ async def get(self, business_id: str) -> dict[str, Any]:
29
+ return await self._c.request("GET", f"/v1/businesses/{quote(business_id, safe='')}")
30
+
31
+ async def enrich(self, business_id: str) -> dict[str, Any]:
32
+ return await self._c.request("POST", f"/v1/businesses/{quote(business_id, safe='')}/enrich")
33
+
34
+
35
+ class AsyncWebhooksResource(_AsyncResource):
36
+ async def list(self, *, limit: int | None = None, cursor: str | None = None) -> dict[str, Any]:
37
+ return await self._c.request("GET", f"/v1/webhooks{qs({'limit': limit, 'cursor': cursor})}")
38
+
39
+ async def create(self, *, url: str, events: Sequence[str]) -> dict[str, Any]:
40
+ return await self._c.request(
41
+ "POST", "/v1/webhooks", json={"url": url, "events": list(events)}
42
+ )
43
+
44
+ async def delete(self, webhook_id: str) -> dict[str, Any]:
45
+ return await self._c.request("DELETE", f"/v1/webhooks/{quote(webhook_id, safe='')}")
46
+
47
+ async def deliveries(
48
+ self, webhook_id: str, *, limit: int | None = None, cursor: str | None = None
49
+ ) -> dict[str, Any]:
50
+ q = qs({"limit": limit, "cursor": cursor})
51
+ return await self._c.request(
52
+ "GET", f"/v1/webhooks/{quote(webhook_id, safe='')}/deliveries{q}"
53
+ )
54
+
55
+
56
+ class AsyncMonitorsResource(_AsyncResource):
57
+ async def list(self, *, limit: int | None = None, cursor: str | None = None) -> dict[str, Any]:
58
+ return await self._c.request("GET", f"/v1/monitors{qs({'limit': limit, 'cursor': cursor})}")
59
+
60
+ async def create(self, **kwargs: object) -> dict[str, Any]:
61
+ return await self._c.request("POST", "/v1/monitors", json=dict(kwargs))
62
+
63
+ async def update(self, monitor_id: str, **kwargs: object) -> dict[str, Any]:
64
+ path = f"/v1/monitors/{quote(monitor_id, safe='')}"
65
+ return await self._c.request("PATCH", path, json=dict(kwargs))
66
+
67
+ async def delete(self, monitor_id: str) -> dict[str, Any]:
68
+ return await self._c.request("DELETE", f"/v1/monitors/{quote(monitor_id, safe='')}")
69
+
70
+ async def events(
71
+ self, monitor_id: str, *, limit: int | None = None, cursor: str | None = None
72
+ ) -> dict[str, Any]:
73
+ q = qs({"limit": limit, "cursor": cursor})
74
+ return await self._c.request("GET", f"/v1/monitors/{quote(monitor_id, safe='')}/events{q}")
75
+
76
+
77
+ class AsyncBatchesResource(_AsyncResource):
78
+ async def list(self, *, limit: int | None = None, cursor: str | None = None) -> dict[str, Any]:
79
+ return await self._c.request("GET", f"/v1/batches{qs({'limit': limit, 'cursor': cursor})}")
80
+
81
+ async def create(self, **kwargs: object) -> dict[str, Any]:
82
+ return await self._c.request("POST", "/v1/batches", json=dict(kwargs))
83
+
84
+ async def get(self, batch_id: str, *, limit: int | None = None) -> dict[str, Any]:
85
+ return await self._c.request(
86
+ "GET", f"/v1/batches/{quote(batch_id, safe='')}{qs({'limit': limit})}"
87
+ )
88
+
89
+ async def cancel(self, batch_id: str) -> dict[str, Any]:
90
+ return await self._c.request("POST", f"/v1/batches/{quote(batch_id, safe='')}/cancel")
91
+
92
+
93
+ class AsyncCrawlsResource(_AsyncResource):
94
+ async def list(self, *, limit: int | None = None, cursor: str | None = None) -> dict[str, Any]:
95
+ return await self._c.request("GET", f"/v1/crawls{qs({'limit': limit, 'cursor': cursor})}")
96
+
97
+ async def create(self, **kwargs: object) -> dict[str, Any]:
98
+ return await self._c.request("POST", "/v1/crawl", json=dict(kwargs))
99
+
100
+ async def get(self, crawl_id: str, *, limit: int | None = None) -> dict[str, Any]:
101
+ return await self._c.request(
102
+ "GET", f"/v1/crawls/{quote(crawl_id, safe='')}{qs({'limit': limit})}"
103
+ )
104
+
105
+ async def cancel(self, crawl_id: str) -> dict[str, Any]:
106
+ return await self._c.request("POST", f"/v1/crawls/{quote(crawl_id, safe='')}/cancel")
107
+
108
+
109
+ class AsyncAccountResource(_AsyncResource):
110
+ async def balance(self) -> dict[str, Any]:
111
+ return await self._c.request("GET", "/v1/account/balance")
112
+
113
+ async def usage(self, *, limit: int | None = None, cursor: str | None = None) -> dict[str, Any]:
114
+ return await self._c.request(
115
+ "GET", f"/v1/account/usage{qs({'limit': limit, 'cursor': cursor})}"
116
+ )
117
+
118
+ async def list_api_keys(
119
+ self, *, limit: int | None = None, cursor: str | None = None
120
+ ) -> dict[str, Any]:
121
+ q = qs({"limit": limit, "cursor": cursor})
122
+ return await self._c.request("GET", f"/v1/account/api-keys{q}")
123
+
124
+ async def create_api_key(
125
+ self, *, name: str, scopes: Sequence[str] | None = None
126
+ ) -> dict[str, Any]:
127
+ payload: dict[str, object] = {"name": name}
128
+ if scopes is not None:
129
+ payload["scopes"] = list(scopes)
130
+ return await self._c.request("POST", "/v1/account/api-keys", json=payload)
131
+
132
+ async def revoke_api_key(self, key_id: str) -> dict[str, Any]:
133
+ return await self._c.request("DELETE", f"/v1/account/api-keys/{quote(key_id, safe='')}")
134
+
135
+
136
+ class AsyncBillingResource(_AsyncResource):
137
+ async def checkout(self, *, plan: str, success_url: str, cancel_url: str) -> dict[str, Any]:
138
+ return await self._c.request(
139
+ "POST",
140
+ "/v1/billing/checkout",
141
+ json={"plan": plan, "success_url": success_url, "cancel_url": cancel_url},
142
+ )
143
+
144
+ async def portal(self, *, return_url: str) -> dict[str, Any]:
145
+ return await self._c.request("POST", "/v1/billing/portal", json={"return_url": return_url})
146
+
147
+
148
+ class AsyncGainflowClient:
149
+ def __init__(
150
+ self,
151
+ api_key: str | None = None,
152
+ *,
153
+ base_url: str | None = None,
154
+ timeout: float = 35.0,
155
+ max_retries: int = 2,
156
+ http_client: httpx.AsyncClient | None = None,
157
+ ) -> None:
158
+ self._api_key = resolve_api_key(api_key)
159
+ self._base_url = resolve_base_url(base_url)
160
+ self._max_retries = max(0, min(max_retries, 5))
161
+ self._owns_client = http_client is None
162
+ self._http = http_client or httpx.AsyncClient(timeout=timeout)
163
+
164
+ self.businesses = AsyncBusinessesResource(self)
165
+ self.webhooks = AsyncWebhooksResource(self)
166
+ self.monitors = AsyncMonitorsResource(self)
167
+ self.batches = AsyncBatchesResource(self)
168
+ self.crawls = AsyncCrawlsResource(self)
169
+ self.account = AsyncAccountResource(self)
170
+ self.billing = AsyncBillingResource(self)
171
+
172
+ async def aclose(self) -> None:
173
+ if self._owns_client:
174
+ await self._http.aclose()
175
+
176
+ async def __aenter__(self) -> "AsyncGainflowClient":
177
+ return self
178
+
179
+ async def __aexit__(self, *_args: object) -> None:
180
+ await self.aclose()
181
+
182
+ async def request(
183
+ self,
184
+ method: str,
185
+ path: str,
186
+ *,
187
+ json: dict[str, object] | None = None,
188
+ idempotency_key: str | None = None,
189
+ ) -> dict[str, Any]:
190
+ headers: dict[str, str] = {
191
+ "Authorization": f"Bearer {self._api_key}",
192
+ "Accept": "application/json",
193
+ "User-Agent": f"gainflow-python/{SDK_VERSION}",
194
+ }
195
+ if idempotency_key:
196
+ headers["Idempotency-Key"] = idempotency_key
197
+
198
+ url = f"{self._base_url}{path if path.startswith('/') else f'/{path}'}"
199
+ for attempt in range(self._max_retries + 1):
200
+ try:
201
+ resp = await self._http.request(method, url, headers=headers, json=json)
202
+ except httpx.TransportError:
203
+ if attempt < self._max_retries:
204
+ await asyncio.sleep(0.25 * (2**attempt))
205
+ continue
206
+ raise
207
+
208
+ if resp.status_code in RETRYABLE_STATUSES and attempt < self._max_retries:
209
+ retry_after = parse_retry_after(resp.headers.get("retry-after"))
210
+ await asyncio.sleep(retry_after if retry_after is not None else 0.3 * (2**attempt))
211
+ continue
212
+ return decode_response(resp)
213
+
214
+ raise RuntimeError("Gainflow request exhausted retries")
215
+
216
+ async def scrape(
217
+ self,
218
+ url: str,
219
+ *,
220
+ idempotency_key: str | None = None,
221
+ **kwargs: object,
222
+ ) -> dict[str, Any]:
223
+ payload: dict[str, object] = {"url": url, **kwargs}
224
+ return await self.request(
225
+ "POST", "/v1/scrape", json=payload, idempotency_key=idempotency_key
226
+ )
227
+
228
+ async def map(
229
+ self,
230
+ url: str,
231
+ *,
232
+ idempotency_key: str | None = None,
233
+ **kwargs: object,
234
+ ) -> dict[str, Any]:
235
+ payload: dict[str, object] = {"url": url, **kwargs}
236
+ return await self.request("POST", "/v1/map", json=payload, idempotency_key=idempotency_key)
@@ -0,0 +1,226 @@
1
+ import time
2
+ from collections.abc import Sequence
3
+ from typing import Any
4
+ from urllib.parse import quote
5
+
6
+ import httpx
7
+
8
+ from gainflow.errors import (
9
+ RETRYABLE_STATUSES,
10
+ SDK_VERSION,
11
+ decode_response,
12
+ parse_retry_after,
13
+ qs,
14
+ resolve_api_key,
15
+ resolve_base_url,
16
+ )
17
+
18
+
19
+ class _Resource:
20
+ def __init__(self, client: "GainflowClient") -> None:
21
+ self._c = client
22
+
23
+
24
+ class BusinessesResource(_Resource):
25
+ def search(self, **kwargs: object) -> dict[str, Any]:
26
+ return self._c.request("POST", "/v1/businesses/search", json=dict(kwargs))
27
+
28
+ def get(self, business_id: str) -> dict[str, Any]:
29
+ return self._c.request("GET", f"/v1/businesses/{quote(business_id, safe='')}")
30
+
31
+ def enrich(self, business_id: str) -> dict[str, Any]:
32
+ return self._c.request("POST", f"/v1/businesses/{quote(business_id, safe='')}/enrich")
33
+
34
+
35
+ class WebhooksResource(_Resource):
36
+ def list(self, *, limit: int | None = None, cursor: str | None = None) -> dict[str, Any]:
37
+ return self._c.request("GET", f"/v1/webhooks{qs({'limit': limit, 'cursor': cursor})}")
38
+
39
+ def create(self, *, url: str, events: Sequence[str]) -> dict[str, Any]:
40
+ return self._c.request("POST", "/v1/webhooks", json={"url": url, "events": list(events)})
41
+
42
+ def delete(self, webhook_id: str) -> dict[str, Any]:
43
+ return self._c.request("DELETE", f"/v1/webhooks/{quote(webhook_id, safe='')}")
44
+
45
+ def deliveries(
46
+ self, webhook_id: str, *, limit: int | None = None, cursor: str | None = None
47
+ ) -> dict[str, Any]:
48
+ q = qs({"limit": limit, "cursor": cursor})
49
+ return self._c.request("GET", f"/v1/webhooks/{quote(webhook_id, safe='')}/deliveries{q}")
50
+
51
+
52
+ class MonitorsResource(_Resource):
53
+ def list(self, *, limit: int | None = None, cursor: str | None = None) -> dict[str, Any]:
54
+ return self._c.request("GET", f"/v1/monitors{qs({'limit': limit, 'cursor': cursor})}")
55
+
56
+ def create(self, **kwargs: object) -> dict[str, Any]:
57
+ return self._c.request("POST", "/v1/monitors", json=dict(kwargs))
58
+
59
+ def update(self, monitor_id: str, **kwargs: object) -> dict[str, Any]:
60
+ path = f"/v1/monitors/{quote(monitor_id, safe='')}"
61
+ return self._c.request("PATCH", path, json=dict(kwargs))
62
+
63
+ def delete(self, monitor_id: str) -> dict[str, Any]:
64
+ return self._c.request("DELETE", f"/v1/monitors/{quote(monitor_id, safe='')}")
65
+
66
+ def events(
67
+ self, monitor_id: str, *, limit: int | None = None, cursor: str | None = None
68
+ ) -> dict[str, Any]:
69
+ q = qs({"limit": limit, "cursor": cursor})
70
+ return self._c.request("GET", f"/v1/monitors/{quote(monitor_id, safe='')}/events{q}")
71
+
72
+
73
+ class BatchesResource(_Resource):
74
+ def list(self, *, limit: int | None = None, cursor: str | None = None) -> dict[str, Any]:
75
+ return self._c.request("GET", f"/v1/batches{qs({'limit': limit, 'cursor': cursor})}")
76
+
77
+ def create(self, **kwargs: object) -> dict[str, Any]:
78
+ return self._c.request("POST", "/v1/batches", json=dict(kwargs))
79
+
80
+ def get(self, batch_id: str, *, limit: int | None = None) -> dict[str, Any]:
81
+ return self._c.request(
82
+ "GET", f"/v1/batches/{quote(batch_id, safe='')}{qs({'limit': limit})}"
83
+ )
84
+
85
+ def cancel(self, batch_id: str) -> dict[str, Any]:
86
+ return self._c.request("POST", f"/v1/batches/{quote(batch_id, safe='')}/cancel")
87
+
88
+
89
+ class CrawlsResource(_Resource):
90
+ def list(self, *, limit: int | None = None, cursor: str | None = None) -> dict[str, Any]:
91
+ return self._c.request("GET", f"/v1/crawls{qs({'limit': limit, 'cursor': cursor})}")
92
+
93
+ def create(self, **kwargs: object) -> dict[str, Any]:
94
+ return self._c.request("POST", "/v1/crawl", json=dict(kwargs))
95
+
96
+ def get(self, crawl_id: str, *, limit: int | None = None) -> dict[str, Any]:
97
+ return self._c.request(
98
+ "GET", f"/v1/crawls/{quote(crawl_id, safe='')}{qs({'limit': limit})}"
99
+ )
100
+
101
+ def cancel(self, crawl_id: str) -> dict[str, Any]:
102
+ return self._c.request("POST", f"/v1/crawls/{quote(crawl_id, safe='')}/cancel")
103
+
104
+
105
+ class AccountResource(_Resource):
106
+ def balance(self) -> dict[str, Any]:
107
+ return self._c.request("GET", "/v1/account/balance")
108
+
109
+ def usage(self, *, limit: int | None = None, cursor: str | None = None) -> dict[str, Any]:
110
+ return self._c.request("GET", f"/v1/account/usage{qs({'limit': limit, 'cursor': cursor})}")
111
+
112
+ def list_api_keys(
113
+ self, *, limit: int | None = None, cursor: str | None = None
114
+ ) -> dict[str, Any]:
115
+ q = qs({"limit": limit, "cursor": cursor})
116
+ return self._c.request("GET", f"/v1/account/api-keys{q}")
117
+
118
+ def create_api_key(self, *, name: str, scopes: Sequence[str] | None = None) -> dict[str, Any]:
119
+ payload: dict[str, object] = {"name": name}
120
+ if scopes is not None:
121
+ payload["scopes"] = list(scopes)
122
+ return self._c.request("POST", "/v1/account/api-keys", json=payload)
123
+
124
+ def revoke_api_key(self, key_id: str) -> dict[str, Any]:
125
+ return self._c.request("DELETE", f"/v1/account/api-keys/{quote(key_id, safe='')}")
126
+
127
+
128
+ class BillingResource(_Resource):
129
+ def checkout(self, *, plan: str, success_url: str, cancel_url: str) -> dict[str, Any]:
130
+ return self._c.request(
131
+ "POST",
132
+ "/v1/billing/checkout",
133
+ json={"plan": plan, "success_url": success_url, "cancel_url": cancel_url},
134
+ )
135
+
136
+ def portal(self, *, return_url: str) -> dict[str, Any]:
137
+ return self._c.request("POST", "/v1/billing/portal", json={"return_url": return_url})
138
+
139
+
140
+ class GainflowClient:
141
+ def __init__(
142
+ self,
143
+ api_key: str | None = None,
144
+ *,
145
+ base_url: str | None = None,
146
+ timeout: float = 35.0,
147
+ max_retries: int = 2,
148
+ http_client: httpx.Client | None = None,
149
+ ) -> None:
150
+ self._api_key = resolve_api_key(api_key)
151
+ self._base_url = resolve_base_url(base_url)
152
+ self._max_retries = max(0, min(max_retries, 5))
153
+ self._owns_client = http_client is None
154
+ self._http = http_client or httpx.Client(timeout=timeout)
155
+
156
+ self.businesses = BusinessesResource(self)
157
+ self.webhooks = WebhooksResource(self)
158
+ self.monitors = MonitorsResource(self)
159
+ self.batches = BatchesResource(self)
160
+ self.crawls = CrawlsResource(self)
161
+ self.account = AccountResource(self)
162
+ self.billing = BillingResource(self)
163
+
164
+ def close(self) -> None:
165
+ if self._owns_client:
166
+ self._http.close()
167
+
168
+ def __enter__(self) -> "GainflowClient":
169
+ return self
170
+
171
+ def __exit__(self, *_args: object) -> None:
172
+ self.close()
173
+
174
+ def request(
175
+ self,
176
+ method: str,
177
+ path: str,
178
+ *,
179
+ json: dict[str, object] | None = None,
180
+ idempotency_key: str | None = None,
181
+ ) -> dict[str, Any]:
182
+ headers: dict[str, str] = {
183
+ "Authorization": f"Bearer {self._api_key}",
184
+ "Accept": "application/json",
185
+ "User-Agent": f"gainflow-python/{SDK_VERSION}",
186
+ }
187
+ if idempotency_key:
188
+ headers["Idempotency-Key"] = idempotency_key
189
+
190
+ url = f"{self._base_url}{path if path.startswith('/') else f'/{path}'}"
191
+ for attempt in range(self._max_retries + 1):
192
+ try:
193
+ resp = self._http.request(method, url, headers=headers, json=json)
194
+ except httpx.TransportError:
195
+ if attempt < self._max_retries:
196
+ time.sleep(0.25 * (2**attempt))
197
+ continue
198
+ raise
199
+
200
+ if resp.status_code in RETRYABLE_STATUSES and attempt < self._max_retries:
201
+ retry_after = parse_retry_after(resp.headers.get("retry-after"))
202
+ time.sleep(retry_after if retry_after is not None else 0.3 * (2**attempt))
203
+ continue
204
+ return decode_response(resp)
205
+
206
+ raise RuntimeError("Gainflow request exhausted retries")
207
+
208
+ def scrape(
209
+ self,
210
+ url: str,
211
+ *,
212
+ idempotency_key: str | None = None,
213
+ **kwargs: object,
214
+ ) -> dict[str, Any]:
215
+ payload: dict[str, object] = {"url": url, **kwargs}
216
+ return self.request("POST", "/v1/scrape", json=payload, idempotency_key=idempotency_key)
217
+
218
+ def map(
219
+ self,
220
+ url: str,
221
+ *,
222
+ idempotency_key: str | None = None,
223
+ **kwargs: object,
224
+ ) -> dict[str, Any]:
225
+ payload: dict[str, object] = {"url": url, **kwargs}
226
+ return self.request("POST", "/v1/map", json=payload, idempotency_key=idempotency_key)
@@ -0,0 +1,80 @@
1
+ import os
2
+ from dataclasses import dataclass
3
+ from typing import Any, cast
4
+ from urllib.parse import urlencode
5
+
6
+ import httpx
7
+
8
+ DEFAULT_BASE_URL = "https://api.gainflow.ai"
9
+ SDK_VERSION = "0.1.0"
10
+ RETRYABLE_STATUSES = frozenset({408, 429, 502, 503, 504})
11
+
12
+
13
+ @dataclass
14
+ class GainflowApiError(Exception):
15
+ status: int
16
+ code: str
17
+ title: str
18
+ request_id: str
19
+ detail: str | None = None
20
+ retry_after_sec: int | None = None
21
+
22
+ def __str__(self) -> str:
23
+ msg = f"{self.title}: {self.detail}" if self.detail else self.title
24
+ return f"[{self.status} {self.code}] {msg} (request_id={self.request_id})"
25
+
26
+
27
+ def resolve_api_key(api_key: str | None) -> str:
28
+ resolved = (api_key or os.environ.get("GAINFLOW_API_KEY") or "").strip()
29
+ if not resolved:
30
+ raise ValueError(
31
+ "Gainflow client requires an API key. Pass api_key=... or set GAINFLOW_API_KEY."
32
+ )
33
+ return resolved
34
+
35
+
36
+ def resolve_base_url(base_url: str | None) -> str:
37
+ resolved = (base_url or os.environ.get("GAINFLOW_BASE_URL") or DEFAULT_BASE_URL).strip()
38
+ return resolved.rstrip("/")
39
+
40
+
41
+ def qs(params: dict[str, object]) -> str:
42
+ clean = {k: str(v) for k, v in params.items() if v is not None}
43
+ return f"?{urlencode(clean)}" if clean else ""
44
+
45
+
46
+ def parse_retry_after(header: str | None) -> float | None:
47
+ if not header:
48
+ return None
49
+ try:
50
+ val = float(header.strip())
51
+ if val >= 0:
52
+ return min(val, 15.0)
53
+ except ValueError:
54
+ pass
55
+ return None
56
+
57
+
58
+ def decode_response(resp: httpx.Response) -> dict[str, Any]:
59
+ data: object = {}
60
+ if resp.content:
61
+ try:
62
+ data = resp.json()
63
+ except ValueError:
64
+ data = {"detail": resp.text[:300]}
65
+
66
+ if resp.status_code >= 400:
67
+ prob = cast(dict[str, object], data) if isinstance(data, dict) else {}
68
+ raw_status = prob.get("status", resp.status_code)
69
+ status_int = raw_status if isinstance(raw_status, int) else resp.status_code
70
+ detail_val = prob.get("detail")
71
+ retry_after = parse_retry_after(resp.headers.get("retry-after"))
72
+ raise GainflowApiError(
73
+ status=status_int,
74
+ code=str(prob.get("code", "INTERNAL_ERROR")),
75
+ title=str(prob.get("title", f"HTTP {resp.status_code}")),
76
+ request_id=str(prob.get("request_id", resp.headers.get("x-request-id", ""))),
77
+ detail=str(detail_val) if detail_val else None,
78
+ retry_after_sec=int(retry_after) if retry_after is not None else None,
79
+ )
80
+ return cast(dict[str, Any], data) if isinstance(data, dict) else {"data": data}
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,103 @@
1
+ import asyncio
2
+
3
+ import httpx
4
+ import pytest
5
+
6
+ from gainflow import AsyncGainflowClient, GainflowApiError, GainflowClient
7
+
8
+
9
+ def test_reads_api_key_from_env_and_sends_headers(monkeypatch: pytest.MonkeyPatch) -> None:
10
+ monkeypatch.setenv("GAINFLOW_API_KEY", "gf_live_from_env")
11
+ seen: dict[str, str] = {}
12
+
13
+ def handler(request: httpx.Request) -> httpx.Response:
14
+ seen["auth"] = request.headers.get("Authorization", "")
15
+ seen["idem"] = request.headers.get("Idempotency-Key", "")
16
+ seen["url"] = str(request.url)
17
+ return httpx.Response(
18
+ 200,
19
+ json={
20
+ "data": {"url": "https://gainflow.ai", "final_url": "https://gainflow.ai/"},
21
+ "meta": {"request_id": "req-1", "credits_used": 1, "duration_ms": 210},
22
+ },
23
+ )
24
+
25
+ http = httpx.Client(transport=httpx.MockTransport(handler))
26
+ with GainflowClient(http_client=http) as client:
27
+ res = client.scrape("https://gainflow.ai", idempotency_key="idem-py-1")
28
+ assert res["meta"]["credits_used"] == 1
29
+ assert seen["auth"] == "Bearer gf_live_from_env"
30
+ assert seen["idem"] == "idem-py-1"
31
+ assert seen["url"] == "https://api.gainflow.ai/v1/scrape"
32
+
33
+
34
+ def test_retries_transient_429_and_503() -> None:
35
+ calls = 0
36
+
37
+ def handler(_request: httpx.Request) -> httpx.Response:
38
+ nonlocal calls
39
+ calls += 1
40
+ if calls == 1:
41
+ return httpx.Response(429, headers={"Retry-After": "0"}, text="slow down")
42
+ if calls == 2:
43
+ return httpx.Response(503, headers={"Retry-After": "0"}, text="busy")
44
+ return httpx.Response(200, json={"available_credits": 500, "reserved_credits": 0})
45
+
46
+ http = httpx.Client(transport=httpx.MockTransport(handler))
47
+ client = GainflowClient("gf_live_retry", http_client=http, max_retries=2)
48
+ bal = client.account.balance()
49
+ assert bal["available_credits"] == 500
50
+ assert calls == 3
51
+
52
+
53
+ def test_raises_gainflow_api_error_on_402_without_retrying() -> None:
54
+ calls = 0
55
+
56
+ def handler(_request: httpx.Request) -> httpx.Response:
57
+ nonlocal calls
58
+ calls += 1
59
+ return httpx.Response(
60
+ 402,
61
+ json={
62
+ "type": "https://gainflow.ai/errors/insufficient-credits",
63
+ "title": "Insufficient credits",
64
+ "status": 402,
65
+ "code": "INSUFFICIENT_CREDITS",
66
+ "detail": "Top up credits",
67
+ "request_id": "req-402",
68
+ },
69
+ )
70
+
71
+ http = httpx.Client(transport=httpx.MockTransport(handler))
72
+ client = GainflowClient("gf_live_abc", http_client=http, max_retries=2)
73
+ with pytest.raises(GainflowApiError) as exc:
74
+ client.account.balance()
75
+ assert calls == 1
76
+ assert exc.value.status == 402
77
+ assert exc.value.code == "INSUFFICIENT_CREDITS"
78
+ assert exc.value.request_id == "req-402"
79
+
80
+
81
+ def test_async_client_and_billing_endpoints() -> None:
82
+ async def run() -> None:
83
+ async def handler(request: httpx.Request) -> httpx.Response:
84
+ if request.url.path == "/v1/billing/checkout":
85
+ return httpx.Response(
86
+ 200, json={"url": "https://checkout.stripe.com/1", "session_id": "cs_1"}
87
+ )
88
+ return httpx.Response(
89
+ 200, json={"data": {"markdown": "# Async OK"}, "meta": {"credits_used": 1}}
90
+ )
91
+
92
+ http = httpx.AsyncClient(transport=httpx.MockTransport(handler))
93
+ async with AsyncGainflowClient("gf_live_async", http_client=http) as client:
94
+ scraped = await client.scrape("https://example.com")
95
+ assert scraped["data"]["markdown"] == "# Async OK"
96
+ session = await client.billing.checkout(
97
+ plan="starter",
98
+ success_url="https://app.gainflow.ai/billing?ok=1",
99
+ cancel_url="https://app.gainflow.ai/billing",
100
+ )
101
+ assert session["session_id"] == "cs_1"
102
+
103
+ asyncio.run(run())
gainflow-0.1.0/uv.lock ADDED
@@ -0,0 +1,290 @@
1
+ version = 1
2
+ revision = 2
3
+ requires-python = ">=3.10"
4
+
5
+ [[package]]
6
+ name = "anyio"
7
+ version = "4.16.0"
8
+ source = { registry = "https://pypi.org/simple" }
9
+ dependencies = [
10
+ { name = "exceptiongroup", marker = "python_full_version < '3.11'" },
11
+ { name = "idna" },
12
+ { name = "typing-extensions", marker = "python_full_version < '3.15'" },
13
+ ]
14
+ sdist = { url = "https://files.pythonhosted.org/packages/a1/98/7e457a3b014976887a050561955c0b76e1e7e2d6e27b78ecef2ef80518f2/anyio-4.16.0.tar.gz", hash = "sha256:59bb03251907983d1603d27c3087ddb1e93299ea2163adcdba37899a4fb12ffb", size = 310971, upload-time = "2026-11-01T11:20:07.282Z" }
15
+ wheels = [
16
+ { url = "https://files.pythonhosted.org/packages/a9/16/7757fb84c819accc7d7e9af5291b261e4abb8627ee040f99e7d35ef2457a/anyio-4.16.0-py3-none-any.whl", hash = "sha256:c66ae634e0b8228396b801741beb3294326d4b6102f7bba4041c0dfb58c29026", size = 134521, upload-time = "2026-11-01T11:20:05.59Z" },
17
+ ]
18
+
19
+ [[package]]
20
+ name = "certifi"
21
+ version = "2026.11.20"
22
+ source = { registry = "https://pypi.org/simple" }
23
+ sdist = { url = "https://files.pythonhosted.org/packages/51/33/4cd27639502f010084bcef7a2036391dd637439901341ce1a530f36f6e51/certifi-2026.11.20.tar.gz", hash = "sha256:af1cb240a8133f105aa52684a3a3258339d7f2fd0bd4e2812698ff5cf5588c4e", size = 128901, upload-time = "2026-11-20T23:37:49.522Z" }
24
+ wheels = [
25
+ { url = "https://files.pythonhosted.org/packages/6d/39/5eec3296860b94ac20bb8ed807725b88f6adfab3f343df592afd975f5f86/certifi-2026.11.20-py3-none-any.whl", hash = "sha256:7422df25243767b9877031a2248cb14d09ddac9beee846f4cef3d5c9191d488f", size = 127913, upload-time = "2026-11-20T23:37:48.117Z" },
26
+ ]
27
+
28
+ [[package]]
29
+ name = "colorama"
30
+ version = "0.4.6"
31
+ source = { registry = "https://pypi.org/simple" }
32
+ sdist = { url = "https://files.pythonhosted.org/packages/d8/53/6f443c9a4a8358a93a6792e2acffb9d9d5cb0a5cfd8802644b7b1c9a02e4/colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44", size = 27697, upload-time = "2022-10-25T02:36:22.414Z" }
33
+ wheels = [
34
+ { url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335, upload-time = "2022-10-25T02:36:20.889Z" },
35
+ ]
36
+
37
+ [[package]]
38
+ name = "exceptiongroup"
39
+ version = "1.3.2"
40
+ source = { registry = "https://pypi.org/simple" }
41
+ dependencies = [
42
+ { name = "typing-extensions", marker = "python_full_version < '3.13'" },
43
+ ]
44
+ sdist = { url = "https://files.pythonhosted.org/packages/85/ac/f882fe3234606340c8729372da0fb98c634b97a560c9d375d9afea21496b/exceptiongroup-1.3.2.tar.gz", hash = "sha256:ca82e69f0cb535fbde934885744b67669a3efddd50fe7bc00d3398839fcaddec", size = 34687, upload-time = "2026-11-19T22:10:16.815Z" }
45
+ wheels = [
46
+ { url = "https://files.pythonhosted.org/packages/a0/7d/0fb19ccdf794c448141461180d5992c50402f69f8515a801bfac7ad65f45/exceptiongroup-1.3.2-py3-none-any.whl", hash = "sha256:41c6a70dfec22050d3d8b43386b059a4dc0bca3f3d40a40971cb206fff1785af", size = 16854, upload-time = "2026-11-19T22:10:15.746Z" },
47
+ ]
48
+
49
+ [[package]]
50
+ name = "gainflow"
51
+ version = "0.1.0"
52
+ source = { editable = "." }
53
+ dependencies = [
54
+ { name = "httpx" },
55
+ ]
56
+
57
+ [package.dev-dependencies]
58
+ dev = [
59
+ { name = "pyright" },
60
+ { name = "pytest" },
61
+ { name = "ruff" },
62
+ ]
63
+
64
+ [package.metadata]
65
+ requires-dist = [{ name = "httpx", specifier = ">=0.27.0,<1.0.0" }]
66
+
67
+ [package.metadata.requires-dev]
68
+ dev = [
69
+ { name = "pyright", specifier = "==1.1.400" },
70
+ { name = "pytest", specifier = "==8.3.5" },
71
+ { name = "ruff", specifier = "==0.11.10" },
72
+ ]
73
+
74
+ [[package]]
75
+ name = "h11"
76
+ version = "0.16.0"
77
+ source = { registry = "https://pypi.org/simple" }
78
+ sdist = { url = "https://files.pythonhosted.org/packages/01/ee/02a2c011bdab74c6fb3c75474d40b3052059d95df7e73351460c8588d963/h11-0.16.0.tar.gz", hash = "sha256:4e35b956cf45792e4caa5885e69fba00bdbc6ffafbfa020300e549b208ee5ff1", size = 101250, upload-time = "2025-04-24T03:35:25.427Z" }
79
+ wheels = [
80
+ { url = "https://files.pythonhosted.org/packages/04/4b/29cac41a4d98d144bf5f6d33995617b185d14b22401f75ca86f384e87ff1/h11-0.16.0-py3-none-any.whl", hash = "sha256:63cf8bbe7522de3bf65932fda1d9c2772064ffb3dae62d55932da54b31cb6c86", size = 37515, upload-time = "2025-04-24T03:35:24.344Z" },
81
+ ]
82
+
83
+ [[package]]
84
+ name = "httpcore"
85
+ version = "1.0.9"
86
+ source = { registry = "https://pypi.org/simple" }
87
+ dependencies = [
88
+ { name = "certifi" },
89
+ { name = "h11" },
90
+ ]
91
+ sdist = { url = "https://files.pythonhosted.org/packages/06/94/82699a10bca87a5556c9c59b5963f2d039dbd239f25bc2a63907a05a14cb/httpcore-1.0.9.tar.gz", hash = "sha256:6e34463af53fd2ab5d807f399a9b45ea31c3dfa2276f15a2c3f00afff6e176e8", size = 85484, upload-time = "2025-04-24T22:06:22.219Z" }
92
+ wheels = [
93
+ { url = "https://files.pythonhosted.org/packages/7e/f5/f66802a942d491edb555dd61e3a9961140fd64c90bce1eafd741609d334d/httpcore-1.0.9-py3-none-any.whl", hash = "sha256:2d400746a40668fc9dec9810239072b40b4484b640a8c38fd654a024c7a1bf55", size = 78784, upload-time = "2025-04-24T22:06:20.566Z" },
94
+ ]
95
+
96
+ [[package]]
97
+ name = "httpx"
98
+ version = "0.29.0"
99
+ source = { registry = "https://pypi.org/simple" }
100
+ dependencies = [
101
+ { name = "anyio" },
102
+ { name = "certifi" },
103
+ { name = "httpcore" },
104
+ { name = "idna" },
105
+ ]
106
+ sdist = { url = "https://files.pythonhosted.org/packages/9a/d5/b4d2c4d397b7c0222635cd069098f232fb5cba31f6749e77b339e263b52c/httpx-0.29.0.tar.gz", hash = "sha256:700928ee6c1f4213795e67c47eba8f8553639069fea89199f71d654e38edc593", size = 141642, upload-time = "2026-11-26T15:58:37.028Z" }
107
+ wheels = [
108
+ { url = "https://files.pythonhosted.org/packages/82/c6/dddba524648da23345e446e6413530474e19e44122dba752d34ae7c4ae57/httpx-0.29.0-py3-none-any.whl", hash = "sha256:6734dcf742ced6e8018e45d3f9f7728975b6b3e1085a24f3e2c056069d858bd1", size = 73532, upload-time = "2026-11-26T15:58:35.703Z" },
109
+ ]
110
+
111
+ [[package]]
112
+ name = "idna"
113
+ version = "3.20"
114
+ source = { registry = "https://pypi.org/simple" }
115
+ sdist = { url = "https://files.pythonhosted.org/packages/f5/08/8eea9d4b8302028f3abb2c0813953f7aec26d33b7a8960ed760e65ff29fa/idna-3.20.tar.gz", hash = "sha256:a7db850025b95ded1eae8a46181a1a6c56c92c96f0e2b005d9ff8dc0210cab44", size = 216463, upload-time = "2026-09-17T14:11:04.752Z" }
116
+ wheels = [
117
+ { url = "https://files.pythonhosted.org/packages/58/a2/bb081bab032533a855d44de1d56f8e8426114ff1ba5d1f07a438a0a654f8/idna-3.20-py3-none-any.whl", hash = "sha256:ab7ae7122974553370f0bdb919e1a960b2cd1bc1ef0276416d896db81c14582c", size = 69583, upload-time = "2026-09-17T14:11:03.168Z" },
118
+ ]
119
+
120
+ [[package]]
121
+ name = "iniconfig"
122
+ version = "2.3.1"
123
+ source = { registry = "https://pypi.org/simple" }
124
+ sdist = { url = "https://files.pythonhosted.org/packages/01/e1/2069291243c926a2ff1cd706c7f3eeb9b62144bf60f77c9fb9ff2fb26bd3/iniconfig-2.3.1.tar.gz", hash = "sha256:67f4b9c50da0dedf52af349e7749a80a9057a5031199791b906c3bb3ae878960", size = 21209, upload-time = "2026-10-06T22:48:38.076Z" }
125
+ wheels = [
126
+ { url = "https://files.pythonhosted.org/packages/56/43/4ca9e49d27a1fcf6bece6f6aec0ea46bb9112489b93d4b688fb415457bdb/iniconfig-2.3.1-py3-none-any.whl", hash = "sha256:9121e2c1fdb355232495be3194c8dfe87ccc2d5dee45947b78e68f499790d7a7", size = 7552, upload-time = "2026-10-06T22:48:36.959Z" },
127
+ ]
128
+
129
+ [[package]]
130
+ name = "nodeenv"
131
+ version = "1.12.0"
132
+ source = { registry = "https://pypi.org/simple" }
133
+ sdist = { url = "https://files.pythonhosted.org/packages/e6/99/d27cfc9518f49e4cbc25c683ec7cf8704a9d31311341c291c0e78ddf791b/nodeenv-1.12.0.tar.gz", hash = "sha256:4ea7f88339310afebc3253f2c7a91b94bacf97d73a36a5c108962abdfaca501e", size = 131292, upload-time = "2026-10-31T19:03:18.847Z" }
134
+ wheels = [
135
+ { url = "https://files.pythonhosted.org/packages/2d/6a/8a9ac7d5e2f7cf53c459bfef90ebc17a2f8cd54b665af96799d4c534840e/nodeenv-1.12.0-py3-none-any.whl", hash = "sha256:80644d65c10cc2be12e3e4b54b3367ff288c7ad24ae75c2dcc65454fc7449d4d", size = 39442, upload-time = "2026-10-31T19:03:17.427Z" },
136
+ ]
137
+
138
+ [[package]]
139
+ name = "packaging"
140
+ version = "26.4"
141
+ source = { registry = "https://pypi.org/simple" }
142
+ sdist = { url = "https://files.pythonhosted.org/packages/c3/75/ffb1dc0ed12352139fb4ca0e3fde4325a23e3d0f3f40efe89717bc4f557b/packaging-26.4.tar.gz", hash = "sha256:c4b671c41ddb9bf26e543c37723610d28fb6bf7affc4da17cf048d419d2c062a", size = 355877, upload-time = "2026-11-23T21:44:11.152Z" }
143
+ wheels = [
144
+ { url = "https://files.pythonhosted.org/packages/ba/7b/5504f91c9c2733f693d7759e50ede5d27119d4da7e5836c46d3b5ff81d56/packaging-26.4-py3-none-any.whl", hash = "sha256:81383611a09c1bc0b08b76e0fd5829d7c6824c65b27a6aee339da133f4233ea2", size = 140049, upload-time = "2026-11-23T21:44:09.531Z" },
145
+ ]
146
+
147
+ [[package]]
148
+ name = "pluggy"
149
+ version = "1.7.0"
150
+ source = { registry = "https://pypi.org/simple" }
151
+ sdist = { url = "https://files.pythonhosted.org/packages/bf/db/7fc19e6f2dc92a966727031389fc2e08b558f0f25eb7403c1119ad4713cd/pluggy-1.7.0.tar.gz", hash = "sha256:d1eaa46ebb595891b860ab086b4d09c8588af65ebd4361b8e8f4bb8920b90ba8", size = 123304, upload-time = "2026-10-15T09:50:58.343Z" }
152
+ wheels = [
153
+ { url = "https://files.pythonhosted.org/packages/40/9e/2b38731e0fc536806f16490e1a12d7f0dc2a1235aa8cc07bcc75416a7daa/pluggy-1.7.0-py3-none-any.whl", hash = "sha256:7dd7b0d8832ba3cb632c306926ded123429211b83641b35dc5c41ad2d34f9bec", size = 27082, upload-time = "2026-10-15T09:50:56.808Z" },
154
+ ]
155
+
156
+ [[package]]
157
+ name = "pyright"
158
+ version = "1.1.400"
159
+ source = { registry = "https://pypi.org/simple" }
160
+ dependencies = [
161
+ { name = "nodeenv" },
162
+ { name = "typing-extensions" },
163
+ ]
164
+ sdist = { url = "https://files.pythonhosted.org/packages/6c/cb/c306618a02d0ee8aed5fb8d0fe0ecfed0dbf075f71468f03a30b5f4e1fe0/pyright-1.1.400.tar.gz", hash = "sha256:b8a3ba40481aa47ba08ffb3228e821d22f7d391f83609211335858bf05686bdb", size = 3846546, upload-time = "2025-04-24T12:55:18.907Z" }
165
+ wheels = [
166
+ { url = "https://files.pythonhosted.org/packages/c8/a5/5d285e4932cf149c90e3c425610c5efaea005475d5f96f1bfdb452956c62/pyright-1.1.400-py3-none-any.whl", hash = "sha256:c80d04f98b5a4358ad3a35e241dbf2a408eee33a40779df365644f8054d2517e", size = 5563460, upload-time = "2025-04-24T12:55:17.002Z" },
167
+ ]
168
+
169
+ [[package]]
170
+ name = "pytest"
171
+ version = "8.3.5"
172
+ source = { registry = "https://pypi.org/simple" }
173
+ dependencies = [
174
+ { name = "colorama", marker = "sys_platform == 'win32'" },
175
+ { name = "exceptiongroup", marker = "python_full_version < '3.11'" },
176
+ { name = "iniconfig" },
177
+ { name = "packaging" },
178
+ { name = "pluggy" },
179
+ { name = "tomli", marker = "python_full_version < '3.11'" },
180
+ ]
181
+ sdist = { url = "https://files.pythonhosted.org/packages/ae/3c/c9d525a414d506893f0cd8a8d0de7706446213181570cdbd766691164e40/pytest-8.3.5.tar.gz", hash = "sha256:f4efe70cc14e511565ac476b57c279e12a855b11f48f212af1080ef2263d3845", size = 1450891, upload-time = "2025-03-02T12:54:54.503Z" }
182
+ wheels = [
183
+ { url = "https://files.pythonhosted.org/packages/30/3d/64ad57c803f1fa1e963a7946b6e0fea4a70df53c1a7fed304586539c2bac/pytest-8.3.5-py3-none-any.whl", hash = "sha256:c69214aa47deac29fad6c2a4f590b9c4a9fdb16a403176fe154b79c0b4d4d820", size = 343634, upload-time = "2025-03-02T12:54:52.069Z" },
184
+ ]
185
+
186
+ [[package]]
187
+ name = "ruff"
188
+ version = "0.11.10"
189
+ source = { registry = "https://pypi.org/simple" }
190
+ sdist = { url = "https://files.pythonhosted.org/packages/e8/4c/4a3c5a97faaae6b428b336dcca81d03ad04779f8072c267ad2bd860126bf/ruff-0.11.10.tar.gz", hash = "sha256:d522fb204b4959909ecac47da02830daec102eeb100fb50ea9554818d47a5fa6", size = 4165632, upload-time = "2025-05-15T14:08:56.76Z" }
191
+ wheels = [
192
+ { url = "https://files.pythonhosted.org/packages/2f/9f/596c628f8824a2ce4cd12b0f0b4c0629a62dfffc5d0f742c19a1d71be108/ruff-0.11.10-py3-none-linux_armv6l.whl", hash = "sha256:859a7bfa7bc8888abbea31ef8a2b411714e6a80f0d173c2a82f9041ed6b50f58", size = 10316243, upload-time = "2025-05-15T14:08:12.884Z" },
193
+ { url = "https://files.pythonhosted.org/packages/3c/38/c1e0b77ab58b426f8c332c1d1d3432d9fc9a9ea622806e208220cb133c9e/ruff-0.11.10-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:968220a57e09ea5e4fd48ed1c646419961a0570727c7e069842edd018ee8afed", size = 11083636, upload-time = "2025-05-15T14:08:16.551Z" },
194
+ { url = "https://files.pythonhosted.org/packages/23/41/b75e15961d6047d7fe1b13886e56e8413be8467a4e1be0a07f3b303cd65a/ruff-0.11.10-py3-none-macosx_11_0_arm64.whl", hash = "sha256:1067245bad978e7aa7b22f67113ecc6eb241dca0d9b696144256c3a879663bca", size = 10441624, upload-time = "2025-05-15T14:08:19.032Z" },
195
+ { url = "https://files.pythonhosted.org/packages/b6/2c/e396b6703f131406db1811ea3d746f29d91b41bbd43ad572fea30da1435d/ruff-0.11.10-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f4854fd09c7aed5b1590e996a81aeff0c9ff51378b084eb5a0b9cd9518e6cff2", size = 10624358, upload-time = "2025-05-15T14:08:21.542Z" },
196
+ { url = "https://files.pythonhosted.org/packages/bd/8c/ee6cca8bdaf0f9a3704796022851a33cd37d1340bceaf4f6e991eb164e2e/ruff-0.11.10-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:8b4564e9f99168c0f9195a0fd5fa5928004b33b377137f978055e40008a082c5", size = 10176850, upload-time = "2025-05-15T14:08:23.682Z" },
197
+ { url = "https://files.pythonhosted.org/packages/e9/ce/4e27e131a434321b3b7c66512c3ee7505b446eb1c8a80777c023f7e876e6/ruff-0.11.10-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:5b6a9cc5b62c03cc1fea0044ed8576379dbaf751d5503d718c973d5418483641", size = 11759787, upload-time = "2025-05-15T14:08:25.733Z" },
198
+ { url = "https://files.pythonhosted.org/packages/58/de/1e2e77fc72adc7cf5b5123fd04a59ed329651d3eab9825674a9e640b100b/ruff-0.11.10-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:607ecbb6f03e44c9e0a93aedacb17b4eb4f3563d00e8b474298a201622677947", size = 12430479, upload-time = "2025-05-15T14:08:28.013Z" },
199
+ { url = "https://files.pythonhosted.org/packages/07/ed/af0f2340f33b70d50121628ef175523cc4c37619e98d98748c85764c8d88/ruff-0.11.10-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:7b3a522fa389402cd2137df9ddefe848f727250535c70dafa840badffb56b7a4", size = 11919760, upload-time = "2025-05-15T14:08:30.956Z" },
200
+ { url = "https://files.pythonhosted.org/packages/24/09/d7b3d3226d535cb89234390f418d10e00a157b6c4a06dfbe723e9322cb7d/ruff-0.11.10-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2f071b0deed7e9245d5820dac235cbdd4ef99d7b12ff04c330a241ad3534319f", size = 14041747, upload-time = "2025-05-15T14:08:33.297Z" },
201
+ { url = "https://files.pythonhosted.org/packages/62/b3/a63b4e91850e3f47f78795e6630ee9266cb6963de8f0191600289c2bb8f4/ruff-0.11.10-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4a60e3a0a617eafba1f2e4186d827759d65348fa53708ca547e384db28406a0b", size = 11550657, upload-time = "2025-05-15T14:08:35.639Z" },
202
+ { url = "https://files.pythonhosted.org/packages/46/63/a4f95c241d79402ccdbdb1d823d156c89fbb36ebfc4289dce092e6c0aa8f/ruff-0.11.10-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:da8ec977eaa4b7bf75470fb575bea2cb41a0e07c7ea9d5a0a97d13dbca697bf2", size = 10489671, upload-time = "2025-05-15T14:08:38.437Z" },
203
+ { url = "https://files.pythonhosted.org/packages/6a/9b/c2238bfebf1e473495659c523d50b1685258b6345d5ab0b418ca3f010cd7/ruff-0.11.10-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:ddf8967e08227d1bd95cc0851ef80d2ad9c7c0c5aab1eba31db49cf0a7b99523", size = 10160135, upload-time = "2025-05-15T14:08:41.247Z" },
204
+ { url = "https://files.pythonhosted.org/packages/ba/ef/ba7251dd15206688dbfba7d413c0312e94df3b31b08f5d695580b755a899/ruff-0.11.10-py3-none-musllinux_1_2_i686.whl", hash = "sha256:5a94acf798a82db188f6f36575d80609072b032105d114b0f98661e1679c9125", size = 11170179, upload-time = "2025-05-15T14:08:43.762Z" },
205
+ { url = "https://files.pythonhosted.org/packages/73/9f/5c336717293203ba275dbfa2ea16e49b29a9fd9a0ea8b6febfc17e133577/ruff-0.11.10-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:3afead355f1d16d95630df28d4ba17fb2cb9c8dfac8d21ced14984121f639bad", size = 11626021, upload-time = "2025-05-15T14:08:46.451Z" },
206
+ { url = "https://files.pythonhosted.org/packages/d9/2b/162fa86d2639076667c9aa59196c020dc6d7023ac8f342416c2f5ec4bda0/ruff-0.11.10-py3-none-win32.whl", hash = "sha256:dc061a98d32a97211af7e7f3fa1d4ca2fcf919fb96c28f39551f35fc55bdbc19", size = 10494958, upload-time = "2025-05-15T14:08:49.601Z" },
207
+ { url = "https://files.pythonhosted.org/packages/24/f3/66643d8f32f50a4b0d09a4832b7d919145ee2b944d43e604fbd7c144d175/ruff-0.11.10-py3-none-win_amd64.whl", hash = "sha256:5cc725fbb4d25b0f185cb42df07ab6b76c4489b4bfb740a175f3a59c70e8a224", size = 11650285, upload-time = "2025-05-15T14:08:52.392Z" },
208
+ { url = "https://files.pythonhosted.org/packages/95/3a/2e8704d19f376c799748ff9cb041225c1d59f3e7711bc5596c8cfdc24925/ruff-0.11.10-py3-none-win_arm64.whl", hash = "sha256:ef69637b35fb8b210743926778d0e45e1bffa850a7c61e428c6b971549b5f5d1", size = 10765278, upload-time = "2025-05-15T14:08:54.56Z" },
209
+ ]
210
+
211
+ [[package]]
212
+ name = "tomli"
213
+ version = "2.5.0"
214
+ source = { registry = "https://pypi.org/simple" }
215
+ sdist = { url = "https://files.pythonhosted.org/packages/b0/78/9ad63712633ed3ab5cc1a648d863d7e7da371e9425e209555a0fe711b695/tomli-2.5.0.tar.gz", hash = "sha256:264507556cd8b8c8e7c6ee037cdf443a463f03f4c958e57195e3d369711b8ff6", size = 17662, upload-time = "2026-10-07T12:23:37.892Z" }
216
+ wheels = [
217
+ { url = "https://files.pythonhosted.org/packages/22/a6/ab99b60ee52acd949684febabc3005d0045d0f66bebd9cdebd67372d26dd/tomli-2.5.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:c4dc1c1781f2f716de763d1e9a7b34c6a894e167e291c7c5d16c72f7a9538545", size = 163901, upload-time = "2026-10-07T12:22:15.601Z" },
218
+ { url = "https://files.pythonhosted.org/packages/bc/00/ee01b7ed4579180fff07142d290257f25ba786f23f3ec6005f620933c2f5/tomli-2.5.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:eff8babca5a7999bc137acbc7482a8b7e17ffca5075ab41f5d770ab408c7bfef", size = 163756, upload-time = "2026-10-07T12:22:16.957Z" },
219
+ { url = "https://files.pythonhosted.org/packages/72/c2/4efebf65372f6583185f79799312109dddb61102d47e5c33dcfd1a297aca/tomli-2.5.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:86665cee9c4835b7a7f1e8ec2c719b5258d4dc782887aded5a8ae7352a96843b", size = 268038, upload-time = "2026-10-07T12:22:18.135Z" },
220
+ { url = "https://files.pythonhosted.org/packages/53/07/5850468e925d898abb36038666f9c333a94d2a223e802a8ba5b6d319d23f/tomli-2.5.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d7e369fd63331746182360977b1892bfc215476a30d61612d732425311639f56", size = 276422, upload-time = "2026-10-07T12:22:19.567Z" },
221
+ { url = "https://files.pythonhosted.org/packages/b4/87/f293984cdcf83c054196d4fd3dad44fc68ae55b4b8c44bc76cef360c3150/tomli-2.5.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:7ad1ea345759240d6463efa0ed1c704402752e49aa21476620738d74d72d8aa1", size = 272616, upload-time = "2026-10-07T12:22:20.794Z" },
222
+ { url = "https://files.pythonhosted.org/packages/ce/ce/db582886b3c1219d3fec93ebd669332482e5aee7a91e0f7838d84f2d1759/tomli-2.5.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:96243987194634bd411066ce40c952e108f86af04db533ecd8ac3ff2a85b1885", size = 276593, upload-time = "2026-10-07T12:22:22.12Z" },
223
+ { url = "https://files.pythonhosted.org/packages/bf/72/7619b87dea4261fc27dd7b54c4461c129c1f7d9bb7ba3aec89c797a431b8/tomli-2.5.0-cp311-cp311-win32.whl", hash = "sha256:610b27d99f28ec5f191c7064a48f3ddb179a1fe6ca73d571483ae859f57b605e", size = 101830, upload-time = "2026-10-07T12:22:23.651Z" },
224
+ { url = "https://files.pythonhosted.org/packages/1e/74/220106da34502304b6751a2a9b8a9fbca6c3fd47e737a2e2e3da7c61c9db/tomli-2.5.0-cp311-cp311-win_amd64.whl", hash = "sha256:c804ae44fe7b4bab5da295e4f980a1ff04670bca9d23fe0a4e887e08ebd741a8", size = 112742, upload-time = "2026-10-07T12:22:24.972Z" },
225
+ { url = "https://files.pythonhosted.org/packages/27/99/7d9c8b41837a7773613e169504147375c157a290167aa59ad74a085f521f/tomli-2.5.0-cp311-cp311-win_arm64.whl", hash = "sha256:cfac177ebd6236003846ea339981f71457cb6eb748f23381eb257e45092e3980", size = 109332, upload-time = "2026-10-07T12:22:26.117Z" },
226
+ { url = "https://files.pythonhosted.org/packages/52/ed/7baa86f87493646a594de388c7c1c40a39dd0461f7e9c0359cbeefc91fe8/tomli-2.5.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:1f4a40d03fb9f63424f0979855bdeaf44dd7696b8d59501822c10ed30ba532df", size = 164854, upload-time = "2026-10-07T12:22:27.444Z" },
227
+ { url = "https://files.pythonhosted.org/packages/a5/b1/44c0341f2224397855723c7a8a39f718ea6fcbcc3dacc66e5aeca0f334e3/tomli-2.5.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:9ebf8d19b17bd0daeb7b7dec81a946a439b753942fd0210d6e96c532249eea6b", size = 164074, upload-time = "2026-10-07T12:22:28.679Z" },
228
+ { url = "https://files.pythonhosted.org/packages/23/04/e2d5b7d3fba47adedb23de616c16d428ea076c79a3d8e1d95d649ffe197e/tomli-2.5.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:bf0b5e8e0f68ebb494356e577c06c139161efd8d3b9050f93b39b7c26cc54ff0", size = 274274, upload-time = "2026-10-07T12:22:29.804Z" },
229
+ { url = "https://files.pythonhosted.org/packages/43/90/6090e706ff27a6f89f4a40578e3324b95c3cd8c4150868aabf33a8f414c3/tomli-2.5.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6cf74416bdc94ae458b14e37286c1073081850ac8459a00d0c5efef5d44294c6", size = 286435, upload-time = "2026-10-07T12:22:31.297Z" },
230
+ { url = "https://files.pythonhosted.org/packages/0a/9e/a2c40768df16c408f22430afb0a73e9d7e5f79c950884954649d1146b74d/tomli-2.5.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:61ea1ebe1e55a34ea8199cc8dbff398d35027b82271c8ac4802fd3a1fd5b1bcc", size = 278119, upload-time = "2026-10-07T12:22:32.601Z" },
231
+ { url = "https://files.pythonhosted.org/packages/12/25/3c0cb485b98e9cfac495629b1c93c87ccf0b72fbe9d2689fd8fe62c6d5a3/tomli-2.5.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:ed53f7e89bb04f6d9e8e7799112360b0c4d5cbff067de0814c98c37c39b920f7", size = 286177, upload-time = "2026-10-07T12:22:33.745Z" },
232
+ { url = "https://files.pythonhosted.org/packages/77/8b/0144c65f0e37e51c18d04ae15c21b19431c165002d0131fe9aa8b0b8b1e8/tomli-2.5.0-cp312-cp312-win32.whl", hash = "sha256:e7ad033e27a516a233bea839cdb77b80146facb3b4f40bf02cd0cac165cdd5c2", size = 102760, upload-time = "2026-10-07T12:22:34.887Z" },
233
+ { url = "https://files.pythonhosted.org/packages/de/32/5d6d8f42fc9a05fce69354e00ff256484192f5f2fc9a2165718fa0de61ec/tomli-2.5.0-cp312-cp312-win_amd64.whl", hash = "sha256:bd05de8c1698f8413dd7d869492693a0bf2211543b787ac78cd5e7536af1a6d7", size = 112722, upload-time = "2026-10-07T12:22:36.162Z" },
234
+ { url = "https://files.pythonhosted.org/packages/30/65/df18032218db0fb9b769fb23c8039a051f15c811993995ea04c350273a32/tomli-2.5.0-cp312-cp312-win_arm64.whl", hash = "sha256:069435bd5480429b98c5e5afb02ab21c219b6f0064680671c6dc0d46817346ea", size = 109534, upload-time = "2026-10-07T12:22:37.296Z" },
235
+ { url = "https://files.pythonhosted.org/packages/42/e5/51736d70da209350969e15aca5c5ab6e2ce1ea87a0a892a6c13aec172a86/tomli-2.5.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:943276cf269e0071948d9ff697159c1735e623c1151d88abb09b74659ef0cbea", size = 163328, upload-time = "2026-10-07T12:22:38.373Z" },
236
+ { url = "https://files.pythonhosted.org/packages/ec/55/086f80dab4ab497602644274e6dea7ec5dd0b4e262e443a8ad3bb7edee2d/tomli-2.5.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:463b16086865b97facd8d0b3fb4cb7c544e3f58d2a69dc3113d6db9653fdb043", size = 162246, upload-time = "2026-10-07T12:22:39.673Z" },
237
+ { url = "https://files.pythonhosted.org/packages/aa/eb/3ecc94459f3635c92321f4e7bde571323fdb2267c50e19e3188a281eae3b/tomli-2.5.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1245a6638fc4bb0a60af38a7d45413db34a13842027c77597c712c998c62fdf0", size = 272655, upload-time = "2026-10-07T12:22:41.08Z" },
238
+ { url = "https://files.pythonhosted.org/packages/c0/d7/494fd1f0c37a621f1ad9975c2efadb523e8101f144ed6edb2e7fe64738f2/tomli-2.5.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:5d8bac3d603c97e6854424e5b2b5b741bdbde387e09f162fb0446812b4a8362b", size = 283595, upload-time = "2026-10-07T12:22:42.222Z" },
239
+ { url = "https://files.pythonhosted.org/packages/70/51/bb8d62b1317e6640866f6949b2d5855e5300f2c99d46de1cd245570bba65/tomli-2.5.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:21e4cae4114aba25aa0d4f85cdf486d290fb35c0954d7bba536248da64d43066", size = 276253, upload-time = "2026-10-07T12:22:43.625Z" },
240
+ { url = "https://files.pythonhosted.org/packages/66/f4/f46bd7f0763cd47de2db697dca9257c6a4adfd1a93b018cc75c8190ed5a8/tomli-2.5.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:bbaefc84548d754be821bba7c4141c4787dda182f9e77f2f87b71213529efa7b", size = 283582, upload-time = "2026-10-07T12:22:44.983Z" },
241
+ { url = "https://files.pythonhosted.org/packages/ac/03/70f2bcb2923a6db37818d917e124270a7f4cfd38ea576f5aa753a91c0ef5/tomli-2.5.0-cp313-cp313-win32.whl", hash = "sha256:abdbf6313b8d9efe157edeb7ab6eae4de064b1300ad31abf73755154b30abe68", size = 102628, upload-time = "2026-10-07T12:22:46.508Z" },
242
+ { url = "https://files.pythonhosted.org/packages/dc/98/d52024bb5b0ff68b4f0d276d867f634c84a67319a7e9f6b7708a37742333/tomli-2.5.0-cp313-cp313-win_amd64.whl", hash = "sha256:fd4dc129784e0c5335bd4e61dfcc4487499a013419e655cf2da1d091b7e0efdc", size = 113301, upload-time = "2026-10-07T12:22:47.647Z" },
243
+ { url = "https://files.pythonhosted.org/packages/6f/f2/540db3a70572a8c23a28aba3e9c358ce0ffffbafc990905c1343aa265b31/tomli-2.5.0-cp313-cp313-win_arm64.whl", hash = "sha256:69491c143d2fe063046e0301e62a810bed338fa4d1ce0fd870c27dc1e09b0d84", size = 109744, upload-time = "2026-10-07T12:22:48.925Z" },
244
+ { url = "https://files.pythonhosted.org/packages/e4/49/caf6b307766eb9567664a8707e9d6be5fcc0e8903f18781c6677a60d80c7/tomli-2.5.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:d3182ee2d887e507bd67319a0a61105d1dd33facc111329559a233b772c1a105", size = 162899, upload-time = "2026-10-07T12:22:50.088Z" },
245
+ { url = "https://files.pythonhosted.org/packages/d3/c8/68cfce773a2733a49c74f99d627fb461bd990756860099eac25617889585/tomli-2.5.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:521345fd1f19d45b8df87657aaa38b6f2ca3800059fadf428e7ebf479a383646", size = 162080, upload-time = "2026-10-07T12:22:51.558Z" },
246
+ { url = "https://files.pythonhosted.org/packages/7e/b2/e5bb8651fdad593f670501a7d718b1a7f73f064d44dea15e04c04dfef45d/tomli-2.5.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6e95c7614e705bfe2b04b27aa124adec59752d15813df37e2156747cab3a006b", size = 273380, upload-time = "2026-10-07T12:22:52.918Z" },
247
+ { url = "https://files.pythonhosted.org/packages/8d/d2/9e2d7f8b1dfe0e2b34c245986ebd55c4c553ea4ce6c47c443b332673253f/tomli-2.5.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:7ac2027d37c3afbdf4bdd377f2676f6f1d2122a5be1f1137b49dced590b37e75", size = 283228, upload-time = "2026-10-07T12:22:54.173Z" },
248
+ { url = "https://files.pythonhosted.org/packages/ba/df/ec7b876b7b1a2718bd74a3743c076fff565b04029ba33e8f61fac262739f/tomli-2.5.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:c414be4ed9d3cac80c42e348fa5a956117d1a48227f48026e31f59cb4a7671eb", size = 277189, upload-time = "2026-10-07T12:22:55.342Z" },
249
+ { url = "https://files.pythonhosted.org/packages/7d/7b/e192d9eed0b9cb80da799f4d77052297fb9a2c3cc9b19f571f56ea88add6/tomli-2.5.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:9b03d7dc168353b4132965bde20feceabaa470e570c6f59660dfae59b1f9eeb3", size = 283632, upload-time = "2026-10-07T12:22:56.735Z" },
250
+ { url = "https://files.pythonhosted.org/packages/84/50/ff94454e75461d75623e47401ed323d65c10aab8fe9033242c20cd2fdf32/tomli-2.5.0-cp314-cp314-win32.whl", hash = "sha256:6f041843c4d3a37245c0c056fd955b186bf8b1fb85690cbe40b81230891dc34b", size = 103535, upload-time = "2026-10-07T12:22:58.084Z" },
251
+ { url = "https://files.pythonhosted.org/packages/54/0b/bdacf05f963bd6026ebf6eeb0beda847d1d60e03e440725c64a4e08a0afd/tomli-2.5.0-cp314-cp314-win_amd64.whl", hash = "sha256:f4b653094e18f9031102d3a1da5c729c8f222d85225b18037dac621695e46e1a", size = 114621, upload-time = "2026-10-07T12:22:59.2Z" },
252
+ { url = "https://files.pythonhosted.org/packages/61/99/53f438fa6ae4f9d4ed0ddde3e7242b3bdc34b48c8f9948b72b9e9b127676/tomli-2.5.0-cp314-cp314-win_arm64.whl", hash = "sha256:3f89d10c1ff6a38d992c27fc8a4816af71a909e08a40ec66934240b1e74347c3", size = 111572, upload-time = "2026-10-07T12:23:00.479Z" },
253
+ { url = "https://files.pythonhosted.org/packages/b9/20/1f88f19427d380a40e90a770e087489eaafe4aeee070ae88ed2bbec00acd/tomli-2.5.0-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:e9e15b4a6c7dd6b85b5fbab29488a73f1f70de516942308daa266bf0e0aeb0d4", size = 171814, upload-time = "2026-10-07T12:23:01.914Z" },
254
+ { url = "https://files.pythonhosted.org/packages/d0/56/cbe5079c9f9a54b9b3e27fc82f08f3cb36edee75561679f53d2380c801d6/tomli-2.5.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:e12bbcd32897272fb05929110362ae9ff4c1b9bb26bd9e971e71dcd3275b4c3d", size = 171324, upload-time = "2026-10-07T12:23:03.18Z" },
255
+ { url = "https://files.pythonhosted.org/packages/2b/30/1d53fd3b0f1cb3ba542e345ec32c26aefdddc4e829e4f3429af8a4f27782/tomli-2.5.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:20aa36de8f2cf87237143bc1fa1aae8d6612c09118f4da21c6a684db5dd1f6f9", size = 297441, upload-time = "2026-10-07T12:23:04.345Z" },
256
+ { url = "https://files.pythonhosted.org/packages/66/d9/0800acb6a111686f764c1b91ef15cc42a20a66a46013bb42220f1d2c61c1/tomli-2.5.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:22185fad8a1e622f064e78008018a0dd3323550dcb479cb7a1d296888d74024f", size = 307476, upload-time = "2026-10-07T12:23:05.671Z" },
257
+ { url = "https://files.pythonhosted.org/packages/e8/63/30a8f3cd51b5bec37f04744bad0b0dc6160df84aad4f27b0e9283d66f221/tomli-2.5.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:984012f71908165449a951de2050d52f276bfe3aa5d5f570f63ddad814370374", size = 296113, upload-time = "2026-10-07T12:23:07.202Z" },
258
+ { url = "https://files.pythonhosted.org/packages/ab/18/0b9ffc597e69c5a1e20a7823cb60d54b39a9f54e91edcb8574f022186758/tomli-2.5.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:f79203b3965b4000e91808aaa7c040206093f2b8bf86f455982f2274c9ccf442", size = 307725, upload-time = "2026-10-07T12:23:08.508Z" },
259
+ { url = "https://files.pythonhosted.org/packages/ab/c7/18f8baae0b5607a60e8e19b4a7fedee43a8ff6458e3896dcbbadeeac9c22/tomli-2.5.0-cp314-cp314t-win32.whl", hash = "sha256:91294a9fb94a75542f6e46e4a2ae709bd8d9b51134098cae5cf3bea5478b6d03", size = 108546, upload-time = "2026-10-07T12:23:09.956Z" },
260
+ { url = "https://files.pythonhosted.org/packages/72/34/4cca9739254130627bde87500b3f2b512154fe2f278efa7e2a5e10ad4bcb/tomli-2.5.0-cp314-cp314t-win_amd64.whl", hash = "sha256:f15e3e0b835a6d68b10c86bf80a3149780498d6911c93c3ffd1861d19f9200f1", size = 117814, upload-time = "2026-10-07T12:23:11.486Z" },
261
+ { url = "https://files.pythonhosted.org/packages/7d/fb/afa530d47dd80a78fce43beac6bc6e00f84558eafcffbc6f37b21e80d056/tomli-2.5.0-cp314-cp314t-win_arm64.whl", hash = "sha256:6664b7ae7af7294256c53960a6103077f4914cec8ff98479c352f622c6f6b2f0", size = 115188, upload-time = "2026-10-07T12:23:12.728Z" },
262
+ { url = "https://files.pythonhosted.org/packages/66/98/316fdc00f8c0939e6fe50461dd343c162d3ad51d1286eb25b7db54361d50/tomli-2.5.0-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:a525685c2f97da40762b8695eb7aa0af4c8344ca1905c73e4e29cb04d34607dc", size = 162775, upload-time = "2026-10-07T12:23:13.941Z" },
263
+ { url = "https://files.pythonhosted.org/packages/c5/22/7b10fa5bb01c9539f53f69b619361b19350acc73657772ea7ac70ba309a8/tomli-2.5.0-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:9dbb18c1cfb2f6517942fc9314437f66aa06d94436ffb1f06102ef3572f35276", size = 161406, upload-time = "2026-10-07T12:23:15.215Z" },
264
+ { url = "https://files.pythonhosted.org/packages/9c/e7/1a069d86dfd20f1f84f71c63faed9f83c1d890bc06c27d82dc7d888fb573/tomli-2.5.0-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:752e8b1aa6a4367ef8bf6a1a1e005540f7ed055ba36d7193796812ca5404eb52", size = 273855, upload-time = "2026-10-07T12:23:16.471Z" },
265
+ { url = "https://files.pythonhosted.org/packages/ae/83/d1ef43d1687d092ab9c235455c76e6e709483b346b056f086095c7c263a5/tomli-2.5.0-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c47300f9bf791808f77d82747691c4bb09cb14bdf3060cca99b42cdc4361d5a7", size = 284910, upload-time = "2026-10-07T12:23:18.166Z" },
266
+ { url = "https://files.pythonhosted.org/packages/cc/05/f4d9cf7de61822ece0c3873f30d291e324911c71a378b8bfe5ced13fd9f5/tomli-2.5.0-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:19b0dd8749f4ea2f112c5fcfb3c5248390c899d7e2e173f1d91abee1fa0ff391", size = 277723, upload-time = "2026-10-07T12:23:19.355Z" },
267
+ { url = "https://files.pythonhosted.org/packages/42/28/78262493141fa543151cf005760c3cb01d09fc28a11f993c05109902cb8c/tomli-2.5.0-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:57b1c3b01fab802e2899bc3d168dca320e14165e2fd9fd584760fb4ca5826859", size = 285115, upload-time = "2026-10-07T12:23:20.698Z" },
268
+ { url = "https://files.pythonhosted.org/packages/1a/b9/e1dab9a30bcb677b5cc5cee810609cfd64f24306a3055767dd3fda00b1e0/tomli-2.5.0-cp315-cp315-win32.whl", hash = "sha256:667e521b37a6c5ccaa044202c235b530f90177ffe2cd4a64ecc213c7dd535feb", size = 103475, upload-time = "2026-10-07T12:23:21.941Z" },
269
+ { url = "https://files.pythonhosted.org/packages/4c/bd/31a3790c11d6ea95fcf5e6022ac0f8d0543c9b61120b730fc481bd43d3b4/tomli-2.5.0-cp315-cp315-win_amd64.whl", hash = "sha256:d747252933c8a65ef6bd8da0fbb7ce28a90eb6119d8cd00772cd528aa07b68d5", size = 114589, upload-time = "2026-10-07T12:23:23.098Z" },
270
+ { url = "https://files.pythonhosted.org/packages/47/a2/4f6310fa699364f0e3af7ee3af88dddd9af066d33e716a0265bbe2b3ea84/tomli-2.5.0-cp315-cp315-win_arm64.whl", hash = "sha256:75dbcde8751b0a960aa3de173aa5e894d590755c6d7758b7e774c06f1dc3cbdd", size = 111493, upload-time = "2026-10-07T12:23:24.233Z" },
271
+ { url = "https://files.pythonhosted.org/packages/68/14/00853f0b396d8971107ae1921bb5b322fdee1650d2f16bf06c20adb532e5/tomli-2.5.0-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:2419c2a189551987b59d80e63ec355671283336f41c6b9b89462df679c7d0c57", size = 171380, upload-time = "2026-10-07T12:23:25.512Z" },
272
+ { url = "https://files.pythonhosted.org/packages/89/ad/fa6949321dadee46b27363974fb197b94c911c3b0f7a5fd26d7dc18fc2a0/tomli-2.5.0-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:0dc598040da8d42cf20f0be588ed7004f46db12a0ac6c32e03a59dccedaaadcd", size = 170553, upload-time = "2026-10-07T12:23:26.855Z" },
273
+ { url = "https://files.pythonhosted.org/packages/53/aa/3056c919eb3e084df3752b2cf5f865dcc04af0b27dba2f66d7b28af4633a/tomli-2.5.0-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:49096930c8d886c9bbdab62d2d0d17ce823ddeea522309a190b36245d5b49e01", size = 294428, upload-time = "2026-10-07T12:23:28.132Z" },
274
+ { url = "https://files.pythonhosted.org/packages/96/b2/faeeb5d8769ea3832021d73e892c8391eae7b4b4f8b55a789127bd8b18a9/tomli-2.5.0-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b8ade5023067f99fe72b88accd30d0ea05a158e9e32a11f124e731ea9695313f", size = 304909, upload-time = "2026-10-07T12:23:29.381Z" },
275
+ { url = "https://files.pythonhosted.org/packages/f6/52/f094c09e73fb654b621716d019acb5d29bdfd1be01df80c281d552bda48d/tomli-2.5.0-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:b69564772b5c8f22ea5f498dff08cfa825045b4d4c4400529000bdf818aa3b2a", size = 293220, upload-time = "2026-10-07T12:23:30.608Z" },
276
+ { url = "https://files.pythonhosted.org/packages/86/f5/0c30541078ca4b505ce3bd76ed931facbfec524dd018535d691d1af0a6d2/tomli-2.5.0-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:8ff3a2ca028c7eee0c777f9a092038d0a594a9fa04e215f929a22c329e2cb142", size = 305705, upload-time = "2026-10-07T12:23:32.181Z" },
277
+ { url = "https://files.pythonhosted.org/packages/05/74/590e7d19d6a118fc5cc5704ff358e21d95b8573f6b9443b1519f29ca8825/tomli-2.5.0-cp315-cp315t-win32.whl", hash = "sha256:62fc1bc8eb03e3a9cadfca713d65614ed8e09d974a283295ffe3a831976b4dc5", size = 108432, upload-time = "2026-10-07T12:23:33.496Z" },
278
+ { url = "https://files.pythonhosted.org/packages/1c/b8/63a75cfb27a17c38550e44025d3a6e7be64516fd8608a3b75703bf37d81b/tomli-2.5.0-cp315-cp315t-win_amd64.whl", hash = "sha256:f3fcbc57b1791fa6cbe5d8434179d51de12be1a4811469529f47f6e7487a2571", size = 117281, upload-time = "2026-10-07T12:23:34.648Z" },
279
+ { url = "https://files.pythonhosted.org/packages/72/01/e8c1debb2173973372934c68fc8e46170ab60ef23ed4592dff4dec6e8993/tomli-2.5.0-cp315-cp315t-win_arm64.whl", hash = "sha256:d2ba24db8a9376921b5e87b4762b9adb0f3f1deaea68f2b8b0bb2c11efb9c3e7", size = 115069, upload-time = "2026-10-07T12:23:35.77Z" },
280
+ { url = "https://files.pythonhosted.org/packages/60/3f/3e3f8fd0919249b0200c80fbc4f9a1e70be19f9883da71dfb7f8b9ab8aca/tomli-2.5.0-py3-none-any.whl", hash = "sha256:32a7b79ac57a2e83670ce329ccf675798bc5a2094783a63676866b70503f2e2b", size = 14765, upload-time = "2026-10-07T12:23:36.875Z" },
281
+ ]
282
+
283
+ [[package]]
284
+ name = "typing-extensions"
285
+ version = "4.16.0"
286
+ source = { registry = "https://pypi.org/simple" }
287
+ sdist = { url = "https://files.pythonhosted.org/packages/f6/cc/6253133b5bb138fc3306cebfbda2c520f545d36b5be2c7255cc528bb45d6/typing_extensions-4.16.0.tar.gz", hash = "sha256:dc983d19a509c94dba722ee6abd33940f7c05a89e243c47e907eb4db6f1a43e5", size = 113555, upload-time = "2026-07-02T08:40:05.92Z" }
288
+ wheels = [
289
+ { url = "https://files.pythonhosted.org/packages/49/d3/b8441a820a491ddfc024b0b0cf0393375b75ea13866d9c66727e54c2fc80/typing_extensions-4.16.0-py3-none-any.whl", hash = "sha256:481caa481374e813c1b176ada14e97f1f67a4539ce9cfeb3f350d78d6370c2e8", size = 45571, upload-time = "2026-07-02T08:40:04.659Z" },
290
+ ]