Python SDK for Appflow.
Project description
Getting Started
Installation
pip install aws-sdk-appflow
Usage
from aws_sdk_appflow import AsyncAppflowClient
async def main():
async with AsyncAppflowClient() as s3:
# Example: call the cancel_flow_executions operation
response = await s3.cancel_flow_executions()
print(response["invalid_executions"])
Error Handling
The SDK raises exceptions for errors returned by the API. Catch them to handle failures gracefully.
from aws_sdk_appflow import AsyncAppflowClient
from aws_sdk_appflow.error import AccessDeniedException
async def main():
async with AsyncAppflowClient() as s3:
try:
await s3.cancel_flow_executions()
except AccessDeniedException 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 aws_sdk_appflow import AsyncAppflowClient
async def main():
async with AsyncAppflowClient() as s3:
# Default: 3 attempts for every operation
response = await s3.cancel_flow_executions()
# Override per operation
response = await s3.cancel_flow_executions(config_overrides={"retry_max_attempts": 5})
# Disable retries for this call
response = await s3.cancel_flow_executions(config_overrides={"retry_max_attempts": 1})
Project details
Release history Release notifications | RSS feed
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 aws_sdk_appflow-0.1.0.tar.gz.
File metadata
- Download URL: aws_sdk_appflow-0.1.0.tar.gz
- Upload date:
- Size: 144.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3718da74d66da3754341e3a4777ca1628270d2b8fc6d2cfd8cbb78736a3e49ad
|
|
| MD5 |
30f418a12713f8942c0b9469cc857de3
|
|
| BLAKE2b-256 |
017949f06e302f9a0b339ba05314707b47416bb56941ce569b0040532d88b120
|
File details
Details for the file aws_sdk_appflow-0.1.0-py3-none-any.whl.
File metadata
- Download URL: aws_sdk_appflow-0.1.0-py3-none-any.whl
- Upload date:
- Size: 364.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a51a36952defe6cd586dbc1b8868bc4b693425b153c5aee9ee2a39e62ff937f5
|
|
| MD5 |
edcc040ae2213b4da288fede942a374e
|
|
| BLAKE2b-256 |
a0bbee5709e5191ace8e34056e10ca45b50209aa3d6027e756cce1ebd0966346
|