Some checks failed
Package Python / Package (push) Successful in 25s
Run Python tests (through Pytest) / Test (push) Successful in 25s
Python Ruff Code Quality / ruff (push) Failing after 22s
Verify Python project can be installed, loaded and have version checked / Test (push) Successful in 22s
This commit was automatically generated by a script: https://gitfub.space/Jmaa/repo-manager |
||
---|---|---|
.gitea/workflows | ||
requests_util | ||
test | ||
.gitignore | ||
CONVENTIONS.md | ||
LICENSE | ||
README.md | ||
requirements_test.txt | ||
requirements.txt | ||
ruff.toml | ||
setup.py |
Requests utilities
Utility for standarized usage of HTTP requests extension libraries in a modular fashion across different libraries.
Currently supports requests_cache
and requests_ratelimiter
.
The intention is that a libraries can automatically setup ratelimiting for their specific use cases, as the library most likely has a better understanding of the ratelimiting and caching behaviour of their associated websites than the user has.
Dependencies
This project requires Python 3.8 or newer.
All required libraries can be installed easily using:
pip install -r requirements.txt
Full list of requirements:
Contributing
Feel free to submit pull requests. Please follow the Code Conventions when doing so.
Testing
Testing requires the pytest library.
Run tests with the following command:
pytest test
Test coverage can be run using the pytest-cov
extension:
pytest --cov=requests_util test
License
Copyright (c) 2024-2025 Jon Michael Aanes
All rights reserved.