apify-client 3.2.2b3__tar.gz → 3.2.2b5__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.
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/CHANGELOG.md +5 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/PKG-INFO +1 -1
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/pyproject.toml +1 -1
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/pyproject.toml.orig +1 -1
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_resource_clients/task.py +13 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/http_compressors/_gzip.py +1 -1
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/CONTRIBUTING.md +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/LICENSE +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/README.md +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/__init__.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_apify_client.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_client_registry.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_consts.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_docs.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_literals.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_logging.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_models.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_pagination.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_resource_clients/__init__.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_resource_clients/_resource_client.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_resource_clients/actor.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_resource_clients/actor_collection.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_resource_clients/actor_env_var.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_resource_clients/actor_env_var_collection.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_resource_clients/actor_version.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_resource_clients/actor_version_collection.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_resource_clients/build.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_resource_clients/build_collection.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_resource_clients/dataset.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_resource_clients/dataset_collection.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_resource_clients/key_value_store.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_resource_clients/key_value_store_collection.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_resource_clients/log.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_resource_clients/request_queue.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_resource_clients/request_queue_collection.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_resource_clients/run.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_resource_clients/run_collection.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_resource_clients/schedule.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_resource_clients/schedule_collection.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_resource_clients/store_collection.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_resource_clients/task_collection.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_resource_clients/user.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_resource_clients/webhook.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_resource_clients/webhook_collection.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_resource_clients/webhook_dispatch.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_resource_clients/webhook_dispatch_collection.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_statistics.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_status_message_watcher.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_streamed_log.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_typeddicts.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_utils/__init__.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_utils/crypto.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_utils/encoding.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_utils/errors.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_utils/http.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_utils/time.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_utils/try_import.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_utils/wait_for_resources.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/errors.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/http_clients/__init__.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/http_clients/_base.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/http_clients/_httpx2.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/http_clients/_impit.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/http_clients/_streamed_body.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/http_compressors/__init__.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/http_compressors/_base.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/http_compressors/_brotli.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/http_compressors/_resolve.py +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/py.typed +0 -0
- {apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/types.py +0 -0
|
@@ -10,11 +10,16 @@ All notable changes to this project will be documented in this file.
|
|
|
10
10
|
- Stream request bodies from files, iterables, and responses ([#1060](https://github.com/apify/apify-client-python/pull/1060)) ([9be215b](https://github.com/apify/apify-client-python/commit/9be215b23a13de0abc4a255a18450cc764e7a6c7)) by [@vdusek](https://github.com/vdusek), closes [#972](https://github.com/apify/apify-client-python/issues/972)
|
|
11
11
|
- Retry starting a run on memory and concurrent-runs limits ([#1081](https://github.com/apify/apify-client-python/pull/1081)) ([3dd8ca5](https://github.com/apify/apify-client-python/commit/3dd8ca5fe4d2537cb009cb310ba12b39927a9558)) by [@vdusek](https://github.com/vdusek), closes [#1071](https://github.com/apify/apify-client-python/issues/1071)
|
|
12
12
|
- Add live iteration over a run's dataset items ([#1079](https://github.com/apify/apify-client-python/pull/1079)) ([6aa8ead](https://github.com/apify/apify-client-python/commit/6aa8ead676a3520f6a418597eb62f319a3d19d30)) by [@vdusek](https://github.com/vdusek), closes [#1065](https://github.com/apify/apify-client-python/issues/1065)
|
|
13
|
+
- Add max_total_charge_usd to task start() and call() ([#1097](https://github.com/apify/apify-client-python/pull/1097)) ([966d3d6](https://github.com/apify/apify-client-python/commit/966d3d687d8d45737bf706fb13de379e682897d5)) by [@vdusek](https://github.com/vdusek), closes [#1096](https://github.com/apify/apify-client-python/issues/1096)
|
|
13
14
|
|
|
14
15
|
### 🐛 Bug Fixes
|
|
15
16
|
|
|
16
17
|
- Add missing `readme` field to `Profile` model ([#1086](https://github.com/apify/apify-client-python/pull/1086)) ([ae17148](https://github.com/apify/apify-client-python/commit/ae1714891c4f70d66ab4964c1783fee0a96776f1)) by [@apify-service-account](https://github.com/apify-service-account)
|
|
17
18
|
|
|
19
|
+
### ⚡ Performance
|
|
20
|
+
|
|
21
|
+
- Default gzip compression quality to 6 ([#1099](https://github.com/apify/apify-client-python/pull/1099)) ([00cfb65](https://github.com/apify/apify-client-python/commit/00cfb658c19645886adaca68b26f71867e0a6826)) by [@vdusek](https://github.com/vdusek), closes [#1095](https://github.com/apify/apify-client-python/issues/1095)
|
|
22
|
+
|
|
18
23
|
|
|
19
24
|
<!-- git-cliff-unreleased-end -->
|
|
20
25
|
## [3.2.1](https://github.com/apify/apify-client-python/releases/tag/v3.2.1) (2026-09-25)
|
|
@@ -22,6 +22,7 @@ from apify_client._utils.wait_for_resources import start_waiting_for_resources,
|
|
|
22
22
|
|
|
23
23
|
if TYPE_CHECKING:
|
|
24
24
|
from datetime import timedelta
|
|
25
|
+
from decimal import Decimal
|
|
25
26
|
|
|
26
27
|
from apify_client._literals import ActorJobStatus, RunOrigin
|
|
27
28
|
from apify_client._resource_clients import (
|
|
@@ -217,6 +218,7 @@ class TaskClient(ResourceClient):
|
|
|
217
218
|
task_input: TaskInputDict | TaskInput | None = None,
|
|
218
219
|
build: str | None = None,
|
|
219
220
|
max_items: int | None = None,
|
|
221
|
+
max_total_charge_usd: Decimal | None = None,
|
|
220
222
|
memory_mbytes: int | None = None,
|
|
221
223
|
run_timeout: timedelta | None = None,
|
|
222
224
|
restart_on_error: bool | None = None,
|
|
@@ -235,6 +237,7 @@ class TaskClient(ResourceClient):
|
|
|
235
237
|
the run uses the build specified in the task settings (typically latest).
|
|
236
238
|
max_items: Maximum number of results that will be returned by this run. If the Actor is charged
|
|
237
239
|
per result, you will not be charged for more results than the given limit.
|
|
240
|
+
max_total_charge_usd: A limit on the total charged amount for pay-per-event Actors.
|
|
238
241
|
memory_mbytes: Memory limit for the run, in megabytes. By default, the run uses a memory limit specified
|
|
239
242
|
in the task settings.
|
|
240
243
|
run_timeout: Optional timeout for the run. By default, the run uses timeout specified
|
|
@@ -268,6 +271,7 @@ class TaskClient(ResourceClient):
|
|
|
268
271
|
request_params = self._build_params(
|
|
269
272
|
build=build,
|
|
270
273
|
maxItems=max_items,
|
|
274
|
+
maxTotalChargeUsd=max_total_charge_usd,
|
|
271
275
|
memory=memory_mbytes,
|
|
272
276
|
timeout=to_seconds(run_timeout, as_int=True),
|
|
273
277
|
restartOnError=restart_on_error,
|
|
@@ -296,6 +300,7 @@ class TaskClient(ResourceClient):
|
|
|
296
300
|
task_input: TaskInputDict | TaskInput | None = None,
|
|
297
301
|
build: str | None = None,
|
|
298
302
|
max_items: int | None = None,
|
|
303
|
+
max_total_charge_usd: Decimal | None = None,
|
|
299
304
|
memory_mbytes: int | None = None,
|
|
300
305
|
run_timeout: timedelta | None = None,
|
|
301
306
|
restart_on_error: bool | None = None,
|
|
@@ -316,6 +321,7 @@ class TaskClient(ResourceClient):
|
|
|
316
321
|
the run uses the build specified in the task settings (typically latest).
|
|
317
322
|
max_items: Maximum number of results that will be returned by this run. If the Actor is charged per result,
|
|
318
323
|
you will not be charged for more results than the given limit.
|
|
324
|
+
max_total_charge_usd: A limit on the total charged amount for pay-per-event Actors.
|
|
319
325
|
memory_mbytes: Memory limit for the run, in megabytes. By default, the run uses a memory limit specified
|
|
320
326
|
in the task settings.
|
|
321
327
|
run_timeout: Optional timeout for the run. By default, the run uses timeout specified
|
|
@@ -344,6 +350,7 @@ class TaskClient(ResourceClient):
|
|
|
344
350
|
task_input=task_input,
|
|
345
351
|
build=build,
|
|
346
352
|
max_items=max_items,
|
|
353
|
+
max_total_charge_usd=max_total_charge_usd,
|
|
347
354
|
memory_mbytes=memory_mbytes,
|
|
348
355
|
run_timeout=run_timeout,
|
|
349
356
|
restart_on_error=restart_on_error,
|
|
@@ -619,6 +626,7 @@ class TaskClientAsync(ResourceClientAsync):
|
|
|
619
626
|
task_input: TaskInputDict | TaskInput | None = None,
|
|
620
627
|
build: str | None = None,
|
|
621
628
|
max_items: int | None = None,
|
|
629
|
+
max_total_charge_usd: Decimal | None = None,
|
|
622
630
|
memory_mbytes: int | None = None,
|
|
623
631
|
run_timeout: timedelta | None = None,
|
|
624
632
|
restart_on_error: bool | None = None,
|
|
@@ -637,6 +645,7 @@ class TaskClientAsync(ResourceClientAsync):
|
|
|
637
645
|
the run uses the build specified in the task settings (typically latest).
|
|
638
646
|
max_items: Maximum number of results that will be returned by this run. If the Actor is charged
|
|
639
647
|
per result, you will not be charged for more results than the given limit.
|
|
648
|
+
max_total_charge_usd: A limit on the total charged amount for pay-per-event Actors.
|
|
640
649
|
memory_mbytes: Memory limit for the run, in megabytes. By default, the run uses a memory limit specified
|
|
641
650
|
in the task settings.
|
|
642
651
|
run_timeout: Optional timeout for the run. By default, the run uses timeout specified
|
|
@@ -670,6 +679,7 @@ class TaskClientAsync(ResourceClientAsync):
|
|
|
670
679
|
request_params = self._build_params(
|
|
671
680
|
build=build,
|
|
672
681
|
maxItems=max_items,
|
|
682
|
+
maxTotalChargeUsd=max_total_charge_usd,
|
|
673
683
|
memory=memory_mbytes,
|
|
674
684
|
timeout=to_seconds(run_timeout, as_int=True),
|
|
675
685
|
restartOnError=restart_on_error,
|
|
@@ -698,6 +708,7 @@ class TaskClientAsync(ResourceClientAsync):
|
|
|
698
708
|
task_input: TaskInputDict | TaskInput | None = None,
|
|
699
709
|
build: str | None = None,
|
|
700
710
|
max_items: int | None = None,
|
|
711
|
+
max_total_charge_usd: Decimal | None = None,
|
|
701
712
|
memory_mbytes: int | None = None,
|
|
702
713
|
run_timeout: timedelta | None = None,
|
|
703
714
|
restart_on_error: bool | None = None,
|
|
@@ -718,6 +729,7 @@ class TaskClientAsync(ResourceClientAsync):
|
|
|
718
729
|
the run uses the build specified in the task settings (typically latest).
|
|
719
730
|
max_items: Maximum number of results that will be returned by this run. If the Actor is charged per result,
|
|
720
731
|
you will not be charged for more results than the given limit.
|
|
732
|
+
max_total_charge_usd: A limit on the total charged amount for pay-per-event Actors.
|
|
721
733
|
memory_mbytes: Memory limit for the run, in megabytes. By default, the run uses a memory limit specified
|
|
722
734
|
in the task settings.
|
|
723
735
|
run_timeout: Optional timeout for the run. By default, the run uses timeout specified
|
|
@@ -746,6 +758,7 @@ class TaskClientAsync(ResourceClientAsync):
|
|
|
746
758
|
task_input=task_input,
|
|
747
759
|
build=build,
|
|
748
760
|
max_items=max_items,
|
|
761
|
+
max_total_charge_usd=max_total_charge_usd,
|
|
749
762
|
memory_mbytes=memory_mbytes,
|
|
750
763
|
run_timeout=run_timeout,
|
|
751
764
|
restart_on_error=restart_on_error,
|
|
@@ -19,7 +19,7 @@ class GzipHttpCompressor(HttpCompressor):
|
|
|
19
19
|
_max_quality = 9
|
|
20
20
|
"""Highest valid quality (slowest, best compression)."""
|
|
21
21
|
|
|
22
|
-
def __init__(self, *, quality: int =
|
|
22
|
+
def __init__(self, *, quality: int = 6) -> None:
|
|
23
23
|
"""Initialize the gzip compressor.
|
|
24
24
|
|
|
25
25
|
Args:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_resource_clients/__init__.py
RENAMED
|
File without changes
|
{apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_resource_clients/_resource_client.py
RENAMED
|
File without changes
|
|
File without changes
|
{apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_resource_clients/actor_collection.py
RENAMED
|
File without changes
|
{apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_resource_clients/actor_env_var.py
RENAMED
|
File without changes
|
|
File without changes
|
{apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_resource_clients/actor_version.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_resource_clients/build_collection.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_resource_clients/key_value_store.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_resource_clients/request_queue.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_resource_clients/run_collection.py
RENAMED
|
File without changes
|
{apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_resource_clients/schedule.py
RENAMED
|
File without changes
|
|
File without changes
|
{apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_resource_clients/store_collection.py
RENAMED
|
File without changes
|
{apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_resource_clients/task_collection.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/_resource_clients/webhook_dispatch.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{apify_client-3.2.2b3 → apify_client-3.2.2b5}/src/apify_client/http_clients/_streamed_body.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|