Getting Started
Installation
pip install capo-signer-data
Usage
from capo_signer_data import AsyncSignerDataClient
async def main():
async with AsyncSignerDataClient() as signer_data:
# Example: call the get_revocation_status operation
response = await signer_data.get_revocation_status()
print(response["revoked_entities"])
Error Handling
The SDK raises exceptions for errors returned by the API. Catch them to handle failures gracefully.
from capo_signer_data import AsyncSignerDataClient
from capo_signer_data.error import AccessDeniedException
async def main():
async with AsyncSignerDataClient() as signer_data:
try:
await signer_data.get_revocation_status()
except AccessDeniedException as e:
print(f"Error: {e}")
print(e.data) # additional error data
Retrying
The SDK retries failed operations automatically. Retry behaviour follows the Smithy specification: errors are retried based on their is_retryable and is_throttling_error attributes. Throttling errors use a longer base delay. Network-level failures (connection errors and timeouts) are also retried. Non-retryable errors, such as client errors without the @retryable trait, are raised immediately without further attempts.
The number of attempts defaults to 3 and can be changed at the client level via retry_max_attempts, or per call via config_overrides.
from capo_signer_data import AsyncSignerDataClient
async def main():
async with AsyncSignerDataClient() as signer_data:
# Default: 3 attempts for every operation
response = await signer_data.get_revocation_status()
# Override per operation
response = await signer_data.get_revocation_status(config_overrides={"retry_max_attempts": 5})
# Disable retries for this call
response = await signer_data.get_revocation_status(config_overrides={"retry_max_attempts": 1})
Metadata
Release files for capo-signer-data 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| capo_signer_data-0.6.0.tar.gz | 54.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| capo_signer_data-0.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 116.4 kB
Release files / capo_signer_data-0.6.0.tar.gz
| Download URL | capo_signer_data-0.6.0.tar.gz |
|---|---|
| Size | 54.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ec2d2f664e458a41f2ca0de224b7662dab3d5323e24524aad506449228bf4d1a
|
|
BLAKE2b-256 checksum How to use checksums |
47152819258459d5cbc8df24a6740a3e73d26b3d5472b6aad9394f26ea31d863
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.1 {"installer":{"name":"uv","version":"0.13.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 / capo_signer_data-0.6.0-py3-none-any.whl
| Download URL | capo_signer_data-0.6.0-py3-none-any.whl |
|---|---|
| Size | 61.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
acd028374cf1c4fb2646e250e06e34e685f0df40ae27a725fb861dc7ff4a46f5
|
|
BLAKE2b-256 checksum How to use checksums |
7e6a0aac394464bb70b31f99c36709ecad602d9ebd3d13575f7807517cabe805
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.1 {"installer":{"name":"uv","version":"0.13.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}
|