Skip to main content

cron-pydantic

Typed, YAML-friendly models for cron schedules, jobs, and crontab files.

Build Status codecov License PyPI

from cron_pydantic import CronConfiguration

config = CronConfiguration.model_validate(
    {
        "environment": {"PATH": "/usr/local/bin:/usr/bin"},
        "job": {
            "backup": {
                "schedule": "0 2 * * *",
                "command": "/opt/jobs/backup",
            }
        },
    }
)

print(config.to_cron())

cron-pydantic validates five-field and special schedules, renders user and system crontabs, parses existing crontab text, and loads YAML. File output is explicit; the package never installs or replaces a host crontab.

Documentation

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

Ecosystem

Metadata

Release files for cron-pydantic 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cron-pydantic 0.1.1
File Size Uploaded Provenance Actions
cron_pydantic-0.1.1.tar.gz 11.5 kB Without provenance Details for cron_pydantic-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cron-pydantic 0.1.1
File Interpreter ABI Platform Actions
cron_pydantic-0.1.1-py3-none-any.whl Python 3 none any Details for cron_pydantic-0.1.1-py3-none-any.whl

Total release size: 23.3 kB

Release files / cron_pydantic-0.1.1.tar.gz

Download URL cron_pydantic-0.1.1.tar.gz
Size 11.5 kB
Tags Source
SHA-256 checksum
How to use checksums
1d2f0ddb686bedeca470357f5683df2197e2ed597ad18df9f0060842ebd6b5f6
BLAKE2b-256 checksum
How to use checksums
729ac192282f83971cc7ed3ec238e8e6a1d9b396b541dea235fd032942747738
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.15

Release files / cron_pydantic-0.1.1-py3-none-any.whl

Download URL cron_pydantic-0.1.1-py3-none-any.whl
Size 11.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e1be65ed49d3e2087c9c2332c8f8a1518dbf334a6df2778d5ab6de641f011587
BLAKE2b-256 checksum
How to use checksums
3dcaccf539581befda987c2c8a77fc7abb487d18e92cefebdbe4ecc0439cc850
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.15

Security for cron-pydantic 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page