apify 2.3.1b2__py3-none-any.whl → 2.4.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/_actor.py CHANGED
@@ -43,7 +43,7 @@ if TYPE_CHECKING:
43
43
  from typing_extensions import Self
44
44
 
45
45
  from crawlee.proxy_configuration import _NewUrlFunction
46
- from crawlee.storage_clients import BaseStorageClient
46
+ from crawlee.storage_clients import StorageClient
47
47
 
48
48
  from apify._models import Webhook
49
49
 
@@ -171,7 +171,7 @@ class _ActorType:
171
171
  return logger
172
172
 
173
173
  @property
174
- def _local_storage_client(self) -> BaseStorageClient:
174
+ def _local_storage_client(self) -> StorageClient:
175
175
  """The local storage client the Actor instance uses."""
176
176
  return service_locator.get_storage_client()
177
177
 
@@ -6,7 +6,7 @@ from typing_extensions import override
6
6
 
7
7
  from apify_client import ApifyClientAsync
8
8
  from crawlee._utils.crypto import crypto_random_object_id
9
- from crawlee.storage_clients import BaseStorageClient
9
+ from crawlee.storage_clients import StorageClient
10
10
 
11
11
  from apify._utils import docs_group
12
12
  from apify.apify_storage_client._dataset_client import DatasetClient
@@ -21,7 +21,7 @@ if TYPE_CHECKING:
21
21
 
22
22
 
23
23
  @docs_group('Classes')
24
- class ApifyStorageClient(BaseStorageClient):
24
+ class ApifyStorageClient(StorageClient):
25
25
  """A storage client implementation based on the Apify platform storage."""
26
26
 
27
27
  def __init__(self, *, configuration: Configuration) -> None:
@@ -68,5 +68,5 @@ class ApifyStorageClient(BaseStorageClient):
68
68
  pass
69
69
 
70
70
  @override
71
- def get_rate_limit_errors(self) -> dict[int, int]: # type: ignore[misc]
71
+ def get_rate_limit_errors(self) -> dict[int, int]:
72
72
  return self._apify_client.stats.rate_limit_errors
@@ -4,7 +4,7 @@ from typing import TYPE_CHECKING
4
4
 
5
5
  from typing_extensions import override
6
6
 
7
- from crawlee.storage_clients._base import BaseDatasetClient
7
+ from crawlee.storage_clients._base import DatasetClient as BaseDatasetClient
8
8
  from crawlee.storage_clients.models import DatasetItemsListPage, DatasetMetadata
9
9
 
10
10
  if TYPE_CHECKING:
@@ -4,7 +4,7 @@ from typing import TYPE_CHECKING
4
4
 
5
5
  from typing_extensions import override
6
6
 
7
- from crawlee.storage_clients._base import BaseDatasetCollectionClient
7
+ from crawlee.storage_clients._base import DatasetCollectionClient as BaseDatasetCollectionClient
8
8
  from crawlee.storage_clients.models import DatasetListPage, DatasetMetadata
9
9
 
10
10
  if TYPE_CHECKING:
@@ -5,7 +5,7 @@ from typing import TYPE_CHECKING, Any
5
5
 
6
6
  from typing_extensions import override
7
7
 
8
- from crawlee.storage_clients._base import BaseKeyValueStoreClient
8
+ from crawlee.storage_clients._base import KeyValueStoreClient as BaseKeyValueStoreClient
9
9
  from crawlee.storage_clients.models import KeyValueStoreListKeysPage, KeyValueStoreMetadata, KeyValueStoreRecord
10
10
 
11
11
  if TYPE_CHECKING:
@@ -4,7 +4,7 @@ from typing import TYPE_CHECKING
4
4
 
5
5
  from typing_extensions import override
6
6
 
7
- from crawlee.storage_clients._base import BaseKeyValueStoreCollectionClient
7
+ from crawlee.storage_clients._base import KeyValueStoreCollectionClient as BaseKeyValueStoreCollectionClient
8
8
  from crawlee.storage_clients.models import KeyValueStoreListPage, KeyValueStoreMetadata
9
9
 
10
10
  if TYPE_CHECKING:
@@ -5,7 +5,7 @@ from typing import TYPE_CHECKING
5
5
  from typing_extensions import override
6
6
 
7
7
  from crawlee import Request
8
- from crawlee.storage_clients._base import BaseRequestQueueClient
8
+ from crawlee.storage_clients._base import RequestQueueClient as BaseRequestQueueClient
9
9
  from crawlee.storage_clients.models import (
10
10
  BatchRequestsOperationResponse,
11
11
  ProcessedRequest,
@@ -4,7 +4,7 @@ from typing import TYPE_CHECKING
4
4
 
5
5
  from typing_extensions import override
6
6
 
7
- from crawlee.storage_clients._base import BaseRequestQueueCollectionClient
7
+ from crawlee.storage_clients._base import RequestQueueCollectionClient as BaseRequestQueueCollectionClient
8
8
  from crawlee.storage_clients.models import RequestQueueListPage, RequestQueueMetadata
9
9
 
10
10
  if TYPE_CHECKING:
@@ -10,7 +10,7 @@ from pydantic import BaseModel, Field, TypeAdapter
10
10
 
11
11
  from crawlee import Request
12
12
  from crawlee._types import HttpMethod
13
- from crawlee.http_clients import BaseHttpClient, HttpxHttpClient
13
+ from crawlee.http_clients import HttpClient, HttpxHttpClient
14
14
  from crawlee.request_loaders import RequestList as CrawleeRequestList
15
15
 
16
16
  from apify._utils import docs_group
@@ -49,7 +49,7 @@ class RequestList(CrawleeRequestList):
49
49
  async def open(
50
50
  name: str | None = None,
51
51
  request_list_sources_input: list[dict[str, Any]] | None = None,
52
- http_client: BaseHttpClient | None = None,
52
+ http_client: HttpClient | None = None,
53
53
  ) -> RequestList:
54
54
  """Creates RequestList from Actor input requestListSources.
55
55
 
@@ -78,7 +78,7 @@ class RequestList(CrawleeRequestList):
78
78
 
79
79
  @staticmethod
80
80
  async def _create_request_list(
81
- name: str | None, request_list_sources_input: list[dict[str, Any]], http_client: BaseHttpClient | None
81
+ name: str | None, request_list_sources_input: list[dict[str, Any]], http_client: HttpClient | None
82
82
  ) -> RequestList:
83
83
  if not http_client:
84
84
  http_client = HttpxHttpClient()
@@ -108,7 +108,7 @@ class RequestList(CrawleeRequestList):
108
108
 
109
109
  @staticmethod
110
110
  async def _fetch_requests_from_url(
111
- remote_url_requests_inputs: list[_RequestsFromUrlInput], http_client: BaseHttpClient
111
+ remote_url_requests_inputs: list[_RequestsFromUrlInput], http_client: HttpClient
112
112
  ) -> list[Request]:
113
113
  """Crete list of requests from url.
114
114
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: apify
3
- Version: 2.3.1b2
3
+ Version: 2.4.0b1
4
4
  Summary: Apify SDK for Python
5
5
  Project-URL: Homepage, https://docs.apify.com/sdk/python/
6
6
  Project-URL: Apify homepage, https://apify.com
@@ -224,8 +224,8 @@ Classifier: Programming Language :: Python :: 3.13
224
224
  Classifier: Topic :: Software Development :: Libraries
225
225
  Requires-Python: >=3.9
226
226
  Requires-Dist: apify-client>=1.9.2
227
- Requires-Dist: apify-shared>=1.2.1
228
- Requires-Dist: crawlee~=0.5.0
227
+ Requires-Dist: apify-shared>=1.3.0
228
+ Requires-Dist: crawlee~=0.6.0
229
229
  Requires-Dist: cryptography>=42.0.0
230
230
  Requires-Dist: httpx>=0.27.0
231
231
  Requires-Dist: lazy-object-proxy>=1.10.0
@@ -1,5 +1,5 @@
1
1
  apify/__init__.py,sha256=HpgKg2FZWJuSPfDygzJ62psylhw4NN4tKFnoYUIhcd4,838
2
- apify/_actor.py,sha256=EB3gGjASV0PbPJ6BtgOq45HN23vM-9ceNCNRfeh2BkQ,48821
2
+ apify/_actor.py,sha256=Wd6tI2bakxAjNBQZzFEk_Nx1c-DUVOD56j6CNB3qquE,48813
3
3
  apify/_charging.py,sha256=m7hJIQde4M7vS4g_4hsNRP5xHNXjYQ8MyqOEGeNb7VY,12267
4
4
  apify/_configuration.py,sha256=yidcWHsu-IJ2mmLmXStKq_HHcdfQxZq7koYjlZfRnQ8,11128
5
5
  apify/_consts.py,sha256=_Xq4hOfOA1iZ3n1P967YWdyncKivpbX6RTlp_qanUoE,330
@@ -11,13 +11,13 @@ apify/_utils.py,sha256=92byxeXTpDFwhBq7ZS-obeXKtKWvVzCZMV0Drg3EjhQ,1634
11
11
  apify/log.py,sha256=j-E4t-WeA93bc1NCQRG8sTntehQCiiN8ia-MdQe3_Ts,1291
12
12
  apify/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
13
  apify/apify_storage_client/__init__.py,sha256=-UbR68bFsDR6ln8OFs4t50eqcnY36hujO-SeOt-KmcA,114
14
- apify/apify_storage_client/_apify_storage_client.py,sha256=jTX5vd-K9mnFTyZu2V2dUg7oyWogvmNIDUlEXnvIlOw,2766
15
- apify/apify_storage_client/_dataset_client.py,sha256=UUodnR_MQBg5RkURrfegkGJWR5OmdPPgPfGepvkdQoU,5580
16
- apify/apify_storage_client/_dataset_collection_client.py,sha256=qCcKZlA0bkO-sL7xED0Yose85NlrRa9AKr4oCSrYX6k,1489
17
- apify/apify_storage_client/_key_value_store_client.py,sha256=MSuoIeqEHLu92WfUU7kyB3Cc_gKUlm8TghnU3_xkPtE,3363
18
- apify/apify_storage_client/_key_value_store_collection_client.py,sha256=NxD-3XDJP6JGMDyIa6ib0gl8op7rQjSQ0vlToCiV190,1563
19
- apify/apify_storage_client/_request_queue_client.py,sha256=n-CR-hA5LM6_8IwiMwQ9tT2juavq7X2zC3ZNlrtv-2s,5156
20
- apify/apify_storage_client/_request_queue_collection_client.py,sha256=MdzgbQb2D8rHWpUlPCrQSHRlAi0fI0PSZ9bYagr-MhY,1571
14
+ apify/apify_storage_client/_apify_storage_client.py,sha256=qeWYsEQGeyyhJzS9TZTQFNqdSl8JzHz_4_HDKGY4I_Y,2736
15
+ apify/apify_storage_client/_dataset_client.py,sha256=9RxxhrJMic5QRJn2Vl4J-FnSlEigIpYW5Z_2B1dcRzM,5597
16
+ apify/apify_storage_client/_dataset_collection_client.py,sha256=gf5skMTkfpGhEscRy5bgo13vznxGZrSd7w9Ivh3Usyc,1516
17
+ apify/apify_storage_client/_key_value_store_client.py,sha256=vreaFLAhyzuHwnvRfNVEy4N-VqEHa7ybSiS82TIgqbk,3386
18
+ apify/apify_storage_client/_key_value_store_collection_client.py,sha256=zjsbRW4zjme6dIzxxlHyCW3voBA5489MUhdjl5YMaro,1596
19
+ apify/apify_storage_client/_request_queue_client.py,sha256=cNMhXz85s1ZtjLpVqkduYl1y6o9QyNdcIGoy6ccD-h0,5178
20
+ apify/apify_storage_client/_request_queue_collection_client.py,sha256=MTLM2cG0txAe3cSjkGbXyq2Ek0R7wlsMbGGULmQGD3I,1603
21
21
  apify/apify_storage_client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
22
22
  apify/scrapy/__init__.py,sha256=m2a0ts_JY9xJkBy4JU5mV8PJqjA3GGKLXBFu4nl-n-A,1048
23
23
  apify/scrapy/_actor_runner.py,sha256=rXWSnlQWGskDUH8PtLCv5SkOIx4AiVa4QbCYeCett5c,938
@@ -34,9 +34,9 @@ apify/scrapy/pipelines/__init__.py,sha256=GWPeLN_Zwj8vRBWtXW6DaxdB7mvyQ7Jw5Tz1cc
34
34
  apify/scrapy/pipelines/actor_dataset_push.py,sha256=XUUyznQTD-E3wYUUFt2WAOnWhbnRrY0WuedlfYfYhDI,846
35
35
  apify/scrapy/pipelines/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
36
36
  apify/storages/__init__.py,sha256=FW-z6ubuPnHGM-Wp15T8mR5q6lnpDGrCW-IkgZd5L30,177
37
- apify/storages/_request_list.py,sha256=-lZJcE5nq69aJhGFJ7Sh2ctqgAWUDyOwYm5_0y1hdAE,5865
37
+ apify/storages/_request_list.py,sha256=7WpcdWvT3QxEBthynBpTVCSNDLXq6UbpQQmfUVyJ1jE,5849
38
38
  apify/storages/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
39
- apify-2.3.1b2.dist-info/METADATA,sha256=OYF8JJ4fpejdIurNXYEWXEa1Zrkmljyaq_ITIXeynU4,21566
40
- apify-2.3.1b2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
41
- apify-2.3.1b2.dist-info/licenses/LICENSE,sha256=AsFjHssKjj4LGd2ZCqXn6FBzMqcWdjQre1byPPSypVw,11355
42
- apify-2.3.1b2.dist-info/RECORD,,
39
+ apify-2.4.0b1.dist-info/METADATA,sha256=IDq4IVSL0Z_VD8rzFT6r3sX3MYRJ5_HdNkMIHL8OocA,21566
40
+ apify-2.4.0b1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
41
+ apify-2.4.0b1.dist-info/licenses/LICENSE,sha256=AsFjHssKjj4LGd2ZCqXn6FBzMqcWdjQre1byPPSypVw,11355
42
+ apify-2.4.0b1.dist-info/RECORD,,