Getting Started
Installation
pip install capo-efs
Usage
from capo_efs import AsyncEFSClient
async def main():
async with AsyncEFSClient() as efs:
# Example: call the create_access_point operation
response = await efs.create_access_point()
print(response["client_token"])
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_efs import AsyncEFSClient
async def main():
async with AsyncEFSClient() as efs:
# Example: paginate over describe_access_points
async for item in efs.iter_describe_access_points():
print(item)
Error Handling
The SDK raises exceptions for errors returned by the API. Catch them to handle failures gracefully.
from capo_efs import AsyncEFSClient
from capo_efs.error import AccessPointAlreadyExists
async def main():
async with AsyncEFSClient() as efs:
try:
await efs.create_access_point()
except AccessPointAlreadyExists 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_efs import AsyncEFSClient
async def main():
async with AsyncEFSClient() as efs:
# Default: 3 attempts for every operation
response = await efs.create_access_point()
# Override per operation
response = await efs.create_access_point(config_overrides={"retry_max_attempts": 5})
# Disable retries for this call
response = await efs.create_access_point(config_overrides={"retry_max_attempts": 1})
Release files for capo-efs 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_efs-0.1.0.tar.gz | 122.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| capo_efs-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 371.2 kB
Release files / capo_efs-0.1.0.tar.gz
| Download URL | capo_efs-0.1.0.tar.gz |
|---|---|
| Size | 122.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
126e83cdfa39eff360f043493db3e6b5f659b1540bd1034f3cc3376960d07fd2
|
|
BLAKE2b-256 checksum How to use checksums |
aa17e4f6fbb63f883f202e2e372a698156ec708a58d806d337cb5df733fbe0fc
|
| 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_efs-0.1.0-py3-none-any.whl
| Download URL | capo_efs-0.1.0-py3-none-any.whl |
|---|---|
| Size | 248.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3ec4bc2e3382fe75f876bc349bf0406f2017d97f952f74ca44b0a5472250f1ce
|
|
BLAKE2b-256 checksum How to use checksums |
2b5a5ae08a4dcfc5514b3ab35b92bbdbd77c4aa672440a38a5b33fd75c546a40
|
| 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}
|