A simple and easy to use asyncio & aiohttp libraries.
Project description
AIOEase
AIOEase
simplifies asynchronous HTTP requests in Python, offering a straightforward interface for handling multiple requests asynchronously with rate limiting.
Proved a list of dictionaries and the requests_per_second_max
(default 1). Returns the status and response as a list of dictionaries.
Installation
pip install aioease
Usage
Execute multiple HTTP requests asynchronously with ease:
from aioease import execute
requests = [
{"url": "https://some-url", "method": "get", "data": {"key": "value"}, "headers": {"header": "value"}},
{"url": "https://some-url", "method": "post", "data": {"key": "value"}, "headers": {"header": "value"}},
]
responses = execute(requests,requests_per_second_max=10)
Configuring Logging
Control the verbosity of logs for debugging:
import logging
logging.basicConfig(level=logging.INFO)
logging.basicConfig(level=logging.DEBUG)
logging.basicConfig(level=logging.ERROR)
License
Available under the MIT License.
Support
For support, please open an issue on the GitHub issue tracker.
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.