pycron
Simple cron-like parser, which determines if current datetime matches conditions.
Decision gist · record as of 2026-08-14
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—the 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.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction: pure Python wheel with no runtime dependencies.
- Maintenance is aging—last commit was 2025-10-08, but the package has been stable since its 2015-11-18 first release and supports current Python versions (3.9–3.13).
License · maintenance · safety
MIT (permissive) — MIT license is permissive; you can use, modify, and distribute pycron freely in commercial and private projects with minimal restrictions.
last release 2025-06-05 (435 days) · last repo commit 2025-10-08 · 170 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 2,099,587 downloads/mo, #3,296 on PyPI
Alternatives
Verify before relying
import pycron
# Check if current time matches a cron schedule
if pycron.is_now('*/5 * * * *'):
print('Runs every 5 minutes')
# Check if a specific datetime matches
from datetime import datetime
dt = datetime(2025, 6, 5, 12, 0)
if pycron.is_now('0 * * * *', dt):
print('Matches at minute 0 of every hour')- Whether the package is actively maintained or in maintenance-only mode (last commit 2025-10-08 is recent, but status is 'aging').
- Performance characteristics when evaluating many schedules or with high-frequency calls.
What it is and 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—useful 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.
The 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.
Use it for
- 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.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
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—the 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.
Install
pycron on PyPI
Before you install
Low friction: pure Python wheel with no runtime dependencies. Maintenance is aging—last commit was 2025-10-08, but the package has been stable since its 2015-11-18 first release and supports current Python versions (3.9–3.13).
License in practice
MIT license is permissive; you can use, modify, and distribute pycron freely in commercial and private projects with minimal restrictions.
Quickstart
import pycron
# Check if current time matches a cron schedule
if pycron.is_now('*/5 * * * *'):
print('Runs every 5 minutes')
# Check if a specific datetime matches
from datetime import datetime
dt = datetime(2025, 6, 5, 12, 0)
if pycron.is_now('0 * * * *', dt):
print('Matches at minute 0 of every hour')
Verify before relying
- Whether the package is actively maintained or in maintenance-only mode (last commit 2025-10-08 is recent, but status is 'aging').
- Performance characteristics when evaluating many schedules or with high-frequency calls.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release <4.0,>=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Aging 435 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,099,587 / month, #3,296 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9 |
Evidence: pycron-3.2.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “check if time matches cron”
- pycronParses cron-style schedule strings and determines whether a given…
- cron-converterParses cron schedule strings into structured formats and generates…
- cronexEvaluates cron expressions to determine if a scheduled task should…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also cron-converter · cron-validator · pyawscron · crontab · croniter · tzcron · cronsim · cronex · aws-croniter · APScheduler