Getting Started
Installation
pip install capo-databrew
Usage
from capo_databrew import AsyncDataBrewClient
async def main():
async with AsyncDataBrewClient() as data_brew:
# Example: call the batch_delete_recipe_version operation
response = await data_brew.batch_delete_recipe_version()
print(response["name"])
Pagination
Some operations in this SDK support pagination. If the operation supports pagination it will have an iter_ prefixed method that returns an async iterator.
from capo_databrew import AsyncDataBrewClient
async def main():
async with AsyncDataBrewClient() as data_brew:
# Example: paginate over list_datasets
async for item in data_brew.iter_list_datasets():
print(item)
Error Handling
The SDK raises exceptions for errors returned by the API. Catch them to handle failures gracefully.
from capo_databrew import AsyncDataBrewClient
from capo_databrew.error import ConflictException
async def main():
async with AsyncDataBrewClient() as data_brew:
try:
await data_brew.batch_delete_recipe_version()
except ConflictException 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_databrew import AsyncDataBrewClient
async def main():
async with AsyncDataBrewClient() as data_brew:
# Default: 3 attempts for every operation
response = await data_brew.batch_delete_recipe_version()
# Override per operation
response = await data_brew.batch_delete_recipe_version(config_overrides={"retry_max_attempts": 5})
# Disable retries for this call
response = await data_brew.batch_delete_recipe_version(config_overrides={"retry_max_attempts": 1})
Release files for capo-databrew 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_databrew-0.1.0.tar.gz | 130.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| capo_databrew-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 452.9 kB
Release files / capo_databrew-0.1.0.tar.gz
| Download URL | capo_databrew-0.1.0.tar.gz |
|---|---|
| Size | 130.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
575e11b5ed226e84407351f359ebad3c0b8a30d0fe42dac8757ab9639e69cdfb
|
|
BLAKE2b-256 checksum How to use checksums |
666842684c566f2ed15a911e7d450325ae7264ba19c8ec76d5c139e4857d7f9a
|
| 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_databrew-0.1.0-py3-none-any.whl
| Download URL | capo_databrew-0.1.0-py3-none-any.whl |
|---|---|
| Size | 322.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c43cafca8730c7a38ab8e2172f7f9478676d5e416a9f57b071d44274907bc209
|
|
BLAKE2b-256 checksum How to use checksums |
bebab9a30be4091ae7208eeeba94f3109ba59b81f9fa40cc66dbbcfb08ee56c8
|
| 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}
|