Skip to main content

Rate Limiting Module

Project description

https://travis-ci.org/KyleJamesWalker/restraint-py.svg?branch=master https://codecov.io/gh/KyleJamesWalker/restraint-py/branch/master/graph/badge.svg

Simple Rate Limit Library.

Example setup

from restraint import restrain, Limit, add

add('example', Limit(second=1, minute=5))

@restrain('example')
def hello():
    print(f'Hello World')

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

restraint-0.0.1.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file restraint-0.0.1.tar.gz.

File metadata

  • Download URL: restraint-0.0.1.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.0

File hashes

Hashes for restraint-0.0.1.tar.gz
Algorithm Hash digest
SHA256 3cf65cc4084e2d379ef1f6d1351853edad42f37cfc32de435a303ffea9930c21
MD5 ec7e1f6cd285f6f4e107a36680060a09
BLAKE2b-256 9f9840c2a853cde64fefdfdae6270076d94e7c721340eac2cf2fb4e6b230f30a

See more details on using hashes here.

Supported by

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