🚀 Features
1.9.4 (2025-04-24)
🐛 Bug Fixes
1.9.3 (2025-04-14)
🚀 Features
1.9.2 (2025-02-14)
🐛 Bug Fixes
1.9.1 (2025-02-07)
🐛 Bug Fixes
1.9.0 (2025-02-04)
🚀 Features
Fixed
- batch add requests can handle more than 25 requests
Added
- add
headers_template
kwarg to webhook create and update
- allow passing list of fields to
unwind
parameter in dataset item listing endpoints
Others
- drop support for Python 3.8
Fixed
- fix breaking change (sync -> async) in 1.7.0
- fix getting storages of the last run
Fixed
- fix abort of last task run
- fix abort of last
Actor
run
ActorClient
's and TaskClient
's last_run
methods are asynchronous
Added
- added
monthlyUsage()
and limits()
methods to UserClient
Added
- added
log()
method to BuildClient
(see API reference for more context)
Internal changes
- Relative imports were replaced with absolute imports
Fixed
- Fixed
_BaseHTTPClient._parse_params()
method to ensure correct conversion of API list parameters
Internal changes
- Migrate from Autopep8 and Flake8 to Ruff
Added
- added support for Python 3.12
- added DELETE to Actor runs
- added DELETE to Actor builds
Internal changes
- rewrote documentation publication to use Docusaurus
- removed PR Toolkit workflow
Added
- added
StoreCollectionClient
for listing Actors in the Apify Store
- added support for specifying the
max_items
parameter for pay-per result Actors and their runs
Internal changes
- improved logging of HTTP requests
- removed
pytest-randomly
Pytest plugin
- added
RunClient.reboot
method to reboot Actor runs
Internal changes
- simplified code via
flake8-simplify
- unified indentation in configuration files
Internal changes
- started importing general constants and utilities from the
apify-shared
library
Added
- added
list_and_lock_head
, delete_request_lock
, prolong_request_lock
methods to RequestQueueClient
- added
batch_add_requests
, batch_delete_requests
, list_requests
methods RequestQueueClient
Fixed
- fixed encoding webhook lists in request parameters
Fixed
- relaxed dependency requirements to improve compatibility with other libraries
Added
- added option to change the build, memory limit and timeout when resurrecting a run
Internal changes
Internal changes
- changed GitHub workflows to use new secrets
Added
- added support for
is_status_message_terminal
flag in Actor run status message update
Internal changes
- switched from
setup.py
to pyproject.toml
for specifying project setup
Breaking changes
- dropped support for Python 3.7, added support for Python 3.11
- unified methods for streaming resources
- switched underlying HTTP library from
requests
to httpx
Added
- added support for asynchronous usage via
ApifyClientAsync
- added configurable socket timeout for requests to the Apify API
- added
py.typed
file to signal type checkers that this package is typed
- added method to update status message for a run
- added option to set up webhooks for actor builds
- added logger with basic debugging info
- added support for
schema
parameter in get_or_create
method for datasets and key-value stores
- added support for
title
parameter in task and schedule methods
- added
x-apify-workflow-key
header support
- added support for
flatten
and view
parameters in dataset items methods
- added support for
origin
parameter in actor/task run methods
- added clients for actor version environment variables
Fixed
- disallowed
NaN
and Infinity
values in JSONs sent to the Apify API
Internal changes
- simplified retrying with exponential backoff
- improved checks for "not found" errors
- simplified flake8 config
- updated development dependencies
- simplified development scripts
- updated GitHub Actions versions to fix deprecations
- unified unit test style
- unified preparing resource representation
- updated output management in GitHub Workflows to fix deprecations
- improved type hints across codebase
- added option to manually publish the package with a workflow dispatch
- added
pre-commit
to run code quality checks before committing
- converted
unittest
-style tests to pytest
-style tests
- backported project setup improvements from
apify-sdk-python
Removed
- Dropped support for single-file actors
Internal changes
- updated dependencies
- fixed some lint issues in shell scripts and
setup.py
- added Python 3.10 to unit test roster
Changed
- improved retrying broken API server connections
Fixed
- fixed timeout value in actively waiting for a run to finish
Internal changes
- updated development dependencies
Changed
- improved handling of
Enum
arguments
- improved support for storing more data types in key-value stores
Fixed
- fixed values of some
ActorJobStatus
Enum
members
Added
- added the
test()
method to the webhook client
- added support for indicating the pagination direction in the
ListPage
objects
Changed
- improved support for storing more data types in datasets
Fixed
- fixed return type in the
DatasetClient.list_items()
method docs
Internal changes
- added human-friendly names to the jobs in Github Action workflows
- updated development dependencies