apify 2.1.0b9__py3-none-any.whl → 2.2.0b1__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 apify might be problematic. Click here for more details.

apify/_configuration.py CHANGED
@@ -1,7 +1,7 @@
1
1
  from __future__ import annotations
2
2
 
3
3
  from datetime import datetime, timedelta
4
- from typing import Annotated
4
+ from typing import Annotated, Any
5
5
 
6
6
  from pydantic import AliasChoices, BeforeValidator, Field
7
7
  from typing_extensions import deprecated
@@ -13,6 +13,14 @@ from crawlee.configuration import Configuration as CrawleeConfiguration
13
13
  from apify._utils import docs_group
14
14
 
15
15
 
16
+ def _transform_to_list(value: Any) -> list[str] | None:
17
+ if value is None:
18
+ return None
19
+ if not value:
20
+ return []
21
+ return value if isinstance(value, list) else str(value).split(',')
22
+
23
+
16
24
  @docs_group('Classes')
17
25
  class Configuration(CrawleeConfiguration):
18
26
  """A class for specifying the configuration of an Actor.
@@ -33,6 +41,13 @@ class Configuration(CrawleeConfiguration):
33
41
  ),
34
42
  ] = None
35
43
 
44
+ actor_full_name: Annotated[
45
+ str | None,
46
+ Field(
47
+ description='Full name of the Actor',
48
+ ),
49
+ ] = None
50
+
36
51
  actor_run_id: Annotated[
37
52
  str | None,
38
53
  Field(
@@ -67,6 +82,14 @@ class Configuration(CrawleeConfiguration):
67
82
  ),
68
83
  ] = None
69
84
 
85
+ actor_build_tags: Annotated[
86
+ list[str] | None,
87
+ Field(
88
+ description='Build tags of the Actor build used in the run',
89
+ ),
90
+ BeforeValidator(_transform_to_list),
91
+ ] = None
92
+
70
93
  actor_task_id: Annotated[
71
94
  str | None,
72
95
  Field(
@@ -185,6 +208,15 @@ class Configuration(CrawleeConfiguration):
185
208
  BeforeValidator(lambda val: val or None),
186
209
  ] = None
187
210
 
211
+ max_total_charge_usd: Annotated[
212
+ float | None,
213
+ Field(
214
+ alias='actor_max_total_charge_usd',
215
+ description='For pay-per-event Actors, the user-set limit on total charges. Do not exceed this limit',
216
+ ),
217
+ BeforeValidator(lambda val: val or None),
218
+ ] = None
219
+
188
220
  meta_origin: Annotated[
189
221
  str | None,
190
222
  Field(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: apify
3
- Version: 2.1.0b9
3
+ Version: 2.2.0b1
4
4
  Summary: Apify SDK for Python
5
5
  License: Apache-2.0
6
6
  Keywords: apify,sdk,automation,chrome,crawlee,crawler,headless,scraper,scraping
@@ -20,7 +20,7 @@ Classifier: Programming Language :: Python :: 3.13
20
20
  Classifier: Topic :: Software Development :: Libraries
21
21
  Provides-Extra: scrapy
22
22
  Requires-Dist: apify-client (>=1.8.1)
23
- Requires-Dist: apify-shared (>=1.1.2)
23
+ Requires-Dist: apify-shared (>=1.2.1)
24
24
  Requires-Dist: crawlee (>=0.4.0,<0.5.0)
25
25
  Requires-Dist: cryptography (>=42.0.0)
26
26
  Requires-Dist: httpx (>=0.27.0,<0.28.0)
@@ -1,6 +1,6 @@
1
1
  apify/__init__.py,sha256=99ynaDWBLEcCjdLq7R0Exy_iACsXiXoQ8VUZKmbzTeM,550
2
2
  apify/_actor.py,sha256=AUviY4qrX4UoN7fSZtXXSHqEk4rrQwBymMLjkgb4Mzg,41887
3
- apify/_configuration.py,sha256=WC9X5gQ-e5r4BGQw-Kaq77oxLlPx7vtq0M-L4VlKrIc,9633
3
+ apify/_configuration.py,sha256=_pPkesm1NEE6IxT1Mgxu3fGM89b1rtnLyeC3Hfpbh-Q,10516
4
4
  apify/_consts.py,sha256=_Xq4hOfOA1iZ3n1P967YWdyncKivpbX6RTlp_qanUoE,330
5
5
  apify/_crypto.py,sha256=e0_aM3l9_5Osk-jszYOOjrAKK60OggSHbiw5c30QnsU,5638
6
6
  apify/_models.py,sha256=Btlz-23obKY5tJ75JnUwkVNC2lmU1IEBbdU3HvWaVhg,5748
@@ -32,7 +32,7 @@ apify/scrapy/utils.py,sha256=758DcHCSAgCTProY0QX74uJ1XrzVsQwvCmFanj2f_3Q,2928
32
32
  apify/storages/__init__.py,sha256=FW-z6ubuPnHGM-Wp15T8mR5q6lnpDGrCW-IkgZd5L30,177
33
33
  apify/storages/_request_list.py,sha256=4nrvSdMUF-kiwGVIPEfIOygLKgjUpO37Jl8Om-jRbIU,5858
34
34
  apify/storages/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
35
- apify-2.1.0b9.dist-info/LICENSE,sha256=AsFjHssKjj4LGd2ZCqXn6FBzMqcWdjQre1byPPSypVw,11355
36
- apify-2.1.0b9.dist-info/METADATA,sha256=dKhhf_vZ7xZfzCjmEkJh-KE-GrgH4OTLQqu7vh5kF2Q,8680
37
- apify-2.1.0b9.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
38
- apify-2.1.0b9.dist-info/RECORD,,
35
+ apify-2.2.0b1.dist-info/LICENSE,sha256=AsFjHssKjj4LGd2ZCqXn6FBzMqcWdjQre1byPPSypVw,11355
36
+ apify-2.2.0b1.dist-info/METADATA,sha256=ZWs1aVC-kxxxuYeI-kUZPYoQut8U-lUeSOruPJALYIw,8680
37
+ apify-2.2.0b1.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
38
+ apify-2.2.0b1.dist-info/RECORD,,