Skip to main content

aimd-limiter

English · 简体中文

CI

Asynchronous Python rate limiter built around the Additive Increase Multiplicative Decrease (AIMD) control loop with slow start, congestion avoidance, and fast recovery behaviors.

Features

  • Fully asynchronous API compatible with Python 3.10+.
  • Deterministic AIMD core with slow start, congestion avoidance, and fast recovery.
  • Designed for integration inside asyncio-based services and SDKs.
  • 100% test coverage.

Usage Example

import asyncio

from aimd_limiter import AIMDAsyncLimiter


async def main() -> None:
    limiter = AIMDAsyncLimiter(max_rate=20.0)
    async with limiter.acquire():
        # Perform work guarded by AIMD flow control.
        ...


asyncio.run(main())

Documentation

Development

uv sync --all-groups
uv run pre-commit install
uv run pytest
uv run pre-commit run --all-files --show-diff-on-failure

Metadata

Release files for aimd-limiter 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aimd-limiter 0.1.0
File Size Uploaded
aimd_limiter-0.1.0.tar.gz 15.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aimd-limiter 0.1.0
File Interpreter ABI Platform
aimd_limiter-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 21.0 kB

Release files / aimd_limiter-0.1.0.tar.gz

Download URL aimd_limiter-0.1.0.tar.gz
Size 15.3 kB
Tags Source
SHA-256 checksum
How to use checksums
53b5157c2592f3fe38c95d29975faa94174b2de5edfd81bac2cab5eb63d8cd5d
BLAKE2b-256 checksum
How to use checksums
5bb039e3de69cc316281e678c4e90c22283bc3fb0f1c6704a3317ef7919508fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2025.

Transparency log

Release files / aimd_limiter-0.1.0-py3-none-any.whl

Download URL aimd_limiter-0.1.0-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5a42d2ea8ee33713e5af6877eb85483bfb060fa36d331cc197ec1a06ec25a186
BLAKE2b-256 checksum
How to use checksums
5955f6ee80ad3657fa9de24218104aae3c8869ce4ffcffa865e9de6d59ec0a85
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page