Pydantic models for supervisor
Actively maintained. Last release 9 days ago, commits in 20 of the last 26 weeks. A safe choice.
$
pip install supervisor-pydanticREADME as published on PyPI with version 1.5.4.
supervisor-pydantic
Typed, YAML-friendly models and lifecycle tools for supervisord.
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
- Tutorial: render a supervisord configuration
- How-to guides
- Why the convenience layer exists
- API reference
Published documentation is available at airflow-laminar.github.io/supervisor-pydantic.