General-purpose Python agent framework with pystator integration
Project description
PyGubernator
General-purpose Python agent framework with pystator integration: lifecycle state machines, LLM agents with tools, pipelines, Kafka/in-memory transport, and batch/stream runners.
Install
pip install pygubernator
Optional extras:
pip install pygubernator[llm] # LiteLLM provider
pip install pygubernator[kafka] # Kafka transport
pip install pygubernator[charter] # pycharter
pip install pygubernator[catalyst] # pycatalyst
pip install pygubernator[all]
Quick start
from pygubernator import Message, InMemoryTransport, run_stream
from pygubernator.agents import PipelineAgent
# … define agents and run run_stream / run_batch with a transport
Configuration
Settings can be loaded from environment variables with the prefix PYGUBERNATOR_, for example:
PYGUBERNATOR_AGENT_IDPYGUBERNATOR_LLM_MODELPYGUBERNATOR_KAFKA_BOOTSTRAP_SERVERSPYGUBERNATOR_KAFKA_GROUP_ID(default consumer group name:pygubernator)
Use AgentSettings.from_env() to populate AgentSettings.
Development
make install-dev
make check
Publishing
Version is managed with setuptools-scm. Prefer GitHub tag pushes (e.g. v0.1.0) and Trusted Publishing to PyPI; see .github/workflows/publish.yml and the Makefile publish / publish-test targets.
Rename note
This package was previously developed as pykairos. The PyPI distribution and import package are now pygubernator. Replace imports (import pygubernator), pip install pygubernator, and migrate environment variables from PYKAIROS_* to PYGUBERNATOR_*. The base exception type is GubernatorError (formerly KairosError).
Project details
Release history Release notifications | RSS feed
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 pygubernator-0.0.3.tar.gz.
File metadata
- Download URL: pygubernator-0.0.3.tar.gz
- Upload date:
- Size: 124.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b9c714338d1cedbf800f8acfc20fb6271ed043a50efd094ad90ac9e66d91d0f9
|
|
| MD5 |
d7519443509955d93cc286c57186468e
|
|
| BLAKE2b-256 |
1b1a4b6cafb003a92de05eb63ce2444a0b63490b2c11a1703e47c607d0fb1d50
|
Provenance
The following attestation bundles were made for pygubernator-0.0.3.tar.gz:
Publisher:
publish.yml on optophi/pygubernator
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pygubernator-0.0.3.tar.gz -
Subject digest:
b9c714338d1cedbf800f8acfc20fb6271ed043a50efd094ad90ac9e66d91d0f9 - Sigstore transparency entry: 1133607649
- Sigstore integration time:
-
Permalink:
optophi/pygubernator@4f74a8cf27e6577f8fa3be776d31642001f57475 -
Branch / Tag:
refs/tags/v0.0.3 - Owner: https://github.com/optophi
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4f74a8cf27e6577f8fa3be776d31642001f57475 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pygubernator-0.0.3-py3-none-any.whl.
File metadata
- Download URL: pygubernator-0.0.3-py3-none-any.whl
- Upload date:
- Size: 85.4 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 |
e755b40d5f6d8dfd22fffa9ee437699e791e17f3805e330c587dc5249f1accda
|
|
| MD5 |
5f22e473adcdf057352f8e2654ba6eec
|
|
| BLAKE2b-256 |
b3e8e0391cfe82a2c2ac51e6ddcc62ed3633ff9fa1b893103af35a104fe2991a
|
Provenance
The following attestation bundles were made for pygubernator-0.0.3-py3-none-any.whl:
Publisher:
publish.yml on optophi/pygubernator
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pygubernator-0.0.3-py3-none-any.whl -
Subject digest:
e755b40d5f6d8dfd22fffa9ee437699e791e17f3805e330c587dc5249f1accda - Sigstore transparency entry: 1133607664
- Sigstore integration time:
-
Permalink:
optophi/pygubernator@4f74a8cf27e6577f8fa3be776d31642001f57475 -
Branch / Tag:
refs/tags/v0.0.3 - Owner: https://github.com/optophi
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4f74a8cf27e6577f8fa3be776d31642001f57475 -
Trigger Event:
push
-
Statement type: