Skip to main content

tartaruga ratelimiter

Project description


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.


Python 3.x, PIP, Redis server up and running


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




  • **Devmons s.r.o. - Initial work - crypkit



Project details

Download files

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

Files for tartaruga, version 0.0.5
Filename, size File type Python version Upload date Hashes
Filename, size tartaruga-0.0.5-py3-none-any.whl (3.7 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size tartaruga-0.0.5.tar.gz (3.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page