Getting Started
Installation
pip install capo-marketplace-deployment
Usage
from capo_marketplace_deployment import AsyncMarketplaceDeploymentClient
async def main():
async with AsyncMarketplaceDeploymentClient() as marketplace_deployment:
# Example: call the list_tags_for_resource operation
response = await marketplace_deployment.list_tags_for_resource()
print(response["tags"])
Error Handling
The SDK raises exceptions for errors returned by the API. Catch them to handle failures gracefully.
from capo_marketplace_deployment import AsyncMarketplaceDeploymentClient
from capo_marketplace_deployment.error import AccessDeniedException
async def main():
async with AsyncMarketplaceDeploymentClient() as marketplace_deployment:
try:
await marketplace_deployment.list_tags_for_resource()
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_marketplace_deployment import AsyncMarketplaceDeploymentClient
async def main():
async with AsyncMarketplaceDeploymentClient() as marketplace_deployment:
# Default: 3 attempts for every operation
response = await marketplace_deployment.list_tags_for_resource()
# Override per operation
response = await marketplace_deployment.list_tags_for_resource(config_overrides={"retry_max_attempts": 5})
# Disable retries for this call
response = await marketplace_deployment.list_tags_for_resource(config_overrides={"retry_max_attempts": 1})
Release files for capo-marketplace-deployment 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_marketplace_deployment-0.1.0.tar.gz | 51.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| capo_marketplace_deployment-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 126.5 kB
Release files / capo_marketplace_deployment-0.1.0.tar.gz
| Download URL | capo_marketplace_deployment-0.1.0.tar.gz |
|---|---|
| Size | 51.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
71a7d1b76996b594c0aa92ad7631ff89cdc77fa6df6455675d5f591bcaeef158
|
|
BLAKE2b-256 checksum How to use checksums |
727db5aebde98a777f69aecd007188988cd0ad048b47cf40d5b8738715fb9842
|
| 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_marketplace_deployment-0.1.0-py3-none-any.whl
| Download URL | capo_marketplace_deployment-0.1.0-py3-none-any.whl |
|---|---|
| Size | 75.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
11cb738a12ba4b37ced2fbaa12adf19738ea083c6c277eb375523e598d220c5b
|
|
BLAKE2b-256 checksum How to use checksums |
8c7397425344040e5ca40bfa69ba2a669a810192bcce636782525f1cfb087eb5
|
| 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}
|