Getting Started
Installation
pip install capo-identitystore
Usage
from capo_identitystore import AsyncidentitystoreClient
async def main():
async with AsyncidentitystoreClient() as identitystore:
# Example: call the get_group_id operation
response = await identitystore.get_group_id()
print(response["group_id"])
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_identitystore import AsyncidentitystoreClient
async def main():
async with AsyncidentitystoreClient() as identitystore:
# Example: paginate over list_group_memberships_for_member
async for item in identitystore.iter_list_group_memberships_for_member():
print(item)
Error Handling
The SDK raises exceptions for errors returned by the API. Catch them to handle failures gracefully.
from capo_identitystore import AsyncidentitystoreClient
from capo_identitystore.error import AccessDeniedException
async def main():
async with AsyncidentitystoreClient() as identitystore:
try:
await identitystore.get_group_id()
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 capo_identitystore import AsyncidentitystoreClient
async def main():
async with AsyncidentitystoreClient() as identitystore:
# Default: 3 attempts for every operation
response = await identitystore.get_group_id()
# Override per operation
response = await identitystore.get_group_id(config_overrides={"retry_max_attempts": 5})
# Disable retries for this call
response = await identitystore.get_group_id(config_overrides={"retry_max_attempts": 1})
Release files for capo-identitystore 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_identitystore-0.1.0.tar.gz | 79.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| capo_identitystore-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 253.4 kB
Release files / capo_identitystore-0.1.0.tar.gz
| Download URL | capo_identitystore-0.1.0.tar.gz |
|---|---|
| Size | 79.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1b349eca45c1f8ea9ca2eecb5b1704169749c7ff372c3ccfdd4fc68bdcd73c73
|
|
BLAKE2b-256 checksum How to use checksums |
f599d994e29e654a82a5a9893242a4f2b90f78597def9a34f2e2f7edd07bf0bb
|
| 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_identitystore-0.1.0-py3-none-any.whl
| Download URL | capo_identitystore-0.1.0-py3-none-any.whl |
|---|---|
| Size | 174.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f12607ecc30797c09f0e8499d756528d72d6b40f48cfd71dd3bf0de06bca8a47
|
|
BLAKE2b-256 checksum How to use checksums |
a9f7d459f1597b7359185b18212028d1f711e3c699246f93e6f1d956b4489da3
|
| 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}
|