supervisor-pydantic

Typed, YAML-friendly models and lifecycle tools for supervisord.

Build Status codecov License PyPI

from supervisor_pydantic import ProgramConfiguration, SupervisorConvenienceConfiguration

config = SupervisorConvenienceConfiguration(
    working_dir="/tmp/example-supervisor",
    program={
        "worker": ProgramConfiguration(command="python worker.py"),
    },
)

print(config.to_cfg())

The package models supervisord configuration sections, renders supervisord.conf, loads Hydra/YAML configuration, exposes an XML-RPC client, and provides the _supervisor_convenience lifecycle CLI.

Documentation

Published documentation is available at airflow-laminar.github.io/supervisor-pydantic.

Ecosystem

Note

This library was generated using copier from the Base Python Project Template repository.