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.2.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.2.0.tar.gz | 102.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| capo_kinesis_analytics-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 325.9 kB
Release files / capo_kinesis_analytics-0.2.0.tar.gz
| Download URL | capo_kinesis_analytics-0.2.0.tar.gz |
|---|---|
| Size | 102.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e3b8821eb51a41adbd721445a95e48c1dbbdbd0f036bee5c6dae901aa8a735a4
|
|
BLAKE2b-256 checksum How to use checksums |
110f993f5b0c45ff8378766f2c0c33cf9b486013b44c027c992e603f9ec0f2f9
|
| 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_kinesis_analytics-0.2.0-py3-none-any.whl
| Download URL | capo_kinesis_analytics-0.2.0-py3-none-any.whl |
|---|---|
| Size | 223.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9702ab50b6edc634e6da5f85636bc4f03b237fd07fb910b88a81ad4450be7ec7
|
|
BLAKE2b-256 checksum How to use checksums |
7b7da65b2161c27568fea996ff02b14634bd60550e8400f18597ba35ee80850a
|
| 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}
|