apify 2.0.1b11__py3-none-any.whl → 2.0.2__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.

@@ -49,7 +49,7 @@ class SystemInfoEventData(BaseModel):
49
49
  return EventSystemInfoData.model_validate(
50
50
  {
51
51
  'cpu_info': {
52
- 'used_ratio': self.cpu_current_usage,
52
+ 'used_ratio': self.cpu_current_usage / 100,
53
53
  'created_at': self.created_at,
54
54
  },
55
55
  'memory_info': {
@@ -91,7 +91,7 @@ class DatasetClient(BaseDatasetClient):
91
91
  skip_empty: bool = False,
92
92
  skip_hidden: bool = False,
93
93
  ) -> AsyncIterator[dict]:
94
- return self._client.iterate_items(
94
+ async for item in self._client.iterate_items(
95
95
  offset=offset,
96
96
  limit=limit,
97
97
  clean=clean,
@@ -101,7 +101,8 @@ class DatasetClient(BaseDatasetClient):
101
101
  unwind=unwind,
102
102
  skip_empty=skip_empty,
103
103
  skip_hidden=skip_hidden,
104
- )
104
+ ):
105
+ yield item
105
106
 
106
107
  @override
107
108
  async def get_items_as_bytes(
apify/log.py CHANGED
@@ -17,7 +17,7 @@ logger = logging.getLogger(logger_name)
17
17
 
18
18
 
19
19
  @ignore_docs
20
- class ActorLogFormatter(CrawleeLogFormatter): # noqa: D101 Inherited from parent class
20
+ class ActorLogFormatter(CrawleeLogFormatter): # noqa: D101 (Inherited from parent class)
21
21
  pass
22
22
 
23
23
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: apify
3
- Version: 2.0.1b11
3
+ Version: 2.0.2
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
@@ -27,7 +27,7 @@ Requires-Dist: httpx (>=0.27.0)
27
27
  Requires-Dist: lazy-object-proxy (>=1.10.0)
28
28
  Requires-Dist: scrapy (>=2.11.0) ; extra == "scrapy"
29
29
  Requires-Dist: typing-extensions (>=4.1.0)
30
- Requires-Dist: websockets (>=10.0)
30
+ Requires-Dist: websockets (>=10.0,<14.0.0)
31
31
  Project-URL: Apify Homepage, https://apify.com
32
32
  Project-URL: Changelog, https://docs.apify.com/sdk/python/docs/changelog
33
33
  Project-URL: Documentation, https://docs.apify.com/sdk/python/
@@ -4,19 +4,19 @@ apify/_configuration.py,sha256=n67sK9g8llsG8ZqIWhi1BEHliplGs5PTB6Ig7_0PaMU,9629
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=oYlTEr-DyQAE-V2rrYD5PhUxTXVPdAig7QV-u6CJw3E,5571
7
- apify/_platform_event_manager.py,sha256=K4cHabbQ7_ex7vkX-c-VhAOp8Efw3HDn5Wp4lfA-qAU,7571
7
+ apify/_platform_event_manager.py,sha256=QrBfwcRUA1SKY7h6CBejBKOGa4XCBUT2DLbHKuAkftM,7577
8
8
  apify/_proxy_configuration.py,sha256=2z4VV_NrnIp6pDpgQKlKpcHM2pPyXiOpFedpPWje48A,13087
9
9
  apify/_utils.py,sha256=Ghho3Gf11zYN8qhjhAkZRvQ--A9Js36GHB0YSDGUK58,694
10
10
  apify/apify_storage_client/__init__.py,sha256=-UbR68bFsDR6ln8OFs4t50eqcnY36hujO-SeOt-KmcA,114
11
11
  apify/apify_storage_client/_apify_storage_client.py,sha256=xi4OFchxhe-1-sykanH6Zcya4OcBhn2uf7OQ1pV4Ins,2338
12
- apify/apify_storage_client/_dataset_client.py,sha256=j9seF2OKvbSMD9R9XF9fpa1vtr_1w4JcRV--WCmvU4E,5501
12
+ apify/apify_storage_client/_dataset_client.py,sha256=FfXew6tBiZRkpovyPaQ__xhtZZ-rZvjijwBIIyRahH8,5536
13
13
  apify/apify_storage_client/_dataset_collection_client.py,sha256=fkYvYGQCigHD2CDzpWk0swNAkfvAinAhMGpYqllle3E,1445
14
14
  apify/apify_storage_client/_key_value_store_client.py,sha256=uyeQgb75sGFsqIS4sq4hEZ3QP81COLfS3tmTqHc0tso,3340
15
15
  apify/apify_storage_client/_key_value_store_collection_client.py,sha256=vCtMTI-jx89Qp5WHILDNkCthwLuv0MAwm1J_5E4aypU,1519
16
16
  apify/apify_storage_client/_request_queue_client.py,sha256=jAiFkaJ38_myHFGTw-Rk21wmpbN0UCR2w2SFoimFGFc,5826
17
17
  apify/apify_storage_client/_request_queue_collection_client.py,sha256=NnO73UJ9ZrjV8xoudo30wfaM-SojRkG0guhxDyB-K1g,1527
18
18
  apify/apify_storage_client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
19
- apify/log.py,sha256=zIVjrqQ1DNWNQQOAmdmR9oAbf4nJH7CSMB6u4OOUf6I,1448
19
+ apify/log.py,sha256=zElFyEp2RJN0kiHEwJhcjSCAuHrba5zYiq4pK2xsL_o,1450
20
20
  apify/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
21
21
  apify/scrapy/__init__.py,sha256=qDPV_zTRFaUqoFOyS5g4uBfz-UCkmWYJ82VXQ_3Cw6k,348
22
22
  apify/scrapy/middlewares/__init__.py,sha256=tfW-d3WFWLeNEjL8fTmon6NwgD-OXx1Bw2fBdU-wPy4,114
@@ -31,7 +31,7 @@ apify/scrapy/scheduler.py,sha256=MdwT2Kpe26hVC78p2s1NG7B5Cd7rfGAthODSyrC5Rz0,593
31
31
  apify/scrapy/utils.py,sha256=0XdFxi1qlUa6gHXG96e1FU9gW0N5Rsu0sVZklFYfC2U,2884
32
32
  apify/storages/__init__.py,sha256=-9tEYJVabVs_eRVhUehxN58GH0UG8OfuGjGwuDieP2M,122
33
33
  apify/storages/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
34
- apify-2.0.1b11.dist-info/LICENSE,sha256=AsFjHssKjj4LGd2ZCqXn6FBzMqcWdjQre1byPPSypVw,11355
35
- apify-2.0.1b11.dist-info/METADATA,sha256=nQFyVxHc0dEPC5l_GFD--tcqBX-DsTqNn9JJ693Jur0,8658
36
- apify-2.0.1b11.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
37
- apify-2.0.1b11.dist-info/RECORD,,
34
+ apify-2.0.2.dist-info/LICENSE,sha256=AsFjHssKjj4LGd2ZCqXn6FBzMqcWdjQre1byPPSypVw,11355
35
+ apify-2.0.2.dist-info/METADATA,sha256=Q3e0Pv7BOzMZ22DbqF9eErEfwMaMVJK0RxQyOsEtfwk,8663
36
+ apify-2.0.2.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
37
+ apify-2.0.2.dist-info/RECORD,,