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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

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

Uploaded Python 3

File details

Details for the file pygubernator-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: pygubernator-0.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 897abb21b2d3c4483c6f9c1128597398f82d36a6873ebf75ef169079a305788a
MD5 88d5978a2efbbb5f7a76408ec1e720a0
BLAKE2b-256 741d1daa2ccc12603af6a853dc4f71c9275b14d6ba9691c6fee9cf498d4108b0

See more details on using hashes here.

Provenance

The following attestation bundles were made for pygubernator-0.0.2-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