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.dev2

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.dev2
File Size Uploaded Provenance Actions
swarmauri_transport_retry-0.1.0.dev2.tar.gz 4.1 kB Without provenance Details for swarmauri_transport_retry-0.1.0.dev2.tar.gz

Built distribution (wheel)

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

Total release size: 10.2 kB

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

Download URL swarmauri_transport_retry-0.1.0.dev2.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
920979634ea20a672910e5e77f48e5361f011f8819a4d5d223d39e5baeff1395
BLAKE2b-256 checksum
How to use checksums
128001ec93ce656906434a9c6b182c4d420ea2e6977084159d9f673078731606
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.dev2-py3-none-any.whl

Download URL swarmauri_transport_retry-0.1.0.dev2-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7f342cb984e4150fc016860727178cb9d8ccf8f9188e3f2bb0eacb77b2c1a51b
BLAKE2b-256 checksum
How to use checksums
3457f6885e2e8626b53ae6e8dbcd5b5f27fecbeb3abdab42456ee1d53550d23d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.dev2

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.

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