Getting Started
Installation
pip install capo-ivs-realtime
Usage
from capo_ivs_realtime import AsyncIVSRealTimeClient
async def main():
async with AsyncIVSRealTimeClient() as ivs_real_time:
# Example: call the create_encoder_configuration operation
response = await ivs_real_time.create_encoder_configuration()
print(response["encoder_configuration"])
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_ivs_realtime import AsyncIVSRealTimeClient
async def main():
async with AsyncIVSRealTimeClient() as ivs_real_time:
# Example: paginate over list_compositions
async for item in ivs_real_time.iter_list_compositions():
print(item)
Error Handling
The SDK raises exceptions for errors returned by the API. Catch them to handle failures gracefully.
from capo_ivs_realtime import AsyncIVSRealTimeClient
from capo_ivs_realtime.error import AccessDeniedException
async def main():
async with AsyncIVSRealTimeClient() as ivs_real_time:
try:
await ivs_real_time.create_encoder_configuration()
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_ivs_realtime import AsyncIVSRealTimeClient
async def main():
async with AsyncIVSRealTimeClient() as ivs_real_time:
# Default: 3 attempts for every operation
response = await ivs_real_time.create_encoder_configuration()
# Override per operation
response = await ivs_real_time.create_encoder_configuration(config_overrides={"retry_max_attempts": 5})
# Disable retries for this call
response = await ivs_real_time.create_encoder_configuration(config_overrides={"retry_max_attempts": 1})
Release files for capo-ivs-realtime 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_ivs_realtime-0.1.0.tar.gz | 119.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| capo_ivs_realtime-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 423.4 kB
Release files / capo_ivs_realtime-0.1.0.tar.gz
| Download URL | capo_ivs_realtime-0.1.0.tar.gz |
|---|---|
| Size | 119.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d23adaafbc6417e64613ae132d3ec92bcc2a971649b3f5add6a8b735cd508431
|
|
BLAKE2b-256 checksum How to use checksums |
35ac6a551228d9fe49b6da3a7c0373cf04329cc75932b7a4b5541fd90eaf0be5
|
| 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_ivs_realtime-0.1.0-py3-none-any.whl
| Download URL | capo_ivs_realtime-0.1.0-py3-none-any.whl |
|---|---|
| Size | 303.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
43df40ffedcd7ed1291aedc4fc19f0260fed97b9fcf0d567c67f9e2fa28b22a3
|
|
BLAKE2b-256 checksum How to use checksums |
1788ce3063f09bf2737dac554e5e83e71a3b64ac1af1eb603afd2b2e7fcad006
|
| 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}
|