Skip to main content

gtwy

Official Python client for the GTWY API.

pip install -e python/
from gtwy import Gtwy

client = Gtwy(api_key="<pauthkey>")

response = client.chat.completions.create(
    agent_id="my-agent-id",
    user="What's the capital of France?",
)
print(response.content)

api_key can also come from the GTWY_API_KEY environment variable. base_url defaults to https://api.gtwy.ai; override it (constructor arg or GTWY_BASE_URL) to point at a different environment.

See gtwy/SKILLS.md for the full reference: every resource (chat, batch, rerun), every request field, response shapes, delivery modes (sync/webhook), and error handling. This file ships inside the installed package (not just this repo) — after pip install gtwy it's reachable at gtwy.SKILLS_PATH / gtwy.get_skills_doc(), so an AI agent (e.g. Claude) can read it and use this SDK correctly without ever cloning this repo.

Download files

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

Source Distribution

gtwy-0.1.0.tar.gz (15.2 kB view details)

Uploaded Source

Built Distribution

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

gtwy-0.1.0-py3-none-any.whl (18.2 kB view details)

Uploaded Python 3

File details

Details for the file gtwy-0.1.0.tar.gz.

File metadata

  • Download URL: gtwy-0.1.0.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.0

File hashes

Hashes for gtwy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 53cb700892462b891979b6ac2cfaca3958a370df45e3e4970710a05784878e77
MD5 b7c79133d31d5dcc46b3e60b9b73c987
BLAKE2b-256 d25fe2622aa4034ea621dc449c37f70b5c63207872886146697969178ee0bc96

See more details on using hashes here.

File details

Details for the file gtwy-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: gtwy-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 18.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.0

File hashes

Hashes for gtwy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fddb8db49f9a3a9a1468ca5db91ff106df1eb687b05a6f43decd26c1cefa9b34
MD5 6c0660db911721e1aa4d26902141a38a
BLAKE2b-256 493802e52fe1adbb0782368cdc6e26fe69f3170459327ec4bf0a1900b6f05157

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 Sentry Error logging StatusPage Status page