Getting Started
Installation
pip install capo-backupsearch
Usage
from capo_backupsearch import AsyncBackupSearchClient
async def main():
async with AsyncBackupSearchClient() as backup_search:
# Example: call the list_search_job_backups operation
response = await backup_search.list_search_job_backups()
print(response["results"])
Pagination
Some operations in this SDK support pagination. If the operation supports pagination it will have an iter_ prefixed method that returns an async iterator.
from capo_backupsearch import AsyncBackupSearchClient
async def main():
async with AsyncBackupSearchClient() as backup_search:
# Example: paginate over list_search_job_backups
async for item in backup_search.iter_list_search_job_backups():
print(item)
Error Handling
The SDK raises exceptions for errors returned by the API. Catch them to handle failures gracefully.
from capo_backupsearch import AsyncBackupSearchClient
from capo_backupsearch.error import AccessDeniedException
async def main():
async with AsyncBackupSearchClient() as backup_search:
try:
await backup_search.list_search_job_backups()
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_backupsearch import AsyncBackupSearchClient
async def main():
async with AsyncBackupSearchClient() as backup_search:
# Default: 3 attempts for every operation
response = await backup_search.list_search_job_backups()
# Override per operation
response = await backup_search.list_search_job_backups(config_overrides={"retry_max_attempts": 5})
# Disable retries for this call
response = await backup_search.list_search_job_backups(config_overrides={"retry_max_attempts": 1})
Metadata
Release files for capo-backupsearch 0.1.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_backupsearch-0.1.0.tar.gz | 68.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| capo_backupsearch-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 200.7 kB
Release files / capo_backupsearch-0.1.0.tar.gz
| Download URL | capo_backupsearch-0.1.0.tar.gz |
|---|---|
| Size | 68.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8debbc000d9d1475ebe8dcc45fae30f0869864603409ce3f286288ada75ea197
|
|
BLAKE2b-256 checksum How to use checksums |
712918777a43daae15ce5dcd331805a91171df4a42006d660f756b2f6f1238e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.21 {"installer":{"name":"uv","version":"0.12.21","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_backupsearch-0.1.0-py3-none-any.whl
| Download URL | capo_backupsearch-0.1.0-py3-none-any.whl |
|---|---|
| Size | 132.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
85a29d778de3126c23dcbcc65ff807c717909c5b5a60a0797ce2fcc8bd0862fe
|
|
BLAKE2b-256 checksum How to use checksums |
eca841cbe48234e08aed41b0c46a4370d9e9a0b4a71c352ae65d622d42c2d4bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.21 {"installer":{"name":"uv","version":"0.12.21","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}
|