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¶
Published documentation is available at airflow-laminar.github.io/supervisor-pydantic.
Ecosystem¶
systemd-pydantic provides aligned models for systemd services and timers.
cron-pydantic models traditional crontabs.
airflow-supervisor orchestrates these configurations from Airflow.
airflow-systemd and airflow-cron provide alternative Airflow integrations.
airflow-pydantic supplies declarative Airflow models.
airflow-config loads YAML-based Airflow configurations.
Note
This library was generated using copier from the Base Python Project Template repository.