Metadata-Version: 2.4
Name: paceapi
Version: 0.0.1
Summary: Rate limiting, caching and traffic management for Starlette and FastAPI.
Keywords: asgi,cache,caching,fastapi,rate-limit,rate-limiting,redis,starlette,throttling
Author: Rushil Srivastava
Author-email: Rushil Srivastava <pypi@rushil.sh>
License-Expression: MIT
License-File: LICENSE
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Framework :: AsyncIO
Classifier: Framework :: FastAPI
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: 3.15
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Typing :: Typed
Requires-Dist: starlette>=1.0
Requires-Python: >=3.12
Project-URL: Documentation, https://rushilsrivastava.github.io/paceapi/
Project-URL: Changelog, https://github.com/rushilsrivastava/paceapi/blob/main/CHANGELOG.md
Project-URL: Issues, https://github.com/rushilsrivastava/paceapi/issues
Project-URL: Source, https://github.com/rushilsrivastava/paceapi
Description-Content-Type: text/markdown

# paceapi

**Rate limiting, caching and traffic management for Starlette and FastAPI.**

[![CI](https://github.com/rushilsrivastava/paceapi/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/rushilsrivastava/paceapi/actions/workflows/ci.yml)
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/rushilsrivastava/paceapi/blob/main/LICENSE)
[![Typed: strict](https://img.shields.io/badge/typed-strict-blue.svg)](https://github.com/rushilsrivastava/paceapi/blob/main/pyproject.toml)

> **Status: pre-alpha.** Version `0.0.1` only reserves the name on PyPI and has
> no features. The first usable release will be `0.1.0a1`, and the API may
> change without notice until `1.0`.

## What it will do

None of this is implemented yet. This is the plan for the first releases.

- **Rate limiting** keyed on who the caller is, including the authenticated
  user resolved by your own FastAPI dependencies.
- **Caching** for functions and HTTP responses, organised by namespace so
  related entries are invalidated together.
- **Traffic management**: concurrency limits, deadlines and load shedding.
- **Observability** through plain hooks, with optional OpenTelemetry.

## Design goals

- Async-native, with no blocking storage calls on the event loop.
- Strictly typed, and checked with both pyright and mypy.
- One required dependency: Starlette.
- Small, readable modules with protocol-based extension points.

## Requirements

Python 3.12 or newer.

## Links

- [Documentation](https://rushilsrivastava.github.io/paceapi/)
- [Changelog](https://github.com/rushilsrivastava/paceapi/blob/main/CHANGELOG.md)
- [Contributing](https://github.com/rushilsrivastava/paceapi/blob/main/CONTRIBUTING.md)
- [Issue tracker](https://github.com/rushilsrivastava/paceapi/issues)

## License

[MIT](https://github.com/rushilsrivastava/paceapi/blob/main/LICENSE)
