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.4.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.4.0.tar.gz | 102.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| capo_kinesis_analytics-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 326.1 kB
Release files / capo_kinesis_analytics-0.4.0.tar.gz
| Download URL | capo_kinesis_analytics-0.4.0.tar.gz |
|---|---|
| Size | 102.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ab341256e34a0f8515245067fc2edae215e24c01f2d025236bedd89fa96e1fe9
|
|
BLAKE2b-256 checksum How to use checksums |
a956355a2d72191cad2a9caaa36fd555b41b3bbc74671a13c22427e32805fe44
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","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.4.0-py3-none-any.whl
| Download URL | capo_kinesis_analytics-0.4.0-py3-none-any.whl |
|---|---|
| Size | 223.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f0af575afaa6d7e9dc77cc5fea806718f3eeadafa7dc442d03fb146c15a31ed7
|
|
BLAKE2b-256 checksum How to use checksums |
026f56b67f56c010cb2dfa77064493f70e369ddd57c067ca8cb968aa58519a9f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","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}
|