scrapely-client-python 1.0.0__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 scrapely-client-python might be problematic. Click here for more details.

Files changed (65) hide show
  1. scrapely_client/__init__.py +30 -0
  2. scrapely_client/_charging.py +186 -0
  3. scrapely_client/_client_registry.py +136 -0
  4. scrapely_client/_consts.py +96 -0
  5. scrapely_client/_docs.py +37 -0
  6. scrapely_client/_literals.py +539 -0
  7. scrapely_client/_logging.py +180 -0
  8. scrapely_client/_models.py +4172 -0
  9. scrapely_client/_pagination.py +220 -0
  10. scrapely_client/_resource_clients/__init__.py +84 -0
  11. scrapely_client/_resource_clients/_resource_client.py +567 -0
  12. scrapely_client/_resource_clients/actor.py +1042 -0
  13. scrapely_client/_resource_clients/actor_collection.py +377 -0
  14. scrapely_client/_resource_clients/actor_env_var.py +154 -0
  15. scrapely_client/_resource_clients/actor_env_var_collection.py +165 -0
  16. scrapely_client/_resource_clients/actor_version.py +254 -0
  17. scrapely_client/_resource_clients/actor_version_collection.py +232 -0
  18. scrapely_client/_resource_clients/build.py +244 -0
  19. scrapely_client/_resource_clients/build_collection.py +164 -0
  20. scrapely_client/_resource_clients/dataset.py +1151 -0
  21. scrapely_client/_resource_clients/dataset_collection.py +244 -0
  22. scrapely_client/_resource_clients/key_value_store.py +906 -0
  23. scrapely_client/_resource_clients/key_value_store_collection.py +243 -0
  24. scrapely_client/_resource_clients/log.py +225 -0
  25. scrapely_client/_resource_clients/request_queue.py +1167 -0
  26. scrapely_client/_resource_clients/request_queue_collection.py +240 -0
  27. scrapely_client/_resource_clients/run.py +875 -0
  28. scrapely_client/_resource_clients/run_collection.py +226 -0
  29. scrapely_client/_resource_clients/schedule.py +243 -0
  30. scrapely_client/_resource_clients/schedule_collection.py +260 -0
  31. scrapely_client/_resource_clients/store_collection.py +242 -0
  32. scrapely_client/_resource_clients/task.py +793 -0
  33. scrapely_client/_resource_clients/task_collection.py +322 -0
  34. scrapely_client/_resource_clients/user.py +262 -0
  35. scrapely_client/_resource_clients/webhook.py +292 -0
  36. scrapely_client/_resource_clients/webhook_collection.py +281 -0
  37. scrapely_client/_resource_clients/webhook_dispatch.py +84 -0
  38. scrapely_client/_resource_clients/webhook_dispatch_collection.py +158 -0
  39. scrapely_client/_scrapely_client.py +837 -0
  40. scrapely_client/_statistics.py +29 -0
  41. scrapely_client/_status_message_watcher.py +197 -0
  42. scrapely_client/_streamed_log.py +250 -0
  43. scrapely_client/_typeddicts.py +408 -0
  44. scrapely_client/_utils/__init__.py +0 -0
  45. scrapely_client/_utils/crypto.py +87 -0
  46. scrapely_client/_utils/encoding.py +133 -0
  47. scrapely_client/_utils/errors.py +33 -0
  48. scrapely_client/_utils/http.py +137 -0
  49. scrapely_client/_utils/time.py +32 -0
  50. scrapely_client/_utils/try_import.py +61 -0
  51. scrapely_client/errors.py +190 -0
  52. scrapely_client/http_clients/__init__.py +10 -0
  53. scrapely_client/http_clients/_base.py +430 -0
  54. scrapely_client/http_clients/_impit.py +598 -0
  55. scrapely_client/http_compressors/__init__.py +18 -0
  56. scrapely_client/http_compressors/_base.py +25 -0
  57. scrapely_client/http_compressors/_brotli.py +38 -0
  58. scrapely_client/http_compressors/_gzip.py +38 -0
  59. scrapely_client/http_compressors/_resolve.py +38 -0
  60. scrapely_client/py.typed +0 -0
  61. scrapely_client/types.py +52 -0
  62. scrapely_client_python-1.0.0.dist-info/METADATA +244 -0
  63. scrapely_client_python-1.0.0.dist-info/RECORD +65 -0
  64. scrapely_client_python-1.0.0.dist-info/WHEEL +4 -0
  65. scrapely_client_python-1.0.0.dist-info/licenses/LICENSE +201 -0
@@ -0,0 +1,38 @@
1
+ from __future__ import annotations
2
+
3
+ import gzip
4
+
5
+ from scrapely_client.http_compressors._base import HttpCompressor
6
+
7
+
8
+ class GzipHttpCompressor(HttpCompressor):
9
+ """Compresses request bodies using gzip.
10
+
11
+ Uses the standard library `gzip` module. No extra dependencies required.
12
+ """
13
+
14
+ content_encoding = 'gzip'
15
+
16
+ _min_quality = 1
17
+ """Lowest valid quality (fastest, least compression)."""
18
+
19
+ _max_quality = 9
20
+ """Highest valid quality (slowest, best compression)."""
21
+
22
+ def __init__(self, *, quality: int = _max_quality) -> None:
23
+ """Initialize the gzip compressor.
24
+
25
+ Args:
26
+ quality: Compression level, from the fastest to the best compression.
27
+
28
+ Raises:
29
+ ValueError: If `quality` is out of the valid range.
30
+ """
31
+ if not self._min_quality <= quality <= self._max_quality:
32
+ raise ValueError(
33
+ f'gzip quality must be between {self._min_quality} and {self._max_quality}, got {quality}.'
34
+ )
35
+ self._quality = quality
36
+
37
+ def compress(self, data: bytes) -> bytes:
38
+ return gzip.compress(data, compresslevel=self._quality)
@@ -0,0 +1,38 @@
1
+ from __future__ import annotations
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from scrapely_client.http_compressors._base import HttpCompressor
6
+ from scrapely_client.http_compressors._gzip import GzipHttpCompressor
7
+
8
+ if TYPE_CHECKING:
9
+ from scrapely_client.types import HttpCompressionAlgorithm
10
+
11
+
12
+ def resolve_compressor(compression: HttpCompressionAlgorithm | HttpCompressor) -> HttpCompressor:
13
+ """Convert a compression string or `HttpCompressor` instance into a concrete `HttpCompressor`.
14
+
15
+ Args:
16
+ compression: A string literal naming an HTTP compression algorithm, or an `HttpCompressor` instance.
17
+
18
+ Returns:
19
+ A ready-to-use `HttpCompressor`.
20
+
21
+ Raises:
22
+ ImportError: If the requested algorithm needs an optional extra that is not installed.
23
+ ValueError: If `compression` is not a recognized compression algorithm.
24
+ """
25
+ if isinstance(compression, HttpCompressor):
26
+ return compression
27
+ if compression == 'gzip':
28
+ return GzipHttpCompressor()
29
+ if compression == 'brotli':
30
+ # The import is here so the ImportError is raised at call time,
31
+ # not at module import time, giving users a clear message.
32
+ from scrapely_client.http_compressors import BrotliHttpCompressor # noqa: PLC0415
33
+
34
+ return BrotliHttpCompressor()
35
+
36
+ # The backend supports also `deflate` and `identity` (no compression). One can build
37
+ # a custom compressor if needed.
38
+ raise ValueError(f'Unsupported compression algorithm: {compression!r}')
File without changes
@@ -0,0 +1,52 @@
1
+ from __future__ import annotations
2
+
3
+ from datetime import timedelta
4
+ from typing import Literal
5
+
6
+ from scrapely_client._models import WebhookCreate, WebhookRepresentation
7
+ from scrapely_client._typeddicts import (
8
+ WebhookCreateCamelDict,
9
+ WebhookCreateDict,
10
+ WebhookRepresentationCamelDict,
11
+ WebhookRepresentationDict,
12
+ )
13
+
14
+ HttpCompressionAlgorithm = Literal['brotli', 'gzip']
15
+ """Accepted string literals for the `compression` parameter on `ApifyClient` and `ApifyClientAsync`."""
16
+
17
+ Timeout = timedelta | Literal['no_timeout', 'short', 'medium', 'long']
18
+ """Type for the `timeout` parameter on resource client methods.
19
+
20
+ `'short'`, `'medium'`, and `'long'` are tier literals resolved by the HTTP client to configured values.
21
+ A `timedelta` overrides the timeout for this call, and `'no_timeout'` disables the timeout entirely.
22
+ """
23
+
24
+ WebhooksList = (
25
+ list[WebhookCreate]
26
+ | list[WebhookCreateDict]
27
+ | list[WebhookCreateCamelDict]
28
+ | list[WebhookRepresentation]
29
+ | list[WebhookRepresentationDict]
30
+ | list[WebhookRepresentationCamelDict]
31
+ )
32
+ """Type for the `webhooks` parameter on resource-client `start`/`call` methods and `from_webhooks`.
33
+
34
+ `WebhookRepresentation` / `WebhookRepresentationDict` / `WebhookRepresentationCamelDict` are the minimal ad-hoc
35
+ webhook shape (only `event_types` and `request_url` required). `WebhookCreate` / `WebhookCreateDict` /
36
+ `WebhookCreateCamelDict` are accepted so a persistent-webhook definition can be reused; their fields not relevant
37
+ to ad-hoc webhooks (e.g. `condition`) are ignored at runtime. The `*CamelDict` variants accept camelCase keys
38
+ matching the Scrapely API spelling.
39
+ """
40
+
41
+ JsonSerializable = dict[str, 'JsonSerializable'] | list['JsonSerializable'] | str | int | float | bool | None
42
+ """Recursive type for JSON-serializable values - primitives plus objects and arrays with JSON-serializable contents.
43
+
44
+ Based on the definition discussed in https://github.com/python/typing/issues/182.
45
+ """
46
+
47
+ __all__ = [
48
+ 'HttpCompressionAlgorithm',
49
+ 'JsonSerializable',
50
+ 'Timeout',
51
+ 'WebhooksList',
52
+ ]
@@ -0,0 +1,244 @@
1
+ Metadata-Version: 2.4
2
+ Name: scrapely-client-python
3
+ Version: 1.0.0
4
+ Summary: Scrapely API client for Python
5
+ Keywords: scrapely,api,client,automation,crawling,scraping
6
+ Author: Scrapely
7
+ License-Expression: Apache-2.0
8
+ License-File: LICENSE
9
+ Classifier: Development Status :: 5 - Production/Stable
10
+ Classifier: Environment :: Console
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: Operating System :: OS Independent
13
+ Classifier: Programming Language :: Python :: 3.11
14
+ Classifier: Programming Language :: Python :: 3.12
15
+ Classifier: Programming Language :: Python :: 3.13
16
+ Classifier: Programming Language :: Python :: 3.14
17
+ Classifier: Topic :: Software Development :: Libraries
18
+ Requires-Dist: colorama>=0.4.0
19
+ Requires-Dist: impit~=0.13.0
20
+ Requires-Dist: more-itertools>=10.0.0
21
+ Requires-Dist: pydantic[email]>=2.11.0
22
+ Requires-Dist: typing-extensions>=4.6.0
23
+ Requires-Dist: brotli>=1.0.9 ; extra == 'brotli'
24
+ Requires-Python: >=3.11
25
+ Project-URL: Homepage, https://api.scrape.ly
26
+ Project-URL: Changelog, https://github.com/SandeepDev1/scrapely/blob/main/scrapely-client-python/CHANGELOG.md
27
+ Project-URL: Documentation, https://api.scrape.ly
28
+ Project-URL: Issue Tracker, https://github.com/SandeepDev1/scrapely/issues
29
+ Project-URL: Source Code, https://github.com/SandeepDev1/scrapely
30
+ Provides-Extra: brotli
31
+ Description-Content-Type: text/markdown
32
+
33
+ <h1 align="center">Scrapely API client for Python</h1>
34
+
35
+ <p align="center">
36
+ <strong>The official Python client for the <a href="https://api.scrape.ly">Scrapely REST API</a>.</strong>
37
+ </p>
38
+
39
+ <p align="center">
40
+ <a href="https://pypi.org/project/scrapely-client-python/"><img src="https://badge.fury.io/py/scrapely-client-python.svg" alt="PyPI version"></a>
41
+ <a href="https://pypi.org/project/scrapely-client-python/"><img src="https://img.shields.io/pypi/dm/scrapely-client-python" alt="PyPI downloads"></a>
42
+ <a href="https://pypi.org/project/scrapely-client-python/"><img src="https://img.shields.io/badge/python-3.11%2B-blue" alt="Python versions"></a>
43
+ <a href="./LICENSE"><img src="https://img.shields.io/pypi/l/scrapely-client-python" alt="License"></a>
44
+ </p>
45
+
46
+ `scrapely-client-python` lets you talk to the [Scrapely platform](https://api.scrape.ly) from Python — run Actors, manage storages (datasets, key-value stores, request queues), schedule tasks, configure webhooks, and use everything else exposed by the Scrapely API. It ships both synchronous and asynchronous clients, fully typed responses, automatic retries with exponential backoff, tiered timeouts, pagination helpers, streaming, and a pluggable HTTP layer.
47
+
48
+ > If you want to **build** Actors in Python rather than consume the API, use the Scrapely SDK for Python instead — it bundles this client and adds Actor-side primitives.
49
+
50
+ ## Table of contents
51
+
52
+ - [Installation](#installation)
53
+ - [Quick start](#quick-start)
54
+ - [Features](#features)
55
+ - [Usage examples](#usage-examples)
56
+ - [Documentation](#documentation)
57
+ - [Related projects](#related-projects)
58
+ - [Support and community](#support-and-community)
59
+ - [Contributing](#contributing)
60
+ - [License](#license)
61
+
62
+ ## Installation
63
+
64
+ `scrapely-client-python` requires **Python 3.11 or higher** and is published on [PyPI](https://pypi.org/project/scrapely-client-python/).
65
+
66
+ - From [PyPI](https://pypi.org/project/scrapely-client-python/), it can be installed for example with [pip](https://pip.pypa.io/):
67
+
68
+ ```bash
69
+ pip install scrapely-client-python
70
+ ```
71
+
72
+ or with [uv](https://docs.astral.sh/uv/):
73
+
74
+ ```bash
75
+ uv add scrapely-client-python
76
+ ```
77
+
78
+ or any other Python package manager that consumes PyPI.
79
+
80
+ The client compresses request bodies with `gzip` by default (no extra dependencies required). To opt in to
81
+ `brotli` (better compression ratio), install the optional extra and pass `compression='brotli'`:
82
+
83
+ ```bash
84
+ pip install "scrapely-client-python[brotli]"
85
+ # or
86
+ uv add "scrapely-client-python[brotli]"
87
+ ```
88
+
89
+
90
+ ## Quick start
91
+
92
+ You'll need a Scrapely API token — find yours in the integrations section of the Scrapely Console. Pass it to the client and you're ready to go.
93
+
94
+ ### Synchronous client
95
+
96
+ ```python
97
+ from scrapely_client import ScrapelyClient
98
+
99
+ client = ScrapelyClient('MY-SCRAPELY-TOKEN')
100
+
101
+ # Start an Actor and wait for it to finish.
102
+ run = client.actor('my-user/hello-world').call(
103
+ run_input={'message': 'Hello, Scrapely!'},
104
+ )
105
+ if run is None:
106
+ raise RuntimeError('Actor run was not found.')
107
+
108
+ # Iterate items from the run's default dataset.
109
+ for item in client.dataset(run.default_dataset_id).iterate_items():
110
+ print(item)
111
+ ```
112
+
113
+ ### Asynchronous client
114
+
115
+ ```python
116
+ import asyncio
117
+
118
+ from scrapely_client import ScrapelyClientAsync
119
+
120
+
121
+ async def main() -> None:
122
+ client = ScrapelyClientAsync('MY-SCRAPELY-TOKEN')
123
+
124
+ run = await client.actor('my-user/hello-world').call(
125
+ run_input={'message': 'Hello, Scrapely!'},
126
+ )
127
+ if run is None:
128
+ raise RuntimeError('Actor run was not found.')
129
+
130
+ # Iterate items from the run's default dataset.
131
+ async for item in client.dataset(run.default_dataset_id).iterate_items():
132
+ print(item)
133
+
134
+
135
+ asyncio.run(main())
136
+ ```
137
+
138
+ > **Keep your token secret.** It authorizes requests on your behalf and can incur usage costs. Never commit it to source control or expose it to client-side code.
139
+
140
+ ## Features
141
+
142
+ - **Synchronous and asynchronous clients** — pick `ScrapelyClient` or `ScrapelyClientAsync` to match your codebase; both expose the same API (Asyncio support).
143
+ - **Fully typed responses** — every method returns a [Pydantic](https://docs.pydantic.dev/) model generated from the platform's OpenAPI spec, with IDE autocomplete and runtime validation (Typed models).
144
+ - **Automatic retries** — exponential backoff for network errors, HTTP 429, and 5xx responses, configurable per client (Retries).
145
+ - **Tiered timeouts** — short / medium / long tiers picked per endpoint, overridable per call (Timeouts).
146
+ - **Pagination and streaming** — iterate datasets, key-value store keys, or live logs without manual paging or buffering (Pagination, Streaming).
147
+ - **Convenience methods** — `call()`, `wait_for_finish()`, nested resource access, and other shortcuts that hide platform quirks (Convenience methods).
148
+ - **Pluggable HTTP layer** — swap the default Impit-based HTTP client for `httpx`, `requests`, `aiohttp`, or any custom implementation (Custom HTTP clients).
149
+ - **Structured errors** — every API error surfaces as a `ScrapelyApiError` with HTTP-specific subclasses for precise handling (Error handling).
150
+ - **Debug logging** — opt-in structured logging on the `scrapely_client` logger captures request URLs, status codes, retry attempts, and more (Logging).
151
+
152
+ ## Usage examples
153
+
154
+ The client mirrors the platform's resource model. Each entry point returns either a **single-resource client** for an individual item or a **collection client** for listing and creating items (Single and collection clients).
155
+
156
+ ### List Actors and create one
157
+
158
+ ```python
159
+ actors = client.actors()
160
+ print(actors.list(limit=10).items)
161
+
162
+ new_actor = actors.create(name='my-actor')
163
+ ```
164
+
165
+ ### Stream live logs while a run is in progress
166
+
167
+ ```python
168
+ run = client.actor('my-user/web-scraper').start(run_input={...})
169
+
170
+ with client.run(run.id).log().stream() as log_stream:
171
+ for chunk in log_stream.iter_bytes():
172
+ print(chunk.decode(), end='')
173
+ ```
174
+
175
+ ### Read and write key-value store records
176
+
177
+ ```python
178
+ store = client.key_value_store('STORE-ID')
179
+ store.set_record('greeting', {'message': 'Hello!'})
180
+ record = store.get_record('greeting')
181
+ ```
182
+
183
+ ### Iterate dataset items with automatic pagination
184
+
185
+ ```python
186
+ for item in client.dataset('DATASET-ID').iterate_items(fields=['title', 'url']):
187
+ process(item)
188
+ ```
189
+
190
+ ### Tune retries and timeouts
191
+
192
+ ```python
193
+ from datetime import timedelta
194
+
195
+ from scrapely_client import ScrapelyClient
196
+
197
+ client = ScrapelyClient(
198
+ token='MY-SCRAPELY-TOKEN',
199
+ max_retries=8,
200
+ min_delay_between_retries=timedelta(milliseconds=500),
201
+ timeout_long=timedelta(minutes=10),
202
+ )
203
+ ```
204
+
205
+ For end-to-end recipes — passing input, managing tasks for reusable input, retrieving and merging Actor data, integrating with Pandas, plugging in a custom HTTP client — see the Guides.
206
+
207
+ ## Documentation
208
+
209
+ The full documentation lives at **https://api.scrape.ly**.
210
+
211
+ | Section | What you'll find |
212
+ | --- | --- |
213
+ | Introduction | Overview, prerequisites, and a tour of the client. |
214
+ | Quick start | Authenticate, run an Actor, and fetch its results step by step. |
215
+ | Concepts | Asyncio, single vs. collection clients, nested clients, error handling, retries, logging, convenience methods, pagination, streaming, custom HTTP clients, timeouts. |
216
+ | Guides | Pass input to an Actor, manage tasks for reusable input, retrieve Actor data, integrate with data libraries (e.g. Pandas), use HTTPX as the HTTP client. |
217
+ | API reference | Generated reference for every class, method, and model. |
218
+ | Changelog | Release history and breaking changes. |
219
+
220
+ ## Related projects
221
+
222
+ - **Scrapely SDK for Python** — toolkit for **building** Actors in Python (this client is bundled with it).
223
+ - **[Crawlee for Python](https://crawlee.dev/python)** — high-level web scraping and browser automation framework that powers many Actors.
224
+ - **Scrapely API client for JavaScript / TypeScript** — equivalent Scrapely API client for Node.js.
225
+ - **Scrapely SDK for JavaScript / TypeScript** — equivalent Scrapely SDK for Node.js.
226
+ - **[Crawlee for JavaScript / TypeScript](https://crawlee.dev)** — the Node.js implementation of the Crawlee framework.
227
+ - **Scrapely CLI** — command-line tool for interacting with the Scrapely platform: managing Actors, runs, storages, local development, and deployment.
228
+
229
+ ## Support and community
230
+
231
+ - **GitHub issues** — report a bug or request a feature in the repository's issue tracker.
232
+
233
+ ## Contributing
234
+
235
+ Bug reports, fixes, and improvements are welcome! See [CONTRIBUTING.md](./CONTRIBUTING.md) for the development setup, coding standards, testing, and the release process. The repo uses [uv](https://docs.astral.sh/uv/) for project management and [Poe the Poet](https://poethepoet.natn.io/) as a task runner; the typical loop is:
236
+
237
+ ```bash
238
+ uv run poe install-dev # install dev deps and git hooks
239
+ uv run poe check-code # lint, type-check, unit tests, docstring check
240
+ ```
241
+
242
+ ## License
243
+
244
+ Released under the [Apache License 2.0](./LICENSE).
@@ -0,0 +1,65 @@
1
+ scrapely_client/__init__.py,sha256=F2qrB4pNh5zgKsGFQkmOYbbqs3fU8GSzkqH1deuwgPQ,729
2
+ scrapely_client/_charging.py,sha256=wvOgbk85xkoiJ0kU8_5WN9u7ZqFPZki-GsAwnKt8emI,6903
3
+ scrapely_client/_client_registry.py,sha256=TaCXlXmE6vTLfoiEStJlP07sMu-O0iomnoSxhM4NHyQ,5438
4
+ scrapely_client/_consts.py,sha256=Bb3EkGfvFFAM_fpETffmNWWAEtpgUfkURWoL8pCjw0M,3395
5
+ scrapely_client/_docs.py,sha256=2HBk31suQhWYwME8h5m7lZkKBh8kh1DAT-5fVtF_m3Q,967
6
+ scrapely_client/_literals.py,sha256=vZFD2akQV-32CY_fktYGzLA5DQS3_rewfAjnrTz6jT0,16856
7
+ scrapely_client/_logging.py,sha256=3hGBNL6iMb-rvlHJvKYOZTap0QLDAMENxmw0FmvGMQY,6624
8
+ scrapely_client/_models.py,sha256=td6-tHVttRLXAGAsTWYqqRmuIklDAzAs0LmUSmKTHTE,142785
9
+ scrapely_client/_pagination.py,sha256=BZwPPF7vwf-e9SPFqpyvlw1ZvqWopMtUi7MecQAsK4w,8429
10
+ scrapely_client/_resource_clients/__init__.py,sha256=fLcGFozm7zSt-ZY7KWdL01dph4adJiuVOg7uovmGgyQ,3581
11
+ scrapely_client/_resource_clients/_resource_client.py,sha256=NJNgU3WZ_irz7rtLXhYBcGDUyW3JwdwdiFOAggl8IvI,21443
12
+ scrapely_client/_resource_clients/actor.py,sha256=crSsFhFVgOsV0Qs0LG6KJYpT7OhFmv4JTJ-Odyt8pHQ,44829
13
+ scrapely_client/_resource_clients/actor_collection.py,sha256=RYM6SFGP7bOO8HIqCgIZvIf27pbK1Hfy4KXBvwKPruk,16810
14
+ scrapely_client/_resource_clients/actor_env_var.py,sha256=YsSXdoJ6bJ6lXWkMQ0Le0BUUHEfHwsFLiYgoNqkDOmE,4660
15
+ scrapely_client/_resource_clients/actor_env_var_collection.py,sha256=rFTdOaqhsVgIIY9pSYF7LCj5FazLf84Md42uiRKJc9s,5525
16
+ scrapely_client/_resource_clients/actor_version.py,sha256=hhPgpa2igb9YtRcB75eoJKAV-DtrEtq6ikgzqaSVT0E,10082
17
+ scrapely_client/_resource_clients/actor_version_collection.py,sha256=XsWmHLdsb1ghZnwcsp0lw4w2speFndXYehhdt2fzWZw,9562
18
+ scrapely_client/_resource_clients/build.py,sha256=MA_C6RblCXiR1rys33zhtRneuS5AVPeskBb-Aa_H2eA,7649
19
+ scrapely_client/_resource_clients/build_collection.py,sha256=iNg0XfhDboBbkFLCGoi3gsve-YdXv9dWCCRbsVVzH8I,5610
20
+ scrapely_client/_resource_clients/dataset.py,sha256=jJdjshHnKMuzSl26z7LnT3fK1jrlbUxfLzkRCiEMo40,51974
21
+ scrapely_client/_resource_clients/dataset_collection.py,sha256=Ao0p1M0M7D8iMqEwT5f0YsPRm52LmKDh72YbIr3vpKA,8703
22
+ scrapely_client/_resource_clients/key_value_store.py,sha256=eDFa66XhKoNkO0ftTa1frv0750TESLMY99JJ6TMSjFc,32517
23
+ scrapely_client/_resource_clients/key_value_store_collection.py,sha256=yiQmPrkmCiuHkFFh8MM8yi5xHELWapv0grQSgYCXWGk,9123
24
+ scrapely_client/_resource_clients/log.py,sha256=ntZY0rNkHlvz-WT74uZDestv6Yy5Og-pQ1NX4kz7WnE,7335
25
+ scrapely_client/_resource_clients/request_queue.py,sha256=XPCCeMSgvsBpKfQZL2x4yYWmzuaRZZeQ2LoRpzBF-2c,40891
26
+ scrapely_client/_resource_clients/request_queue_collection.py,sha256=JcuKvZUAK47I9u41uVS7OLnlgFPiRCOAtpO5NdyNFDk,8827
27
+ scrapely_client/_resource_clients/run.py,sha256=NUoZ0pDIEXUfB4z4RB_LDyZBUGieFStyxnBh3L6yUL4,32063
28
+ scrapely_client/_resource_clients/run_collection.py,sha256=qQkOZ6lBeRmNT1AscHkVp8Aa4OKNh-iPHzmXmEV1IcI,8285
29
+ scrapely_client/_resource_clients/schedule.py,sha256=JGSuRXA7FeaTZTNuMrfYin_BmmhQpdqBtG5FxRr2lGg,7938
30
+ scrapely_client/_resource_clients/schedule_collection.py,sha256=I9FSFO2t40X3XyZaVjhqQcS1J5PhxiXJw5A7L2SHjQ4,9358
31
+ scrapely_client/_resource_clients/store_collection.py,sha256=ulwi7D0jGBH7gc-voWIpEL04WqRMo63UA_kMinv4kUM,9074
32
+ scrapely_client/_resource_clients/task.py,sha256=CxU-x3yug3scAGhoxpZViN5M99T4eR00gNA9NyncXks,32441
33
+ scrapely_client/_resource_clients/task_collection.py,sha256=0gMs9JTahKVPQcY9Th4JHQxuKQMfj98uFyY9kpAYGbg,13171
34
+ scrapely_client/_resource_clients/user.py,sha256=ySaBDn2_gbb3-qVylX9oylTL7GzC0JOBwPsHt6Gr9VY,8613
35
+ scrapely_client/_resource_clients/webhook.py,sha256=QljYqPYleWaRk2msdu1GaB_7AVA2hocG4nSpFr-BFU4,10328
36
+ scrapely_client/_resource_clients/webhook_collection.py,sha256=__e5uGx_VnSZULC0M-o65xugPve3gR2KY6wUAZA1H3M,11195
37
+ scrapely_client/_resource_clients/webhook_dispatch.py,sha256=uyJItKA1W_EXtEByAAXHzit2pXzjAG2C2YYbR753Yww,2504
38
+ scrapely_client/_resource_clients/webhook_dispatch_collection.py,sha256=vj5oJuJAoo6X2YTl3Dsof1u14oA-YSTRYEKUaEWHtyo,5793
39
+ scrapely_client/_scrapely_client.py,sha256=lned1hgp2EGCPCjI-OnI62rpb4hfvLqZZQfW0Omsz1w,36672
40
+ scrapely_client/_statistics.py,sha256=mTsUFVByduYFPoHocZULv53k5dYg77Bl03wamQD6Jyc,903
41
+ scrapely_client/_status_message_watcher.py,sha256=8C0--UW6Ao4sy_PQ2BeNiNIXjyJu81b3Uc0BNUilciU,7743
42
+ scrapely_client/_streamed_log.py,sha256=zAN5X8Mj1iFTrgIDC20skSi0nkHTjZB2106Zy2KP7Ts,11509
43
+ scrapely_client/_typeddicts.py,sha256=YGNpxx4bQglWYhVYBUQltXjLHrhR62WyTdFSeezKKus,12275
44
+ scrapely_client/_utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
45
+ scrapely_client/_utils/crypto.py,sha256=CgO2iVj27GsfpSP-BJ3fdfvBdbidoKXqzjd8zYuCbAg,2749
46
+ scrapely_client/_utils/encoding.py,sha256=gptg6fB2zaIKYpMTQlEmTwcsbYhIYb4x0WV0uwOIroA,6310
47
+ scrapely_client/_utils/errors.py,sha256=wvLqWQvySQK2FbLZ7ExsTCGUXTANyrTQbC-7fg0R884,1081
48
+ scrapely_client/_utils/http.py,sha256=2HMiHFuPGet4LHahCNXnlLnL6_AdSlk3wjJF6P9SNBQ,4809
49
+ scrapely_client/_utils/time.py,sha256=cYnigcaMMX_H-b2aqMvPmj5p9i1v6cBYa90d8lhet3c,908
50
+ scrapely_client/_utils/try_import.py,sha256=sVqkJyWP4uqeBY29xivxxly7BjVXc3JahsAfSkRmU68,1799
51
+ scrapely_client/errors.py,sha256=K8pbTz_S1SoOsqtyZCKXh6LQWr8qubuNRB2VSkxifnc,6833
52
+ scrapely_client/http_clients/__init__.py,sha256=iVimn73xwMtmCeofeBwSLnHOEmSEpATGf-gtjbx7nWg,246
53
+ scrapely_client/http_clients/_base.py,sha256=aW9enxg4dG30z5E1pX7r7ICAQbZXjLLxLeYIhHlkaCQ,18842
54
+ scrapely_client/http_clients/_impit.py,sha256=OHDhdpAaQS_VX8XH8pwqCiNvNA_96xKuV2mKOGqPwK0,24157
55
+ scrapely_client/http_compressors/__init__.py,sha256=yz7ocf3DQO22K83UDHTmqwHDzRkTUXVyET8DFtbXg2c,954
56
+ scrapely_client/http_compressors/_base.py,sha256=25W0zDO54qdSnhYLvYyF4EbYM2mh5gxwlaaQ5yKAuzw,672
57
+ scrapely_client/http_compressors/_brotli.py,sha256=-naU_0qq1kDomTuA36EhvSxvbRuEAmpT81DPvZsSRow,1134
58
+ scrapely_client/http_compressors/_gzip.py,sha256=lQvws73pj6QDX9z9FeFZyK-8jEfSQUyx9M69aQNTnpY,1146
59
+ scrapely_client/http_compressors/_resolve.py,sha256=1w5xWGSjoMQ9gPifIPdJ3vKJ84LxoGW6-OKEZ6hCtV0,1503
60
+ scrapely_client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
61
+ scrapely_client/types.py,sha256=gjngoXB5LnY8kkodTG4T1JEypNExrjxqpGMFsPHX6YM,2059
62
+ scrapely_client_python-1.0.0.dist-info/licenses/LICENSE,sha256=AsFjHssKjj4LGd2ZCqXn6FBzMqcWdjQre1byPPSypVw,11355
63
+ scrapely_client_python-1.0.0.dist-info/WHEEL,sha256=Kot-FOXwz2no6rGIg4et79Z7m6vcKPAXr2Y6fTFpZuI,81
64
+ scrapely_client_python-1.0.0.dist-info/METADATA,sha256=SxrWaVZ5dE5mDGV4Au72Wz2QNfiQ-85_gqZO6fKwJq8,10315
65
+ scrapely_client_python-1.0.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: uv 0.12.10
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "{}"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2023 Apify Technologies s.r.o.
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.