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.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_kinesis_analytics-0.1.0.tar.gz | 94.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| capo_kinesis_analytics-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 312.7 kB
Release files / capo_kinesis_analytics-0.1.0.tar.gz
| Download URL | capo_kinesis_analytics-0.1.0.tar.gz |
|---|---|
| Size | 94.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e172759285cc76932cc7d592515d03acf64680f3df840c68a745c4c940009055
|
|
BLAKE2b-256 checksum How to use checksums |
567d23b9c53a8d1eaa8a7b73f672799d745f44849446f756d4aee23c0b2bb69d
|
| 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_kinesis_analytics-0.1.0-py3-none-any.whl
| Download URL | capo_kinesis_analytics-0.1.0-py3-none-any.whl |
|---|---|
| Size | 217.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
44f0ef59564b74ebd3882c424145a70cf464adbd7412019c9bee3927c1f59269
|
|
BLAKE2b-256 checksum How to use checksums |
669d0e6c4fbf57313c3abd6c081cf67c2504eb9e54478e0385665b43134f19d5
|
| 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}
|