Getting Started
Installation
pip install capo-eventbridge
Usage
from capo_eventbridge import AsyncEventBridgeClient
async def main():
async with AsyncEventBridgeClient() as event_bridge:
# Example: call the activate_event_source operation
response = await event_bridge.activate_event_source()
print(response)
Error Handling
The SDK raises exceptions for errors returned by the API. Catch them to handle failures gracefully.
from capo_eventbridge import AsyncEventBridgeClient
from capo_eventbridge.error import ConcurrentModificationException
async def main():
async with AsyncEventBridgeClient() as event_bridge:
try:
await event_bridge.activate_event_source()
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_eventbridge import AsyncEventBridgeClient
async def main():
async with AsyncEventBridgeClient() as event_bridge:
# Default: 3 attempts for every operation
response = await event_bridge.activate_event_source()
# Override per operation
response = await event_bridge.activate_event_source(config_overrides={"retry_max_attempts": 5})
# Disable retries for this call
response = await event_bridge.activate_event_source(config_overrides={"retry_max_attempts": 1})
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file capo_eventbridge-0.4.0.tar.gz.
File metadata
- Download URL: capo_eventbridge-0.4.0.tar.gz
- Upload date:
- Size: 173.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86474f1869dd972309e3b35229eb1aec3d20ce61e51034673cd1c29401820637
|
|
| MD5 |
9653bf6fadebc5cfd0796ac9f343aa0e
|
|
| BLAKE2b-256 |
99abd8f816eaf3f03f57edd3e2d2608ad19614476f38072b1db31ab167915efc
|
File details
Details for the file capo_eventbridge-0.4.0-py3-none-any.whl.
File metadata
- Download URL: capo_eventbridge-0.4.0-py3-none-any.whl
- Upload date:
- Size: 434.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae77da626cddedae2cb8f6744fe6f5cfadf24cb685d3f493c3ce1326d82a28ed
|
|
| MD5 |
f8b82fc8acd170b7a43a203cfec001a2
|
|
| BLAKE2b-256 |
432a9d381e59ec9f9a104d5910ca93ce9d0e6993667eaa60debc71e58b727f87
|