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.2.tar.gz (3.7 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: restraint-0.0.2.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.7

File hashes

Hashes for restraint-0.0.2.tar.gz
Algorithm Hash digest
SHA256 8d2045ae0638512f96d5ba21e93fb55ed6d41da3eda1b0e59ddce9a9f5fd8407
MD5 b7f542c3703331646c3136bd0b06c326
BLAKE2b-256 eb4d1ad0a5aa600721a832bff61497249fe9f6e72af082eab7f658f68b30e948

See more details on using hashes here.

Supported by

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