Python interface to Zyte API
Project description
Python client libraries for Zyte API.
Command-line utility and asyncio-based library are provided by this package.
Installation
pip install zyte-api
zyte-api requires Python 3.7+.
API key
Make sure you have an API key for the Zyte API service. You can set ZYTE_API_KEY environment variable with the key to avoid passing it around explicitly.
Read the documentation for more information.
License is BSD 3-clause.
Documentation: https://python-zyte-api.readthedocs.io
Source code: https://github.com/zytedata/python-zyte-api
Issue tracker: https://github.com/zytedata/python-zyte-api/issues
Changes
0.4.3 (2022-11-10)
Connections are no longer reused between requests. This reduces the amount of ServerDisconnectedError exceptions.
0.4.2 (2022-10-28)
Bump minimum aiohttp version to 3.8.0, as earlier versions don’t support brotli decompression of responses
Declared Python 3.11 support
0.4.1 (2022-10-16)
Network errors, like server timeouts or disconnections, are now retried for up to 15 minutes, instead of 5 minutes.
0.4.0 (2022-09-20)
Require to install Brotli as a dependency. This changes the requests to have Accept-Encoding: br and automatically decompress brotli responses.
0.3.0 (2022-07-29)
Internal AggStats class is cleaned up:
AggStats.n_extracted_queries attribute is removed, as it was a duplicate of AggStats.n_results
AggStats.n_results is renamed to AggStats.n_success
AggStats.n_input_queries is removed as redundant and misleading; AggStats got a new AggStats.n_processed property instead.
This change is backwards incompatible if you used stats directly.
0.2.1 (2022-07-29)
aiohttp.client_exceptions.ClientConnectorError is now treated as a network error and retried accordingly.
Removed the unused zyte_api.sync module.
0.2.0 (2022-07-14)
Temporary download errors are now retried 3 times by default. They were not retried in previous releases.
0.1.4 (2022-05-21)
This release contains usability improvements to the command-line script:
Instead of python -m zyte_api you can now run it as zyte-api;
the type of the input file (--intype argument) is guessed now, based on file extension and content; .jl, .jsonl and .txt files are supported.
0.1.3 (2022-02-03)
Minor documenation fix
Remove support for Python 3.6
Added support for Python 3.10
0.1.2 (2021-11-10)
Default timeouts changed
0.1.1 (2021-11-01)
CHANGES.rst updated properly
0.1.0 (2021-11-01)
Initial release.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file zyte-api-0.4.3.tar.gz
.
File metadata
- Download URL: zyte-api-0.4.3.tar.gz
- Upload date:
- Size: 13.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73625de412e7f108cc2a0bd768aad143fba632cba543c304f37431a6d7ca7278 |
|
MD5 | 0cf8484efa178cb653fd1725752e10e8 |
|
BLAKE2b-256 | 0634e70c7b088356126ccab08db8c56125f5a4796a1d328c95ab0a11a5581ab4 |
File details
Details for the file zyte_api-0.4.3-py3-none-any.whl
.
File metadata
- Download URL: zyte_api-0.4.3-py3-none-any.whl
- Upload date:
- Size: 13.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bdb3a1cbcd9f9fc2ef544da2b7a5639436a20efb1a681510d1bec8275828908f |
|
MD5 | 9a6bf7ca665c5a2b5c1f6d72a619bc84 |
|
BLAKE2b-256 | d42f7ab813e691fca250a3b5293f10e02b64d4088b2d92a6e15b0867eb6ce105 |