Getting Started
Installation
pip install capo-omics
Usage
from capo_omics import AsyncOmicsClient
async def main():
async with AsyncOmicsClient() as omics:
# Example: call the delete_s3_access_policy operation
response = await omics.delete_s3_access_policy()
print(response)
Error Handling
The SDK raises exceptions for errors returned by the API. Catch them to handle failures gracefully.
from capo_omics import AsyncOmicsClient
from capo_omics.error import AccessDeniedException
async def main():
async with AsyncOmicsClient() as omics:
try:
await omics.delete_s3_access_policy()
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_omics import AsyncOmicsClient
async def main():
async with AsyncOmicsClient() as omics:
# Default: 3 attempts for every operation
response = await omics.delete_s3_access_policy()
# Override per operation
response = await omics.delete_s3_access_policy(config_overrides={"retry_max_attempts": 5})
# Disable retries for this call
response = await omics.delete_s3_access_policy(config_overrides={"retry_max_attempts": 1})
Metadata
Release files for capo-omics 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_omics-0.1.0.tar.gz | 221.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| capo_omics-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 899.8 kB
Release files / capo_omics-0.1.0.tar.gz
| Download URL | capo_omics-0.1.0.tar.gz |
|---|---|
| Size | 221.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b27a467edb4cc12fc0dade1518d845889ce5a22eb72f9958c2b7dff68d2688c2
|
|
BLAKE2b-256 checksum How to use checksums |
d2aea1a54ea824ec224e170583730c124dd210950e8f86037fb25d0b5cd85fc6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","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_omics-0.1.0-py3-none-any.whl
| Download URL | capo_omics-0.1.0-py3-none-any.whl |
|---|---|
| Size | 678.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9c415505bf82aa648e8b480b92d8044bb9d50f9a410129d9376578d9008a7925
|
|
BLAKE2b-256 checksum How to use checksums |
f45032d908248fea7dcfc1e5aacab70989c38bb0433994268e66b4c0aa2655c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","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}
|