Skip to main content

Simple, flexible rate limits for Starlette and FastAPI

Project description

fourtwonine

Yet another rate limiter for Starlette and FastAPI.

This is simply a thin layer over the limits library, making it easy to define flexible rate limits.

Features

  • Fully async and typed
  • Supports any data store the limits library supports: redis, mongodb, memcached, etc.
  • Supports legacy rate limit headers, as well as IETF draft 06 and draft 07 headers.
  • Exposes rate limit state (under request.state.rate_limit by default)

Examples

Check the examples directory for how to integrate this into your app.

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

fourtwonine-0.1.0.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

fourtwonine-0.1.0-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file fourtwonine-0.1.0.tar.gz.

File metadata

  • Download URL: fourtwonine-0.1.0.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for fourtwonine-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cb5ae1542cdbd28a0fec6181ff1fffb6cdd4cb4e636532d589e1545517230a92
MD5 2319b1399556d1b1929f7ed3c1762346
BLAKE2b-256 2621fd5e6d15d4bbca20dfc42d38583323b3aaef094569555ad4dfbdf2328d76

See more details on using hashes here.

File details

Details for the file fourtwonine-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: fourtwonine-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for fourtwonine-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 983418213ef3b2c675e0fe68b8820001eb21b1b01d323152303d4e51d9fa9a7e
MD5 21d59b5f855d9d72e3ff43332e676191
BLAKE2b-256 bd873dc488fd08f665e1a53661c85d73853bddf06323706f3fcbc0b91f268fea

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