{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/3"}],"enrichment":{"capability":"Parses cron-style schedule strings and determines whether a given datetime matches the schedule, supporting standard cron syntax like intervals, ranges, lists, and wildcards.","skillfed_tags":["scheduling","cron-parser","datetime"],"use_cases":["Validate whether a scheduled task should execute at the current moment in a non-continuous application.","Check if a specific datetime matches a user-provided cron schedule string in a web form or API.","Generate Django form choice lists for minute, hour, day-of-month, month, and day-of-week cron fields.","Determine if any point in a past time window matched a schedule (anacron-like behavior for catch-up jobs).","Parse and evaluate cron expressions in configuration files or database records."],"what_it_does":"Pycron is a lightweight cron schedule parser that evaluates whether a given datetime matches a cron-style schedule string. It implements standard cron syntax: wildcards (*), intervals (*/5), ranges (4-10), lists (6,8,23), and single values. The main entry point is `is_now(s, dt=None)`, which returns True if the provided datetime (or current time if omitted) matches the schedule. It also offers `has_been(s, since, dt=None)` for checking whether a schedule would have matched at any point in a past interval\u2014useful for non-continuous applications. The package works with both timezone-aware and naive datetimes and supports alternative datetime libraries like Arrow, Delorean, Pendulum, and udatetime. Helper constants for Django form choices are included.\n\nThe package has no runtime dependencies and installs as a pure Python wheel, making it a minimal addition to any project. It's designed for simple scheduling logic rather than as a full task scheduler; typical use cases include checking whether a background job should run now or validating cron expressions in configuration.","worth_installing":"Yes. Pycron is a stable, dependency-free utility for cron schedule matching with no known vulnerabilities. It supports current Python versions and is suitable for any project needing to evaluate cron expressions. The aging maintenance status is not a blocker\u2014the package is mature and unlikely to require frequent updates. Install it if you need simple cron parsing without the overhead of a full task scheduler."},"id":"pycron","links":{"html":"https://skillfed.io/packages/pycron","md":"https://skillfed.io/packages/pycron.md","pypi":"https://pypi.org/project/pycron/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-06-05","license_spdx":null,"license_treatment":"permissive","name":"pycron","python_support":"supports_current","summary":"Simple cron-like parser, which determines if current datetime matches conditions."},"popularity":{"monthly_downloads":2099587,"position":3296,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"3.2.0"}
