gatana-client
Python client for the Gatana API. Automatically generated based on Gatana OpenAPI specification using openapi-generators/openapi-python-client
Usage
The easiest way to get started is with GatanaClient, which resolves configuration automatically from explicit parameters, environment variables, or ~/.gatana.config.
More information about the .gatana.config file, can be found here in the Gatana Tools CLI repository
from gatana_client import GatanaClient
# Explicit
client = GatanaClient(token="sk-...", org_id="my-org")
# Or zero-config — picks up GATANA_API_KEY + GATANA_ORG_ID env vars,
# or falls back to ~/.gatana.config
client = GatanaClient()
Configuration priority
- Explicit
token+org_id(orbase_url) passed toGatanaClient - Environment variables:
GATANA_API_KEY,GATANA_ORG_ID/GATANA_BASE_URL - Config file:
~/.gatana.config
Calling endpoints
Each API endpoint is a Python module with sync and async variants:
from gatana_client.api.sandboxes import list_sandboxes
with client as client:
sandboxes = list_sandboxes.sync(client=client)
Async:
async with client as client:
sandboxes = await list_sandboxes.asyncio(client=client)
Every endpoint module exposes four functions:
| Function | Description |
|---|---|
sync |
Blocking, returns parsed data or None |
sync_detailed |
Blocking, returns full Response |
asyncio |
Async version of sync |
asyncio_detailed |
Async version of sync_detailed |
Metadata
Release files for gatana-client 2.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gatana_client-2.0.2.tar.gz | 163.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gatana_client-2.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 729.1 kB
Release files / gatana_client-2.0.2.tar.gz
| Download URL | gatana_client-2.0.2.tar.gz |
|---|---|
| Size | 163.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
603a1861ecd2eaf5d432c7022cdf23404d48b6c5d26692a9630913731dcef0c7
|
|
BLAKE2b-256 checksum How to use checksums |
9ef5b8c7335e7f79a9f9aa0d0bde5e8b67c0556173f51b0ba4285da7fcb4675b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.5 {"installer":{"name":"uv","version":"0.10.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / gatana_client-2.0.2-py3-none-any.whl
| Download URL | gatana_client-2.0.2-py3-none-any.whl |
|---|---|
| Size | 565.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b0fffc55db69e420099306da1979ad78729b523c1a1f126c516fbe4b6f1c757a
|
|
BLAKE2b-256 checksum How to use checksums |
f537e8cd207c2b257439b7f845456725520ac1cad157c1114a7dffb553598765
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.5 {"installer":{"name":"uv","version":"0.10.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|