Skip to main content

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_ID
  • PYGUBERNATOR_LLM_MODEL
  • PYGUBERNATOR_KAFKA_BOOTSTRAP_SERVERS
  • PYGUBERNATOR_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


Download files

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

Source Distribution

pygubernator-0.0.3.tar.gz (124.8 kB view details)

Uploaded Source

Built Distribution

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

pygubernator-0.0.3-py3-none-any.whl (85.4 kB view details)

Uploaded Python 3

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

Hashes for pygubernator-0.0.3.tar.gz
Algorithm Hash digest
SHA256 b9c714338d1cedbf800f8acfc20fb6271ed043a50efd094ad90ac9e66d91d0f9
MD5 d7519443509955d93cc286c57186468e
BLAKE2b-256 1b1a4b6cafb003a92de05eb63ce2444a0b63490b2c11a1703e47c607d0fb1d50

See more details on using hashes here.

Provenance

The following attestation bundles were made for pygubernator-0.0.3.tar.gz:

Publisher: publish.yml on optophi/pygubernator

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

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

Hashes for pygubernator-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e755b40d5f6d8dfd22fffa9ee437699e791e17f3805e330c587dc5249f1accda
MD5 5f22e473adcdf057352f8e2654ba6eec
BLAKE2b-256 b3e8e0391cfe82a2c2ac51e6ddcc62ed3633ff9fa1b893103af35a104fe2991a

See more details on using hashes here.

Provenance

The following attestation bundles were made for pygubernator-0.0.3-py3-none-any.whl:

Publisher: publish.yml on optophi/pygubernator

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