apify-client 3.2.2b5__tar.gz → 3.2.2b7__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 (70) hide show
  1. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/CHANGELOG.md +4 -0
  2. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/PKG-INFO +1 -1
  3. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/pyproject.toml +1 -1
  4. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/pyproject.toml.orig +1 -1
  5. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/_resource_clients/actor.py +55 -10
  6. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/_resource_clients/actor_collection.py +22 -4
  7. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/_resource_clients/dataset.py +6 -0
  8. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/_resource_clients/log.py +14 -0
  9. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/CONTRIBUTING.md +0 -0
  10. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/LICENSE +0 -0
  11. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/README.md +0 -0
  12. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/__init__.py +0 -0
  13. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/_apify_client.py +0 -0
  14. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/_client_registry.py +0 -0
  15. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/_consts.py +0 -0
  16. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/_docs.py +0 -0
  17. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/_literals.py +0 -0
  18. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/_logging.py +0 -0
  19. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/_models.py +0 -0
  20. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/_pagination.py +0 -0
  21. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/_resource_clients/__init__.py +0 -0
  22. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/_resource_clients/_resource_client.py +0 -0
  23. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/_resource_clients/actor_env_var.py +0 -0
  24. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/_resource_clients/actor_env_var_collection.py +0 -0
  25. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/_resource_clients/actor_version.py +0 -0
  26. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/_resource_clients/actor_version_collection.py +0 -0
  27. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/_resource_clients/build.py +0 -0
  28. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/_resource_clients/build_collection.py +0 -0
  29. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/_resource_clients/dataset_collection.py +0 -0
  30. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/_resource_clients/key_value_store.py +0 -0
  31. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/_resource_clients/key_value_store_collection.py +0 -0
  32. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/_resource_clients/request_queue.py +0 -0
  33. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/_resource_clients/request_queue_collection.py +0 -0
  34. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/_resource_clients/run.py +0 -0
  35. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/_resource_clients/run_collection.py +0 -0
  36. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/_resource_clients/schedule.py +0 -0
  37. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/_resource_clients/schedule_collection.py +0 -0
  38. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/_resource_clients/store_collection.py +0 -0
  39. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/_resource_clients/task.py +0 -0
  40. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/_resource_clients/task_collection.py +0 -0
  41. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/_resource_clients/user.py +0 -0
  42. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/_resource_clients/webhook.py +0 -0
  43. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/_resource_clients/webhook_collection.py +0 -0
  44. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/_resource_clients/webhook_dispatch.py +0 -0
  45. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/_resource_clients/webhook_dispatch_collection.py +0 -0
  46. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/_statistics.py +0 -0
  47. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/_status_message_watcher.py +0 -0
  48. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/_streamed_log.py +0 -0
  49. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/_typeddicts.py +0 -0
  50. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/_utils/__init__.py +0 -0
  51. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/_utils/crypto.py +0 -0
  52. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/_utils/encoding.py +0 -0
  53. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/_utils/errors.py +0 -0
  54. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/_utils/http.py +0 -0
  55. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/_utils/time.py +0 -0
  56. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/_utils/try_import.py +0 -0
  57. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/_utils/wait_for_resources.py +0 -0
  58. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/errors.py +0 -0
  59. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/http_clients/__init__.py +0 -0
  60. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/http_clients/_base.py +0 -0
  61. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/http_clients/_httpx2.py +0 -0
  62. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/http_clients/_impit.py +0 -0
  63. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/http_clients/_streamed_body.py +0 -0
  64. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/http_compressors/__init__.py +0 -0
  65. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/http_compressors/_base.py +0 -0
  66. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/http_compressors/_brotli.py +0 -0
  67. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/http_compressors/_gzip.py +0 -0
  68. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/http_compressors/_resolve.py +0 -0
  69. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/py.typed +0 -0
  70. {apify_client-3.2.2b5 → apify_client-3.2.2b7}/src/apify_client/types.py +0 -0
@@ -11,10 +11,14 @@ All notable changes to this project will be documented in this file.
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
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)
14
+ - Add missing Standby fields to Actor update and create ([#1107](https://github.com/apify/apify-client-python/pull/1107)) ([8dd5b67](https://github.com/apify/apify-client-python/commit/8dd5b678d1440143f47dc57e29d6a2ef251d041d)) by [@vdusek](https://github.com/vdusek), closes [#1101](https://github.com/apify/apify-client-python/issues/1101)
15
+ - Add flatten to dataset stream_items ([#1106](https://github.com/apify/apify-client-python/pull/1106)) ([1d1e9f6](https://github.com/apify/apify-client-python/commit/1d1e9f65e6fb6bf752f5dd552b9a2424c73f52fe)) by [@vdusek](https://github.com/vdusek), closes [#1100](https://github.com/apify/apify-client-python/issues/1100)
14
16
 
15
17
  ### 🐛 Bug Fixes
16
18
 
17
19
  - 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)
20
+ - Rename `build_tag` to `build` in `validate_input()` ([#1110](https://github.com/apify/apify-client-python/pull/1110)) ([0616e1a](https://github.com/apify/apify-client-python/commit/0616e1a0a5354f609eb5759f3729f6795a3192c4)) by [@vdusek](https://github.com/vdusek), closes [#1091](https://github.com/apify/apify-client-python/issues/1091)
21
+ - Type `example_run_input_body` as `str` ([#1105](https://github.com/apify/apify-client-python/pull/1105)) ([a1047fa](https://github.com/apify/apify-client-python/commit/a1047faee0c1065844b9639a47cb02422f9302ff)) by [@vdusek](https://github.com/vdusek), closes [#1102](https://github.com/apify/apify-client-python/issues/1102)
18
22
 
19
23
  ### ⚡ Performance
20
24
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: apify_client
3
- Version: 3.2.2b5
3
+ Version: 3.2.2b7
4
4
  Summary: Apify API client for Python
5
5
  Keywords: apify,api,client,automation,crawling,scraping
6
6
  Author: Apify Technologies s.r.o.
@@ -4,7 +4,7 @@ build-backend = "uv_build"
4
4
 
5
5
  [project]
6
6
  name = "apify_client"
7
- version = "3.2.2b5"
7
+ version = "3.2.2b7"
8
8
  description = "Apify API client for Python"
9
9
  license = "Apache-2.0"
10
10
  license-files = ["LICENSE"]
@@ -4,7 +4,7 @@ build-backend = "uv_build"
4
4
 
5
5
  [project]
6
6
  name = "apify_client"
7
- version = "3.2.2b5"
7
+ version = "3.2.2b7"
8
8
  description = "Apify API client for Python"
9
9
  authors = [{ name = "Apify Technologies s.r.o.", email = "support@apify.com" }]
10
10
  license = "Apache-2.0"
@@ -1,5 +1,6 @@
1
1
  from __future__ import annotations
2
2
 
3
+ import warnings
3
4
  from typing import TYPE_CHECKING, Any, Literal
4
5
 
5
6
  from pydantic import TypeAdapter
@@ -119,7 +120,7 @@ class ActorClient(ResourceClient):
119
120
  default_run_max_items: int | None = None,
120
121
  default_run_memory_mbytes: int | None = None,
121
122
  default_run_timeout: timedelta | None = None,
122
- example_run_input_body: Any = None,
123
+ example_run_input_body: str | None = None,
123
124
  example_run_input_content_type: str | None = None,
124
125
  actor_standby_is_enabled: bool | None = None,
125
126
  actor_standby_desired_requests_per_actor_run: int | None = None,
@@ -127,6 +128,8 @@ class ActorClient(ResourceClient):
127
128
  actor_standby_idle_timeout: timedelta | None = None,
128
129
  actor_standby_build: str | None = None,
129
130
  actor_standby_memory_mbytes: int | None = None,
131
+ actor_standby_disable_standby_fields_override: bool | None = None,
132
+ actor_standby_should_pass_actor_input: bool | None = None,
130
133
  pricing_infos: list[dict[str, Any]] | None = None,
131
134
  actor_permission_level: ActorPermissionLevel | None = None,
132
135
  tagged_builds: dict[str, dict[str, str] | None] | None = None,
@@ -153,7 +156,8 @@ class ActorClient(ResourceClient):
153
156
  by runs of this Actor, if the Actor is charged per result.
154
157
  default_run_memory_mbytes: Default amount of memory allocated for the runs of this Actor, in megabytes.
155
158
  default_run_timeout: Default timeout for the runs of this Actor.
156
- example_run_input_body: Input to be prefilled as default input to new users of this Actor.
159
+ example_run_input_body: Input to be prefilled as default input to new users of this Actor, serialized
160
+ as a string (e.g. `json.dumps(input)` for a JSON input).
157
161
  example_run_input_content_type: The content type of the example run input.
158
162
  actor_standby_is_enabled: Whether the Actor Standby is enabled.
159
163
  actor_standby_desired_requests_per_actor_run: The desired number of concurrent HTTP requests for
@@ -164,6 +168,10 @@ class ActorClient(ResourceClient):
164
168
  it will be shut down.
165
169
  actor_standby_build: The build tag or number to run when the Actor is in Standby mode.
166
170
  actor_standby_memory_mbytes: The memory in megabytes to use when the Actor is in Standby mode.
171
+ actor_standby_disable_standby_fields_override: If true, prevents the Standby configuration from being
172
+ overridden elsewhere.
173
+ actor_standby_should_pass_actor_input: Whether to pass the Actor input to the Standby runs. If false,
174
+ the Standby runs start with no input.
167
175
  pricing_infos: A list of objects that describes the pricing of the Actor.
168
176
  actor_permission_level: The permission level of the Actor on Apify platform.
169
177
  tagged_builds: A dictionary mapping build tag names to their settings. Use it to create, update,
@@ -200,6 +208,8 @@ class ActorClient(ResourceClient):
200
208
  idle_timeout_secs=to_seconds(actor_standby_idle_timeout, as_int=True),
201
209
  build=actor_standby_build,
202
210
  memory_mbytes=actor_standby_memory_mbytes,
211
+ disable_standby_fields_override=actor_standby_disable_standby_fields_override,
212
+ should_pass_actor_input=actor_standby_should_pass_actor_input,
203
213
  ),
204
214
  example_run_input=ExampleRunInput(
205
215
  body=example_run_input_body,
@@ -567,9 +577,10 @@ class ActorClient(ResourceClient):
567
577
  self,
568
578
  run_input: Any = None,
569
579
  *,
570
- build_tag: str | None = None,
580
+ build: str | None = None,
571
581
  content_type: str | None = None,
572
582
  timeout: Timeout = 'short',
583
+ build_tag: str | None = None,
573
584
  ) -> bool:
574
585
  """Validate an input for the Actor that defines an input schema.
575
586
 
@@ -578,13 +589,25 @@ class ActorClient(ResourceClient):
578
589
  including an `io.IOBase` stream such as an open file, an iterable of byte chunks, or a streamed
579
590
  `HttpResponse`, which are uploaded in chunks without being held in memory. Streaming is experimental,
580
591
  and its behavior may change in future versions.
581
- build_tag: The Actor's build tag.
592
+ build: The Actor build to validate the input against. It can be either a build tag or build number. By
593
+ default, the build specified in the default run configuration for the Actor (typically latest) is used.
582
594
  content_type: The content type of the input.
583
595
  timeout: Timeout for the API HTTP request.
596
+ build_tag: Deprecated alias of `build`. Will be removed in v4.
584
597
 
585
598
  Returns:
586
599
  True if the input is valid, else raise an exception with validation error details.
587
600
  """
601
+ if build_tag is not None:
602
+ warnings.warn(
603
+ 'The `build_tag` argument is deprecated and will be removed in v4. Use `build` instead.',
604
+ DeprecationWarning,
605
+ stacklevel=3,
606
+ )
607
+ if build is not None:
608
+ raise ValueError('Pass only one of `build` and `build_tag`.')
609
+ build = build_tag
610
+
588
611
  run_input, content_type = encode_key_value_store_record_value(run_input, content_type=content_type)
589
612
 
590
613
  self._http_client.call(
@@ -592,7 +615,7 @@ class ActorClient(ResourceClient):
592
615
  method='POST',
593
616
  headers={'content-type': content_type},
594
617
  data=run_input,
595
- params=self._build_params(build=build_tag),
618
+ params=self._build_params(build=build),
596
619
  timeout=timeout,
597
620
  )
598
621
 
@@ -653,7 +676,7 @@ class ActorClientAsync(ResourceClientAsync):
653
676
  default_run_max_items: int | None = None,
654
677
  default_run_memory_mbytes: int | None = None,
655
678
  default_run_timeout: timedelta | None = None,
656
- example_run_input_body: Any = None,
679
+ example_run_input_body: str | None = None,
657
680
  example_run_input_content_type: str | None = None,
658
681
  actor_standby_is_enabled: bool | None = None,
659
682
  actor_standby_desired_requests_per_actor_run: int | None = None,
@@ -661,6 +684,8 @@ class ActorClientAsync(ResourceClientAsync):
661
684
  actor_standby_idle_timeout: timedelta | None = None,
662
685
  actor_standby_build: str | None = None,
663
686
  actor_standby_memory_mbytes: int | None = None,
687
+ actor_standby_disable_standby_fields_override: bool | None = None,
688
+ actor_standby_should_pass_actor_input: bool | None = None,
664
689
  pricing_infos: list[dict[str, Any]] | None = None,
665
690
  actor_permission_level: ActorPermissionLevel | None = None,
666
691
  tagged_builds: dict[str, dict[str, str] | None] | None = None,
@@ -687,7 +712,8 @@ class ActorClientAsync(ResourceClientAsync):
687
712
  by runs of this Actor, if the Actor is charged per result.
688
713
  default_run_memory_mbytes: Default amount of memory allocated for the runs of this Actor, in megabytes.
689
714
  default_run_timeout: Default timeout for the runs of this Actor.
690
- example_run_input_body: Input to be prefilled as default input to new users of this Actor.
715
+ example_run_input_body: Input to be prefilled as default input to new users of this Actor, serialized
716
+ as a string (e.g. `json.dumps(input)` for a JSON input).
691
717
  example_run_input_content_type: The content type of the example run input.
692
718
  actor_standby_is_enabled: Whether the Actor Standby is enabled.
693
719
  actor_standby_desired_requests_per_actor_run: The desired number of concurrent HTTP requests for
@@ -698,6 +724,10 @@ class ActorClientAsync(ResourceClientAsync):
698
724
  it will be shut down.
699
725
  actor_standby_build: The build tag or number to run when the Actor is in Standby mode.
700
726
  actor_standby_memory_mbytes: The memory in megabytes to use when the Actor is in Standby mode.
727
+ actor_standby_disable_standby_fields_override: If true, prevents the Standby configuration from being
728
+ overridden elsewhere.
729
+ actor_standby_should_pass_actor_input: Whether to pass the Actor input to the Standby runs. If false,
730
+ the Standby runs start with no input.
701
731
  pricing_infos: A list of objects that describes the pricing of the Actor.
702
732
  actor_permission_level: The permission level of the Actor on Apify platform.
703
733
  tagged_builds: A dictionary mapping build tag names to their settings. Use it to create, update,
@@ -734,6 +764,8 @@ class ActorClientAsync(ResourceClientAsync):
734
764
  idle_timeout_secs=to_seconds(actor_standby_idle_timeout, as_int=True),
735
765
  build=actor_standby_build,
736
766
  memory_mbytes=actor_standby_memory_mbytes,
767
+ disable_standby_fields_override=actor_standby_disable_standby_fields_override,
768
+ should_pass_actor_input=actor_standby_should_pass_actor_input,
737
769
  ),
738
770
  example_run_input=ExampleRunInput(
739
771
  body=example_run_input_body,
@@ -1102,9 +1134,10 @@ class ActorClientAsync(ResourceClientAsync):
1102
1134
  self,
1103
1135
  run_input: Any = None,
1104
1136
  *,
1105
- build_tag: str | None = None,
1137
+ build: str | None = None,
1106
1138
  content_type: str | None = None,
1107
1139
  timeout: Timeout = 'short',
1140
+ build_tag: str | None = None,
1108
1141
  ) -> bool:
1109
1142
  """Validate an input for the Actor that defines an input schema.
1110
1143
 
@@ -1113,13 +1146,25 @@ class ActorClientAsync(ResourceClientAsync):
1113
1146
  including an `io.IOBase` stream such as an open file, an iterable of byte chunks, or a streamed
1114
1147
  `HttpResponse`, which are uploaded in chunks without being held in memory. Streaming is experimental,
1115
1148
  and its behavior may change in future versions.
1116
- build_tag: The Actor's build tag.
1149
+ build: The Actor build to validate the input against. It can be either a build tag or build number. By
1150
+ default, the build specified in the default run configuration for the Actor (typically latest) is used.
1117
1151
  content_type: The content type of the input.
1118
1152
  timeout: Timeout for the API HTTP request.
1153
+ build_tag: Deprecated alias of `build`. Will be removed in v4.
1119
1154
 
1120
1155
  Returns:
1121
1156
  True if the input is valid, else raise an exception with validation error details.
1122
1157
  """
1158
+ if build_tag is not None:
1159
+ warnings.warn(
1160
+ 'The `build_tag` argument is deprecated and will be removed in v4. Use `build` instead.',
1161
+ DeprecationWarning,
1162
+ stacklevel=3,
1163
+ )
1164
+ if build is not None:
1165
+ raise ValueError('Pass only one of `build` and `build_tag`.')
1166
+ build = build_tag
1167
+
1123
1168
  run_input, content_type = encode_key_value_store_record_value(run_input, content_type=content_type)
1124
1169
 
1125
1170
  await self._http_client.call(
@@ -1127,7 +1172,7 @@ class ActorClientAsync(ResourceClientAsync):
1127
1172
  method='POST',
1128
1173
  headers={'content-type': content_type},
1129
1174
  data=run_input,
1130
- params=self._build_params(build=build_tag),
1175
+ params=self._build_params(build=build),
1131
1176
  timeout=timeout,
1132
1177
  )
1133
1178
 
@@ -123,7 +123,7 @@ class ActorCollectionClient(ResourceClient):
123
123
  default_run_max_items: int | None = None,
124
124
  default_run_memory_mbytes: int | None = None,
125
125
  default_run_timeout: timedelta | None = None,
126
- example_run_input_body: Any = None,
126
+ example_run_input_body: str | None = None,
127
127
  example_run_input_content_type: str | None = None,
128
128
  actor_standby_is_enabled: bool | None = None,
129
129
  actor_standby_desired_requests_per_actor_run: int | None = None,
@@ -131,6 +131,8 @@ class ActorCollectionClient(ResourceClient):
131
131
  actor_standby_idle_timeout: timedelta | None = None,
132
132
  actor_standby_build: str | None = None,
133
133
  actor_standby_memory_mbytes: int | None = None,
134
+ actor_standby_disable_standby_fields_override: bool | None = None,
135
+ actor_standby_should_pass_actor_input: bool | None = None,
134
136
  timeout: Timeout = 'medium',
135
137
  ) -> Actor:
136
138
  """Create a new Actor.
@@ -154,7 +156,8 @@ class ActorCollectionClient(ResourceClient):
154
156
  of this Actor, if the Actor is charged per result.
155
157
  default_run_memory_mbytes: Default amount of memory allocated for the runs of this Actor, in megabytes.
156
158
  default_run_timeout: Default timeout for the runs of this Actor.
157
- example_run_input_body: Input to be prefilled as default input to new users of this Actor.
159
+ example_run_input_body: Input to be prefilled as default input to new users of this Actor, serialized
160
+ as a string (e.g. `json.dumps(input)` for a JSON input).
158
161
  example_run_input_content_type: The content type of the example run input.
159
162
  actor_standby_is_enabled: Whether the Actor Standby is enabled.
160
163
  actor_standby_desired_requests_per_actor_run: The desired number of concurrent HTTP requests for
@@ -165,6 +168,10 @@ class ActorCollectionClient(ResourceClient):
165
168
  it will be shut down.
166
169
  actor_standby_build: The build tag or number to run when the Actor is in Standby mode.
167
170
  actor_standby_memory_mbytes: The memory in megabytes to use when the Actor is in Standby mode.
171
+ actor_standby_disable_standby_fields_override: If true, prevents the Standby configuration from being
172
+ overridden elsewhere.
173
+ actor_standby_should_pass_actor_input: Whether to pass the Actor input to the Standby runs. If false,
174
+ the Standby runs start with no input.
168
175
  timeout: Timeout for the API HTTP request.
169
176
 
170
177
  Returns:
@@ -194,6 +201,8 @@ class ActorCollectionClient(ResourceClient):
194
201
  idle_timeout_secs=to_seconds(actor_standby_idle_timeout, as_int=True),
195
202
  build=actor_standby_build,
196
203
  memory_mbytes=actor_standby_memory_mbytes,
204
+ disable_standby_fields_override=actor_standby_disable_standby_fields_override,
205
+ should_pass_actor_input=actor_standby_should_pass_actor_input,
197
206
  ),
198
207
  example_run_input=ExampleRunInput(
199
208
  body=example_run_input_body,
@@ -302,7 +311,7 @@ class ActorCollectionClientAsync(ResourceClientAsync):
302
311
  default_run_max_items: int | None = None,
303
312
  default_run_memory_mbytes: int | None = None,
304
313
  default_run_timeout: timedelta | None = None,
305
- example_run_input_body: Any = None,
314
+ example_run_input_body: str | None = None,
306
315
  example_run_input_content_type: str | None = None,
307
316
  actor_standby_is_enabled: bool | None = None,
308
317
  actor_standby_desired_requests_per_actor_run: int | None = None,
@@ -310,6 +319,8 @@ class ActorCollectionClientAsync(ResourceClientAsync):
310
319
  actor_standby_idle_timeout: timedelta | None = None,
311
320
  actor_standby_build: str | None = None,
312
321
  actor_standby_memory_mbytes: int | None = None,
322
+ actor_standby_disable_standby_fields_override: bool | None = None,
323
+ actor_standby_should_pass_actor_input: bool | None = None,
313
324
  timeout: Timeout = 'medium',
314
325
  ) -> Actor:
315
326
  """Create a new Actor.
@@ -333,7 +344,8 @@ class ActorCollectionClientAsync(ResourceClientAsync):
333
344
  of this Actor, if the Actor is charged per result.
334
345
  default_run_memory_mbytes: Default amount of memory allocated for the runs of this Actor, in megabytes.
335
346
  default_run_timeout: Default timeout for the runs of this Actor.
336
- example_run_input_body: Input to be prefilled as default input to new users of this Actor.
347
+ example_run_input_body: Input to be prefilled as default input to new users of this Actor, serialized
348
+ as a string (e.g. `json.dumps(input)` for a JSON input).
337
349
  example_run_input_content_type: The content type of the example run input.
338
350
  actor_standby_is_enabled: Whether the Actor Standby is enabled.
339
351
  actor_standby_desired_requests_per_actor_run: The desired number of concurrent HTTP requests for
@@ -344,6 +356,10 @@ class ActorCollectionClientAsync(ResourceClientAsync):
344
356
  it will be shut down.
345
357
  actor_standby_build: The build tag or number to run when the Actor is in Standby mode.
346
358
  actor_standby_memory_mbytes: The memory in megabytes to use when the Actor is in Standby mode.
359
+ actor_standby_disable_standby_fields_override: If true, prevents the Standby configuration from being
360
+ overridden elsewhere.
361
+ actor_standby_should_pass_actor_input: Whether to pass the Actor input to the Standby runs. If false,
362
+ the Standby runs start with no input.
347
363
  timeout: Timeout for the API HTTP request.
348
364
 
349
365
  Returns:
@@ -373,6 +389,8 @@ class ActorCollectionClientAsync(ResourceClientAsync):
373
389
  idle_timeout_secs=to_seconds(actor_standby_idle_timeout, as_int=True),
374
390
  build=actor_standby_build,
375
391
  memory_mbytes=actor_standby_memory_mbytes,
392
+ disable_standby_fields_override=actor_standby_disable_standby_fields_override,
393
+ should_pass_actor_input=actor_standby_should_pass_actor_input,
376
394
  ),
377
395
  example_run_input=ExampleRunInput(
378
396
  body=example_run_input_body,
@@ -402,6 +402,7 @@ class DatasetClient(ResourceClient):
402
402
  skip_hidden: bool | None = None,
403
403
  xml_root: str | None = None,
404
404
  xml_row: str | None = None,
405
+ flatten: list[str] | None = None,
405
406
  signature: str | None = None,
406
407
  timeout: Timeout = 'long',
407
408
  ) -> Iterator[HttpResponse]:
@@ -445,6 +446,7 @@ class DatasetClient(ResourceClient):
445
446
  xml_root: Overrides default root element name of xml output. By default the root element is items.
446
447
  xml_row: Overrides default element name that wraps each page or page function result object in xml output.
447
448
  By default the element name is item.
449
+ flatten: A list of fields that should be flattened.
448
450
  signature: Signature used to access the items.
449
451
  timeout: Timeout for the API HTTP request.
450
452
 
@@ -469,6 +471,7 @@ class DatasetClient(ResourceClient):
469
471
  skipHidden=skip_hidden,
470
472
  xmlRoot=xml_root,
471
473
  xmlRow=xml_row,
474
+ flatten=flatten,
472
475
  signature=signature,
473
476
  )
474
477
 
@@ -964,6 +967,7 @@ class DatasetClientAsync(ResourceClientAsync):
964
967
  skip_hidden: bool | None = None,
965
968
  xml_root: str | None = None,
966
969
  xml_row: str | None = None,
970
+ flatten: list[str] | None = None,
967
971
  signature: str | None = None,
968
972
  timeout: Timeout = 'long',
969
973
  ) -> AsyncIterator[HttpResponse]:
@@ -1007,6 +1011,7 @@ class DatasetClientAsync(ResourceClientAsync):
1007
1011
  xml_root: Overrides default root element name of xml output. By default the root element is items.
1008
1012
  xml_row: Overrides default element name that wraps each page or page function result object in xml output.
1009
1013
  By default the element name is item.
1014
+ flatten: A list of fields that should be flattened.
1010
1015
  signature: Signature used to access the items.
1011
1016
  timeout: Timeout for the API HTTP request.
1012
1017
 
@@ -1031,6 +1036,7 @@ class DatasetClientAsync(ResourceClientAsync):
1031
1036
  skipHidden=skip_hidden,
1032
1037
  xmlRoot=xml_root,
1033
1038
  xmlRow=xml_row,
1039
+ flatten=flatten,
1034
1040
  signature=signature,
1035
1041
  )
1036
1042
 
@@ -69,6 +69,10 @@ class LogClient(ResourceClient):
69
69
 
70
70
  https://docs.apify.com/api/v2#/reference/logs/log/get-log
71
71
 
72
+ 404s collapse to `None` only when this client targets a specific log by ID (e.g.
73
+ `client.log(run_id).get_as_bytes()`). For chained clients without a `resource_id` (e.g.
74
+ `run.log().get_as_bytes()`), a 404 is ambiguous and propagates.
75
+
72
76
  Args:
73
77
  raw: If true, the log will include formatting. For example, coloring character sequences.
74
78
  timeout: Timeout for the API HTTP request.
@@ -97,6 +101,9 @@ class LogClient(ResourceClient):
97
101
 
98
102
  https://docs.apify.com/api/v2#/reference/logs/log/get-log
99
103
 
104
+ 404s collapse to `None` only when this client targets a specific log by ID (e.g. `client.log(run_id).stream()`).
105
+ For chained clients without a `resource_id` (e.g. `run.log().stream()`), a 404 is ambiguous and propagates.
106
+
100
107
  Args:
101
108
  raw: If true, the log will include formatting. For example, coloring character sequences.
102
109
  timeout: Timeout for the API HTTP request.
@@ -177,6 +184,10 @@ class LogClientAsync(ResourceClientAsync):
177
184
 
178
185
  https://docs.apify.com/api/v2#/reference/logs/log/get-log
179
186
 
187
+ 404s collapse to `None` only when this client targets a specific log by ID (e.g.
188
+ `client.log(run_id).get_as_bytes()`). For chained clients without a `resource_id` (e.g.
189
+ `run.log().get_as_bytes()`), a 404 is ambiguous and propagates.
190
+
180
191
  Args:
181
192
  raw: If true, the log will include formatting. For example, coloring character sequences.
182
193
  timeout: Timeout for the API HTTP request.
@@ -205,6 +216,9 @@ class LogClientAsync(ResourceClientAsync):
205
216
 
206
217
  https://docs.apify.com/api/v2#/reference/logs/log/get-log
207
218
 
219
+ 404s collapse to `None` only when this client targets a specific log by ID (e.g. `client.log(run_id).stream()`).
220
+ For chained clients without a `resource_id` (e.g. `run.log().stream()`), a 404 is ambiguous and propagates.
221
+
208
222
  Args:
209
223
  raw: If true, the log will include formatting. For example, coloring character sequences.
210
224
  timeout: Timeout for the API HTTP request.
File without changes
File without changes