Registry / devops / csrd-delegate

csrd-delegate

JSON →
library0.5.28pypypiunverified

HTTP delegate base class with retry support, part of the csrd-api/fastapi-common ecosystem. Version 0.5.28 requires Python >=3.12. Provides a Delegate class for handling HTTP requests with automatic retry logic. Release cadence is irregular.

pip install csrd-delegate
INSTALL
IMPORT
SIG · CSRD-DELEGATE
C
csrd-delegate
devopspythonv0.5.28
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Delegate
from csrd import Delegate
from csrd_delegate import Delegate

Create a Delegate with base URL, API key (optional), and max retries. Use .get/.post/.put/.delete for requests.

import os from csrd_delegate import Delegate delegate = Delegate( base_url="https://api.example.com", api_key=os.environ.get("API_KEY", ""), max_retries=3 ) response = delegate.get("/endpoint") print(response.status_code)
Debug
Known issues
breakingPython 3.12+ only. Older Python versions will raise syntax errors on import.
fix
Upgrade Python to 3.12 or later.
affects: >=0.5.0
deprecatedThe method `Delegate.call()` is deprecated in favor of `.get()`, `.post()`, etc.
fix
Use `delegate.get(...)` instead of `delegate.call(method='GET', ...)`.
affects: 0.4.x and earlier
gotchaRetry logic is enabled by default, but only for HTTP 5xx status codes. 4xx errors will not be retried.
fix
Check retry behavior if expecting 4xx retries.
affects: all
Upgrade
Version history
0.5.28latest on PyPI · released May 18, 2026
Audit
Dependencies
aiohttprequiredUsed for HTTP requests
pydanticrequiredData validation and settings
Agent activity
7 hits · last 30 days
node
6
Resources
csrd-delegate — pip install csrd-delegate · libregistry