Skip to main content

Python SDK for the Govyn AI governance proxy

Project description

govynai

Python SDK for the Govyn governance proxy.

govynai gives Python agents a small client layer that points requests at a self-hosted Govyn proxy, adds agent identity headers, and turns proxy governance responses into typed Python exceptions.

Install

pip install govynai[all]

Optional extras:

pip install govynai[openai]
pip install govynai[anthropic]

Quick Start

from govynai import GovynOpenAI

client = GovynOpenAI(agent_id="research-agent")
response = client.chat.completions.create(
    model="gpt-4o-mini",
    messages=[{"role": "user", "content": "Hello"}],
)

The client reads the proxy URL from GOVYN_PROXY_URL by default and targets http://localhost:4000 if it is not set.

Local Health Check

from govynai import check_proxy

if not check_proxy():
    raise SystemExit("Govyn proxy is not reachable")

Links

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

govynai-0.2.2.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

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

govynai-0.2.2-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file govynai-0.2.2.tar.gz.

File metadata

  • Download URL: govynai-0.2.2.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for govynai-0.2.2.tar.gz
Algorithm Hash digest
SHA256 3732d4d39af34e7cc47741943625e1ca8ed5719173460a4415d326bff5a0e413
MD5 eacc66148b4937b98c15906d3db91c98
BLAKE2b-256 c6b97d49a48948eabaf07bbf7b77e26d9a5780e36eff2ca4cddedd4f7fd64221

See more details on using hashes here.

Provenance

The following attestation bundles were made for govynai-0.2.2.tar.gz:

Publisher: release.yml on govynAI/govyn

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file govynai-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: govynai-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for govynai-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f53b8864a752b1fa74c9440a8de9e6a2f9463a34b507bc0de0ab4af18b3acbf0
MD5 b219845c66dc839153f2b075bf5b6557
BLAKE2b-256 8dd3c4ed8a386cf132ec313d6cf5adf1d6319b7006b21a79b787343cba128079

See more details on using hashes here.

Provenance

The following attestation bundles were made for govynai-0.2.2-py3-none-any.whl:

Publisher: release.yml on govynAI/govyn

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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