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
- Repository: github.com/govynAI/govyn
- Issues: github.com/govynAI/govyn/issues
Release files for govynai 0.2.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| govynai-0.2.6.tar.gz | 9.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| govynai-0.2.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.9 kB
Release files / govynai-0.2.6.tar.gz
| Download URL | govynai-0.2.6.tar.gz |
|---|---|
| Size | 9.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
491b59908c6f75691a56ec03dd3d609ce2db6040e9aff4cf48fc69b2c56f6376
|
|
BLAKE2b-256 checksum How to use checksums |
59249dd1b95a30d373e2d837b39820bb558764fbbd9eba82a9e1e393afaf1d62
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 22, 2026.
Transparency logRelease files / govynai-0.2.6-py3-none-any.whl
| Download URL | govynai-0.2.6-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
748b74cbe1e850bee6df0b8469992f14c738c5c9053cf5fe61b68192ddd27cfe
|
|
BLAKE2b-256 checksum How to use checksums |
f4fc680056019e2403d0e69aa36b917a038fcaa03a0771ee023dd5fc785cdbfb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 22, 2026.
Transparency log