Getting Started
Installation
pip install capo-geo-maps
Usage
from capo_geo_maps import AsyncGeoMapsClient
async def main():
async with AsyncGeoMapsClient() as geo_maps:
# Example: call the get_glyphs operation
response = await geo_maps.get_glyphs()
print(response["blob"])
Error Handling
The SDK raises exceptions for errors returned by the API. Catch them to handle failures gracefully.
from capo_geo_maps import AsyncGeoMapsClient
from capo_geo_maps.error import AccessDeniedException
async def main():
async with AsyncGeoMapsClient() as geo_maps:
try:
await geo_maps.get_static_map()
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_geo_maps import AsyncGeoMapsClient
async def main():
async with AsyncGeoMapsClient() as geo_maps:
# Default: 3 attempts for every operation
response = await geo_maps.get_glyphs()
# Override per operation
response = await geo_maps.get_glyphs(config_overrides={"retry_max_attempts": 5})
# Disable retries for this call
response = await geo_maps.get_glyphs(config_overrides={"retry_max_attempts": 1})
Metadata
Release files for capo-geo-maps 0.3.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_geo_maps-0.3.0.tar.gz | 89.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| capo_geo_maps-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 204.6 kB
Release files / capo_geo_maps-0.3.0.tar.gz
| Download URL | capo_geo_maps-0.3.0.tar.gz |
|---|---|
| Size | 89.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
52784c5a42b99d8af2ce0bb4df9edc70fcb31f08fef4e0cc702762cd30f55e30
|
|
BLAKE2b-256 checksum How to use checksums |
db5e27447cdfe71ec241d151f13b91d1f5c7e21cc064e7f8d663d64d77e2a756
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.22 {"installer":{"name":"uv","version":"0.12.22","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_geo_maps-0.3.0-py3-none-any.whl
| Download URL | capo_geo_maps-0.3.0-py3-none-any.whl |
|---|---|
| Size | 115.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
be22aafb3d89bd7c664bd9a8d02cfd8d4affe6a6f9d6eb9a25b6026b6abac02a
|
|
BLAKE2b-256 checksum How to use checksums |
fab43575d11ab2d890a59c44249c2b5c7584b2f9eb2561ad5cb4d95435d8b482
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.22 {"installer":{"name":"uv","version":"0.12.22","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}
|