apify 3.4.2b2__tar.gz → 3.4.2b3__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.
Files changed (64) hide show
  1. {apify-3.4.2b2 → apify-3.4.2b3}/CHANGELOG.md +1 -0
  2. {apify-3.4.2b2 → apify-3.4.2b3}/PKG-INFO +1 -1
  3. {apify-3.4.2b2 → apify-3.4.2b3}/pyproject.toml +2 -2
  4. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/_actor.py +5 -4
  5. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/_charging.py +3 -3
  6. {apify-3.4.2b2 → apify-3.4.2b3}/.gitignore +0 -0
  7. {apify-3.4.2b2 → apify-3.4.2b3}/CONTRIBUTING.md +0 -0
  8. {apify-3.4.2b2 → apify-3.4.2b3}/LICENSE +0 -0
  9. {apify-3.4.2b2 → apify-3.4.2b3}/README.md +0 -0
  10. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/__init__.py +0 -0
  11. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/_configuration.py +0 -0
  12. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/_consts.py +0 -0
  13. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/_crypto.py +0 -0
  14. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/_models.py +0 -0
  15. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/_proxy_configuration.py +0 -0
  16. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/_utils.py +0 -0
  17. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/events/__init__.py +0 -0
  18. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/events/_apify_event_manager.py +0 -0
  19. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/events/_types.py +0 -0
  20. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/events/py.typed +0 -0
  21. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/log.py +0 -0
  22. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/py.typed +0 -0
  23. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/request_loaders/__init__.py +0 -0
  24. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/request_loaders/_apify_request_list.py +0 -0
  25. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/request_loaders/py.typed +0 -0
  26. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/scrapy/__init__.py +0 -0
  27. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/scrapy/_actor_runner.py +0 -0
  28. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/scrapy/_async_thread.py +0 -0
  29. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/scrapy/_logging_config.py +0 -0
  30. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/scrapy/extensions/__init__.py +0 -0
  31. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/scrapy/extensions/_httpcache.py +0 -0
  32. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/scrapy/middlewares/__init__.py +0 -0
  33. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/scrapy/middlewares/apify_proxy.py +0 -0
  34. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/scrapy/middlewares/py.typed +0 -0
  35. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/scrapy/pipelines/__init__.py +0 -0
  36. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/scrapy/pipelines/actor_dataset_push.py +0 -0
  37. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/scrapy/pipelines/py.typed +0 -0
  38. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/scrapy/py.typed +0 -0
  39. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/scrapy/requests.py +0 -0
  40. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/scrapy/scheduler.py +0 -0
  41. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/scrapy/utils.py +0 -0
  42. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/storage_clients/__init__.py +0 -0
  43. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/storage_clients/_apify/__init__.py +0 -0
  44. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/storage_clients/_apify/_alias_resolving.py +0 -0
  45. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/storage_clients/_apify/_api_client_creation.py +0 -0
  46. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/storage_clients/_apify/_dataset_client.py +0 -0
  47. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/storage_clients/_apify/_key_value_store_client.py +0 -0
  48. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/storage_clients/_apify/_models.py +0 -0
  49. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/storage_clients/_apify/_request_queue_client.py +0 -0
  50. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/storage_clients/_apify/_request_queue_shared_client.py +0 -0
  51. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/storage_clients/_apify/_request_queue_single_client.py +0 -0
  52. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/storage_clients/_apify/_storage_client.py +0 -0
  53. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/storage_clients/_apify/_utils.py +0 -0
  54. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/storage_clients/_apify/py.typed +0 -0
  55. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/storage_clients/_file_system/__init__.py +0 -0
  56. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/storage_clients/_file_system/_dataset_client.py +0 -0
  57. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/storage_clients/_file_system/_key_value_store_client.py +0 -0
  58. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/storage_clients/_file_system/_storage_client.py +0 -0
  59. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/storage_clients/_ppe_dataset_mixin.py +0 -0
  60. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/storage_clients/_smart_apify/__init__.py +0 -0
  61. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/storage_clients/_smart_apify/_storage_client.py +0 -0
  62. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/storage_clients/py.typed +0 -0
  63. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/storages/__init__.py +0 -0
  64. {apify-3.4.2b2 → apify-3.4.2b3}/src/apify/storages/py.typed +0 -0
@@ -8,6 +8,7 @@ All notable changes to this project will be documented in this file.
8
8
  ### 🚜 Refactor
9
9
 
10
10
  - [**breaking**] Remove deprecated APIs ([#918](https://github.com/apify/apify-sdk-python/pull/918)) ([3e5728d](https://github.com/apify/apify-sdk-python/commit/3e5728d94cb8fd879d5a76e33a03d55792d835d5)) by [@vdusek](https://github.com/vdusek), closes [#635](https://github.com/apify/apify-sdk-python/issues/635)
11
+ - [**breaking**] Mark secondary arguments as keyword-only ([#917](https://github.com/apify/apify-sdk-python/pull/917)) ([eb94c99](https://github.com/apify/apify-sdk-python/commit/eb94c992ec4aba1cd7cf4dfd7a98731cb304651b)) by [@vdusek](https://github.com/vdusek), closes [#881](https://github.com/apify/apify-sdk-python/issues/881)
11
12
 
12
13
  ### ⚙️ Miscellaneous Tasks
13
14
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: apify
3
- Version: 3.4.2b2
3
+ Version: 3.4.2b3
4
4
  Summary: Apify SDK for Python
5
5
  Project-URL: Apify Homepage, https://apify.com
6
6
  Project-URL: Changelog, https://docs.apify.com/sdk/python/docs/changelog
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "apify"
7
- version = "3.4.2b2"
7
+ version = "3.4.2b3"
8
8
  description = "Apify SDK for Python"
9
9
  authors = [{ name = "Apify Technologies s.r.o.", email = "support@apify.com" }]
10
10
  license = { file = "LICENSE" }
@@ -84,7 +84,7 @@ dev = [
84
84
  "ruff~=0.15.0",
85
85
  "setuptools", # setuptools are used by pytest but not explicitly required
86
86
  "ty~=0.0.0",
87
- "types-cachetools<7.0.0",
87
+ "types-cachetools<7.0.1",
88
88
  "uvicorn[standard]",
89
89
  "werkzeug<4.0.0", # Werkzeug is used by httpserver
90
90
  ]
@@ -624,7 +624,7 @@ class _ActorType:
624
624
  )
625
625
 
626
626
  @_ensure_context
627
- async def push_data(self, data: dict | list[dict], charged_event_name: str | None = None) -> ChargeResult:
627
+ async def push_data(self, data: dict | list[dict], *, charged_event_name: str | None = None) -> ChargeResult:
628
628
  """Store an object or a list of objects to the default dataset of the current Actor run.
629
629
 
630
630
  Args:
@@ -700,7 +700,7 @@ class _ActorType:
700
700
  return input_value
701
701
 
702
702
  @_ensure_context
703
- async def get_value(self, key: str, default_value: Any = None) -> Any:
703
+ async def get_value(self, key: str, *, default_value: Any = None) -> Any:
704
704
  """Get a value from the default key-value store associated with the current Actor run.
705
705
 
706
706
  Args:
@@ -734,7 +734,7 @@ class _ActorType:
734
734
  return self._charging_manager_implementation
735
735
 
736
736
  @_ensure_context
737
- async def charge(self, event_name: str, count: int = 1) -> ChargeResult:
737
+ async def charge(self, event_name: str, *, count: int = 1) -> ChargeResult:
738
738
  """Charge for a specified number of events - sub-operations of the Actor.
739
739
 
740
740
  This is relevant only for the pay-per-event pricing model.
@@ -745,7 +745,7 @@ class _ActorType:
745
745
  """
746
746
  # charging_manager.charge() acquires charge_lock internally.
747
747
  charging_manager = self.get_charging_manager()
748
- return await charging_manager.charge(event_name, count)
748
+ return await charging_manager.charge(event_name, count=count)
749
749
 
750
750
  @overload
751
751
  def on(
@@ -1379,6 +1379,7 @@ class _ActorType:
1379
1379
  async def use_state(
1380
1380
  self,
1381
1381
  default_value: dict[str, JsonSerializable] | None = None,
1382
+ *,
1382
1383
  key: str | None = None,
1383
1384
  kvs_name: str | None = None,
1384
1385
  ) -> MutableMapping[str, JsonSerializable]:
@@ -55,7 +55,7 @@ class ChargingManager(Protocol):
55
55
  charge_lock: ReentrantLock
56
56
  """Lock to synchronize charge operations. Prevents race conditions between `charge` and `push_data` calls."""
57
57
 
58
- async def charge(self, event_name: str, count: int = 1) -> ChargeResult:
58
+ async def charge(self, event_name: str, *, count: int = 1) -> ChargeResult:
59
59
  """Charge for a specified number of events - sub-operations of the Actor.
60
60
 
61
61
  This is relevant only for the pay-per-event pricing model.
@@ -250,7 +250,7 @@ class ChargingManagerImplementation(ChargingManager):
250
250
  self.active = False
251
251
 
252
252
  @_ensure_context
253
- async def charge(self, event_name: str, count: int = 1) -> ChargeResult:
253
+ async def charge(self, event_name: str, *, count: int = 1) -> ChargeResult:
254
254
  # For runs that do not use the pay-per-event pricing model, just print a warning and return
255
255
  if self._pricing_model != 'PAY_PER_EVENT':
256
256
  if not self._not_ppe_warning_printed:
@@ -308,7 +308,7 @@ class ChargingManagerImplementation(ChargingManager):
308
308
  # the platform handles them automatically based on dataset writes.
309
309
  pass
310
310
  elif event_name in self._pricing_info:
311
- await self._client.run(self._actor_run_id).charge(event_name, charged_count)
311
+ await self._client.run(self._actor_run_id).charge(event_name, count=charged_count)
312
312
  else:
313
313
  logger.warning(f"Attempting to charge for an unknown event '{event_name}'")
314
314
 
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