tartaruga
Tartaruga is another ratelimiter library, based on Redis. It allows for distributed rate-limiting accross different processess, or even hosts.
Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Prerequisites
Python 3.x, PIP, Redis server up and running
Installing
Library can be installed simply with pip:
pip install tartaruga
or by running:
make install
Usage examples
Example usage. Ratelimiting 10 requests per second + 120 requests per minute + 240 requests per hour:
from tartaruga.ratelimiter import rate_limit
limits = [(1, 10), (60, 120), (3600, 240)]
@rate_limit(api_id='MyShinyAPI', limits=limits)
def somefunction():
# here you can call the API
Contributing
TBD
Authors
- **Devmons s.r.o. - Initial work - crypkit
License
Commercial
Metadata
Release files for tartaruga 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tartaruga-0.0.5.tar.gz | 3.4 kB | Without provenance | Details for tartaruga-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tartaruga-0.0.5-py3-none-any.whl | Python 3 | none | any | Details for tartaruga-0.0.5-py3-none-any.whl |
Total release size: 7.1 kB
Release files / tartaruga-0.0.5.tar.gz
| Download URL | tartaruga-0.0.5.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f5c9d0b3ebc634f1d783c68bcaea8da56819f0b109f733045c15bcac312be181
|
|
BLAKE2b-256 checksum How to use checksums |
335221994c92b94e98e3a150fc0f8abe9b0e00c982e7dd023993da7dbc380f5d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.1
|
Release files / tartaruga-0.0.5-py3-none-any.whl
| Download URL | tartaruga-0.0.5-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4db1a27ed5684d4ac4b47345faad14da1508d1bb7e3ab029b312d0dd2fa855c6
|
|
BLAKE2b-256 checksum How to use checksums |
cc0515d7e2b1129affcd0e3340cdf712c595a7c9ac55bba3826b3ba662144590
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.1
|
Security for tartaruga 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.