Skip to main content

A library to support aiohttp requests in a Queue, with callbacks for success, failure, or retry.

Project description

Pfmsoft-Aiohttp-Queue

Stable / master branch: PyPi-badge Master / Stable Documentation Status

Latest / dev branch: dev / Latest

A library to support aiohttp requests in a Queue, with callbacks for success, failure, or retry.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Pfmsoft-Aiohttp-Queue-0.2.1.tar.gz (27.3 kB view hashes)

Uploaded Source

Built Distribution

Pfmsoft_Aiohttp_Queue-0.2.1-py2.py3-none-any.whl (12.1 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page