A library to support aiohttp requests in a Queue, with callbacks for success, failure, or retry.
Project description
Pfmsoft-Aiohttp-Queue
A library to support aiohttp requests in a Queue, with callbacks for success, failure, or retry.
Free software: MIT license
Documentation: https://pfmsoft-aiohttp-queue.readthedocs.io.
Features
TODO
Credits
This package was created with Cookiecutter and the donalchilde/cookiecutter-pypackage-click project template, derived from the audreyr/cookiecutter-pypackage project template.
History
0.2.1 (2021-04-29)
FIX Make file_path optional for file callbacks.
CHANGE Make runners more clear. Single, Sequential, and Queue.
0.2.0 (2021-04-23)
CHANGE Refactor AiohttpAction to separate more clearly the inputs passed to aiohttp.ClientSession.request.
ADD AiohttpRequest object to hold request args.
ADD yaml file output callback
CHANGE file callbacks now have a file_path_template arg that can be evaluated with path_values. If file_path_template exists, it will overwrite file_path after template substitution.
CHANGE removed unused arg and kwarg params in callbacks.
0.1.8 (2021-04-17)
ADD add state and state message to callbacks, to allow more useful failure notifications.
ADD add state to AiohttpAction
ADD add observers to AiohttpAction, updated when action state is changed
CHANGE retry_limit to max_atttempts
CHANGE Simplify worker, add some stat reporting (log)
0.1.7 (2021-04-15)
ADD repr to all classes
ADD logging to action success, retry, fail
CHANGE drop log callbacks as redundant
FIXED csv callback not respecting path templates
0.1.6 (2021-04-06)
changed file callback template args name to path_values
0.1.5 (2021-04-05)
added pyyaml to requirements_dev.txt
0.1.4 (2021-04-05)
added CheckForPages callback - If an action detects paged data, makes more actions to retieve that data and appends it to the parent action.result
0.1.3 (2021-04-01)
fixed missing . in file_ending
0.1.2 (2021-04-01)
added option to process file path as a string.Template, with provided arguments, to file saving callbacks.
added SaveListOfDictResultToCSVFile callback.
0.1.1 (2021-03-29)
Dropped ResponseMetaToJson callback, and added response_meta_to_json() to AiohttpAction in its stead.
0.1.0 (2021-03-29)
First release on PyPI.
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 Pfmsoft-Aiohttp-Queue-0.2.1.tar.gz
.
File metadata
- Download URL: Pfmsoft-Aiohttp-Queue-0.2.1.tar.gz
- Upload date:
- Size: 27.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.9.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.0+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e107e4ea18fd0df56c948252a657739001a32ad047531bcc3ee0d55123eb327f |
|
MD5 | 235d8958626dde18816e8d0cfbe05168 |
|
BLAKE2b-256 | bdfda28afc46ebcd6809a1dfc4935cb433b5fba0d1f55f984cd8133843ee9fa6 |
File details
Details for the file Pfmsoft_Aiohttp_Queue-0.2.1-py2.py3-none-any.whl
.
File metadata
- Download URL: Pfmsoft_Aiohttp_Queue-0.2.1-py2.py3-none-any.whl
- Upload date:
- Size: 12.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.9.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.0+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 405bdcabb0ca517bd333d460f0a04f203274386e0685ee1090afd3936a8587c2 |
|
MD5 | 2757e06a11006df9d283956afe20a657 |
|
BLAKE2b-256 | 79315fc2f0cf35d47341c500173b7ea967716395a54a1e6ea758d6d5362b4064 |