Getting Started
Installation
pip install capo-iot-jobs-data-plane
Usage
from capo_iot_jobs_data_plane import AsyncIoTJobsDataPlaneClient
async def main():
async with AsyncIoTJobsDataPlaneClient() as io_t_jobs_data_plane:
# Example: call the describe_job_execution operation
response = await io_t_jobs_data_plane.describe_job_execution()
print(response["execution"])
Error Handling
The SDK raises exceptions for errors returned by the API. Catch them to handle failures gracefully.
from capo_iot_jobs_data_plane import AsyncIoTJobsDataPlaneClient
from capo_iot_jobs_data_plane.error import CertificateValidationException
async def main():
async with AsyncIoTJobsDataPlaneClient() as io_t_jobs_data_plane:
try:
await io_t_jobs_data_plane.describe_job_execution()
except CertificateValidationException 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_iot_jobs_data_plane import AsyncIoTJobsDataPlaneClient
async def main():
async with AsyncIoTJobsDataPlaneClient() as io_t_jobs_data_plane:
# Default: 3 attempts for every operation
response = await io_t_jobs_data_plane.describe_job_execution()
# Override per operation
response = await io_t_jobs_data_plane.describe_job_execution(config_overrides={"retry_max_attempts": 5})
# Disable retries for this call
response = await io_t_jobs_data_plane.describe_job_execution(config_overrides={"retry_max_attempts": 1})
Release files for capo-iot-jobs-data-plane 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_iot_jobs_data_plane-0.1.0.tar.gz | 58.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| capo_iot_jobs_data_plane-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 157.7 kB
Release files / capo_iot_jobs_data_plane-0.1.0.tar.gz
| Download URL | capo_iot_jobs_data_plane-0.1.0.tar.gz |
|---|---|
| Size | 58.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
df23af456012504d4617353bb434df505d92ce8342349abff0f7bb1b1d196c60
|
|
BLAKE2b-256 checksum How to use checksums |
153ee00404a94d471e6b0ddf125b1af1b5af1a46e57644e5252f1a3a4b8ee6f4
|
| 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_iot_jobs_data_plane-0.1.0-py3-none-any.whl
| Download URL | capo_iot_jobs_data_plane-0.1.0-py3-none-any.whl |
|---|---|
| Size | 99.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4a1e2e015dc2ba1b91d55c595c9dde87d0c6056a01b8cd61ebb465b7974d1a27
|
|
BLAKE2b-256 checksum How to use checksums |
4f794010ce2aae092fe82e97b48fe042f4ce77bfb137e22d35ab25719bd86e3c
|
| 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}
|