Getting Started
Installation
pip install capo-kinesis-analytics
Usage
from capo_kinesis_analytics import AsyncKinesisAnalyticsClient
async def main():
async with AsyncKinesisAnalyticsClient() as kinesis_analytics:
# Example: call the add_application_cloud_watch_logging_option operation
response = await kinesis_analytics.add_application_cloud_watch_logging_option()
print(response)
Error Handling
The SDK raises exceptions for errors returned by the API. Catch them to handle failures gracefully.
from capo_kinesis_analytics import AsyncKinesisAnalyticsClient
from capo_kinesis_analytics.error import ConcurrentModificationException
async def main():
async with AsyncKinesisAnalyticsClient() as kinesis_analytics:
try:
await kinesis_analytics.add_application_cloud_watch_logging_option()
except ConcurrentModificationException 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_kinesis_analytics import AsyncKinesisAnalyticsClient
async def main():
async with AsyncKinesisAnalyticsClient() as kinesis_analytics:
# Default: 3 attempts for every operation
response = await kinesis_analytics.add_application_cloud_watch_logging_option()
# Override per operation
response = await kinesis_analytics.add_application_cloud_watch_logging_option(config_overrides={"retry_max_attempts": 5})
# Disable retries for this call
response = await kinesis_analytics.add_application_cloud_watch_logging_option(config_overrides={"retry_max_attempts": 1})
Metadata
Release files for capo-kinesis-analytics 0.5.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_kinesis_analytics-0.5.0.tar.gz | 103.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| capo_kinesis_analytics-0.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 326.9 kB
Release files / capo_kinesis_analytics-0.5.0.tar.gz
| Download URL | capo_kinesis_analytics-0.5.0.tar.gz |
|---|---|
| Size | 103.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
921043e9535dd12d5004559ecc265dc052b0975e58ff4854dcd2b096e4e6d464
|
|
BLAKE2b-256 checksum How to use checksums |
853be95552b685cbc2f9515679c063cd1f6de4e0e1da704a2ad014ed338cde7e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","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_kinesis_analytics-0.5.0-py3-none-any.whl
| Download URL | capo_kinesis_analytics-0.5.0-py3-none-any.whl |
|---|---|
| Size | 223.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0f262455df84218389b1bc6df9ea22b0adbc028721d247aadf6442f738e4af87
|
|
BLAKE2b-256 checksum How to use checksums |
15fe255e6c797c91690b7510a2e14968fadf82d5a4351035f712e31fc6c4b428
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","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}
|