Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Swarmauri Logo

PyPI version Python License Downloads Hits

swarmauri_transport_retry

Policy-driven retries for any client implementing Swarmauri's IHttpClient contract.

Features

  • Bounded exponential backoff with optional jitter.
  • Retry-After support for seconds and HTTP dates.
  • Separate policy decisions from sync, async, and streaming execution.
  • Protect non-idempotent methods from replay by default.
  • Wrap any Swarmauri HTTP client without depending on its HTTP library.

Installation

uv add swarmauri_transport_retry
pip install swarmauri_transport_retry

Usage

from swarmauri_transport_httpx import HttpxClient
from swarmauri_transport_retry import (
    ExponentialBackoffRetryPolicy,
    RetryingHttpClient,
)

client = RetryingHttpClient(
    client=HttpxClient(base_url="https://api.example.com"),
    policy=ExponentialBackoffRetryPolicy(max_attempts=3),
)
response = client.request("GET", "/models")
response.raise_for_status()

The retry policy controls replay safety and delay. The wrapped transport remains responsible for moving HTTP requests and responses.

Metadata

Release files for swarmauri_transport_retry 0.1.0.dev1

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

Source distribution (sdist)

Source distribution for swarmauri_transport_retry 0.1.0.dev1
File Size Uploaded Provenance Actions
swarmauri_transport_retry-0.1.0.dev1.tar.gz 4.1 kB Without provenance Details for swarmauri_transport_retry-0.1.0.dev1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for swarmauri_transport_retry 0.1.0.dev1
File Interpreter ABI Platform Actions
swarmauri_transport_retry-0.1.0.dev1-py3-none-any.whl Python 3 none any Details for swarmauri_transport_retry-0.1.0.dev1-py3-none-any.whl

Total release size: 10.2 kB

Release files / swarmauri_transport_retry-0.1.0.dev1.tar.gz

Download URL swarmauri_transport_retry-0.1.0.dev1.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b9de26e97d1e8f7652efc7eb4ed9379b400c1448cea30c171cbe8bae9739c492
BLAKE2b-256 checksum
How to use checksums
00d9e82e9318f5a4b30580f419d13e5e7bf066c779d8ae4fb48e5ea50cb3a0cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / swarmauri_transport_retry-0.1.0.dev1-py3-none-any.whl

Download URL swarmauri_transport_retry-0.1.0.dev1-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
685570c41d5e3556aa37fc8f1dbb76739396385f0f20a2a04fa38155e65fe69d
BLAKE2b-256 checksum
How to use checksums
43829a60d849e82b136c687bae6c27cfdd3d100d32d0c7e159a8c9b4a305d855
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for swarmauri_transport_retry 0.1.0.dev1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
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