Getting Started
Installation
pip install capo-groundstation
Usage
from capo_groundstation import AsyncGroundStationClient
async def main():
async with AsyncGroundStationClient() as ground_station:
# Example: call the get_agent_task_response_url operation
response = await ground_station.get_agent_task_response_url()
print(response["agent_id"])
Error Handling
The SDK raises exceptions for errors returned by the API. Catch them to handle failures gracefully.
from capo_groundstation import AsyncGroundStationClient
from capo_groundstation.error import DependencyException
async def main():
async with AsyncGroundStationClient() as ground_station:
try:
await ground_station.get_agent_task_response_url()
except DependencyException 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_groundstation import AsyncGroundStationClient
async def main():
async with AsyncGroundStationClient() as ground_station:
# Default: 3 attempts for every operation
response = await ground_station.get_agent_task_response_url()
# Override per operation
response = await ground_station.get_agent_task_response_url(config_overrides={"retry_max_attempts": 5})
# Disable retries for this call
response = await ground_station.get_agent_task_response_url(config_overrides={"retry_max_attempts": 1})
Release files for capo-groundstation 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_groundstation-0.1.0.tar.gz | 121.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| capo_groundstation-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 444.8 kB
Release files / capo_groundstation-0.1.0.tar.gz
| Download URL | capo_groundstation-0.1.0.tar.gz |
|---|---|
| Size | 121.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b71653d0dc86b8d26374ed3f445f4474c13343ee3507946a350a0bd41c0d2048
|
|
BLAKE2b-256 checksum How to use checksums |
4672458d063f87df1916ff98fc7d2ec3948bea2b25ac2f6ac381e70b5b38ac8e
|
| 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_groundstation-0.1.0-py3-none-any.whl
| Download URL | capo_groundstation-0.1.0-py3-none-any.whl |
|---|---|
| Size | 323.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
baae4d85f4d1dfcec397c57a9307bbcbeac2051d0cd3c8f7b948ca25f8566d5b
|
|
BLAKE2b-256 checksum How to use checksums |
2f091a687281829a0f86c116b54dd4ab3925b81c99e4e77dc819eb1323aabf2a
|
| 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}
|