Skip to main content

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

  1. Explicit token + org_id (or base_url) passed to GatanaClient
  2. Environment variables: GATANA_API_KEY, GATANA_ORG_ID / GATANA_BASE_URL
  3. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gatana_client-1.1.2.tar.gz (100.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gatana_client-1.1.2-py3-none-any.whl (374.7 kB view details)

Uploaded Python 3

File details

Details for the file gatana_client-1.1.2.tar.gz.

File metadata

  • Download URL: gatana_client-1.1.2.tar.gz
  • Upload date:
  • Size: 100.0 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

Hashes for gatana_client-1.1.2.tar.gz
Algorithm Hash digest
SHA256 51e75676df5f4616dfcfc14a7ac5928a60e4ddf0e84c4d9c895f4b3c100e1c8a
MD5 0404e761daafe9011fe2cb37fecd7405
BLAKE2b-256 77e6fb1711bd59d30e5c679875d2afebf6e9ad67e8a569b2db0086102a1a3ff7

See more details on using hashes here.

File details

Details for the file gatana_client-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: gatana_client-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 374.7 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

Hashes for gatana_client-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5577f672025a2e46103f941f377bc999b007a3acfc3ebc5c967dcce6550c9178
MD5 f7ceff4639a042268cc060684a76e397
BLAKE2b-256 18da26a7b7255cc9e4d853045a65e3fa5fb88356aad1eded50b39dbbd4f47203

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page