API reference

The public API is re-exported from systemd_pydantic.

Unit models

UnitConfiguration

Common settings from a systemd unit's [Unit] section.

ServiceConfiguration

Process supervision settings from a systemd [Service] section.

TimerConfiguration

Activation settings from a systemd [Timer] section.

InstallConfiguration

Enablement settings from a systemd [Install] section.

ServiceUnitConfiguration

TimerUnitConfiguration

Configuration and lifecycle

SystemdConfiguration

Named collection of systemd service and timer unit files.

SystemdConvenienceConfiguration

Systemd defaults and persisted state used by convenience commands.

SystemdClient(cfg[, runner])

UnitInfo

CommandResult(command, returncode[, stdout, ...])

CommandRunner(*args, **kwargs)

SubprocessCommandRunner()

SSHCommandRunner(host[, runner])

SystemdCommandError(result)

load_config([config_dir, config_name, ...])

load_convenience_config([config_dir, ...])