cron_pydantic.CronConfiguration

pydantic model cron_pydantic.CronConfiguration[source]

Bases: BaseModel

Environment and named jobs rendered as one crontab file.

field job: dict[str, CronJobConfiguration] [Required]
field environment: dict[str, str] [Optional]
field system: bool = False
field path: Path | None = None
to_cron() str[source]
write(path: Path | str | None = None) Path[source]
classmethod from_cron(contents: str, *, system: bool = False, path: Path | None = None) Self[source]
classmethod load(path: Path | str) Self[source]