A client library for accessing Gatana
Project description
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 |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gatana_client-0.1.0.tar.gz.
File metadata
- Download URL: gatana_client-0.1.0.tar.gz
- Upload date:
- Size: 94.8 kB
- Tags: Source
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d4b9c8dfe3e7af68f30bc08e8ca10863bc1eb1d10fedbf22f0712ea8a04b722
|
|
| MD5 |
31fc0b9f6e41dafa4ecb1550fc4f4e91
|
|
| BLAKE2b-256 |
7cb87dc709cc8812655be35c5e93ff2c00ff15edc5cfbdc35a8e542957692b0e
|
File details
Details for the file gatana_client-0.1.0-py3-none-any.whl.
File metadata
- Download URL: gatana_client-0.1.0-py3-none-any.whl
- Upload date:
- Size: 356.1 kB
- Tags: Python 3
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a5c11dac3cb4739476ea67bf2c01d435e23352dae954473e186e49f83af6fc95
|
|
| MD5 |
22f073030848557ba2d6f9299cde9b3a
|
|
| BLAKE2b-256 |
523937709126160f5472c0ce1c0c4090b8b3f3a393a4af6c9a121c1a4269c9e8
|