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
- Repository: github.com/govynAI/govyn
- Issues: github.com/govynAI/govyn/issues
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
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 govynai-0.2.3.tar.gz.
File metadata
- Download URL: govynai-0.2.3.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01fb2937491bdc0f1f510952aaa8f8937634c2f3e18dbeb6d07efd6950ed4a47
|
|
| MD5 |
37dbb78566a7044cbd5e5ec7b4128fcb
|
|
| BLAKE2b-256 |
1340c26fbd00e66fb8e55220bd3e7570d862c943e0c8462a2bb634fde3d59801
|
Provenance
The following attestation bundles were made for govynai-0.2.3.tar.gz:
Publisher:
release.yml on govynAI/govyn
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
govynai-0.2.3.tar.gz -
Subject digest:
01fb2937491bdc0f1f510952aaa8f8937634c2f3e18dbeb6d07efd6950ed4a47 - Sigstore transparency entry: 1105893475
- Sigstore integration time:
-
Permalink:
govynAI/govyn@17c7d2065e5be2fb175abddefd3f4277ba39115b -
Branch / Tag:
refs/tags/v0.2.3 - Owner: https://github.com/govynAI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@17c7d2065e5be2fb175abddefd3f4277ba39115b -
Trigger Event:
push
-
Statement type:
File details
Details for the file govynai-0.2.3-py3-none-any.whl.
File metadata
- Download URL: govynai-0.2.3-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e4b149558d3341a6b4745d7eed1000669d2212ca711447f0d4a3f807db63a971
|
|
| MD5 |
0b91f897c96035d575dff1c69b7d7af8
|
|
| BLAKE2b-256 |
40d3666e448483d01b56ad0117dec899aca66d7a29ae2e8b8ddc9323f3a731e5
|
Provenance
The following attestation bundles were made for govynai-0.2.3-py3-none-any.whl:
Publisher:
release.yml on govynAI/govyn
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
govynai-0.2.3-py3-none-any.whl -
Subject digest:
e4b149558d3341a6b4745d7eed1000669d2212ca711447f0d4a3f807db63a971 - Sigstore transparency entry: 1105893511
- Sigstore integration time:
-
Permalink:
govynAI/govyn@17c7d2065e5be2fb175abddefd3f4277ba39115b -
Branch / Tag:
refs/tags/v0.2.3 - Owner: https://github.com/govynAI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@17c7d2065e5be2fb175abddefd3f4277ba39115b -
Trigger Event:
push
-
Statement type: