aiocron
Crontabs for asyncio
Decision gist · record as of 2026-08-14
Yes, if you need cron scheduling in an asyncio application and accept the aging maintenance status. The package is stable (Production/Stable classifier), has no known vulnerabilities, low install friction, and covers a specific niche well. Not recommended if you require active development or frequent updates; consider it suitable for stable, non-critical scheduling in mature codebases.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9 or later and an active asyncio event loop to execute scheduled tasks.
- Low install friction with pure Python wheels.
- Maintenance is aging—last commit was 2025-09-28 but no release since 2025-02-14, though the repository remains active and not archived.
License · maintenance · safety
permissive license (permissive) — MIT License permits free use, modification, and distribution with minimal restrictions, making it safe for both open-source and commercial projects.
last release 2025-02-14 (546 days) · last repo commit 2025-09-28 · 377 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 325,686 downloads/mo, #7,584 on PyPI
Alternatives
Verify before relying
import aiocron
import asyncio
@aiocron.crontab('*/30 * * * *')
async def attime():
print('run')
asyncio.get_event_loop().run_forever()- Whether the package handles timezone-aware scheduling correctly across DST transitions.
- Performance characteristics under high-frequency scheduling (e.g., many concurrent cron jobs).
- Behavior when cron expressions resolve to no matching times in a given period.
What it is and what it does
aiocron brings crontab scheduling to asyncio applications by providing a decorator and object interface for running async functions on cron schedules. It parses standard crontab expressions (with optional seconds) and integrates directly into the asyncio event loop, allowing you to schedule periodic tasks without blocking.
The package depends on cronsim, python-dateutil, and tzlocal to handle cron expression parsing and timezone-aware scheduling. It supports three usage patterns: a decorator that auto-starts, a decorator with manual start/stop control, and an awaitable interface for one-off scheduled waits. The underlying cron syntax is delegated to croniter, so any expression croniter supports will work here.
Use it for
- Schedule periodic cleanup or maintenance tasks in long-running async services without spawning background threads.
- Run async database queries or API calls on a fixed schedule within an event-driven application.
- Implement time-based alerts or notifications that trigger at specific hours/days without blocking other coroutines.
- Coordinate batch processing jobs across multiple async tasks using cron timing rules.
- Wait for the next occurrence of a specific time (e.g., next hour) within an async workflow.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need cron scheduling in an asyncio application and accept the aging maintenance status.
The package is stable (Production/Stable classifier), has no known vulnerabilities, low install friction, and covers a specific niche well. Not recommended if you require active development or frequent updates; consider it suitable for stable, non-critical scheduling in mature codebases.
Install
aiocron on PyPI
Before you install
Low install friction with pure Python wheels. Maintenance is aging—last commit was 2025-09-28 but no release since 2025-02-14, though the repository remains active and not archived. Suitable for stable, non-critical scheduling tasks.
Requires Python 3.9 or later and an active asyncio event loop to execute scheduled tasks.
License in practice
MIT License permits free use, modification, and distribution with minimal restrictions, making it safe for both open-source and commercial projects.
Quickstart
import aiocron
import asyncio
@aiocron.crontab('*/30 * * * *')
async def attime():
print('run')
asyncio.get_event_loop().run_forever()
Verify before relying
- Whether the package handles timezone-aware scheduling correctly across DST transitions.
- Performance characteristics under high-frequency scheduling (e.g., many concurrent cron jobs).
- Behavior when cron expressions resolve to no matching times in a given period.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagescronsimpython-dateutiltzlocal |
| Maintenance | Aging 546 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 325,686 / month, #7,584 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: Web EnvironmentIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: POSIXProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python Modules |
Evidence: aiocron-2.1-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 › “asyncio cron scheduler”
- aiocronSchedules async functions to run on cron schedules within asyncio…
- saqSAQ is an async job queue framework that runs background tasks using…
- APSchedulerAPScheduler lets you schedule Python code to run later—once,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules 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.
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.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also django-crontab · schedule · python-crontab · crontab · rq-scheduler · local-crontab · APScheduler · croniter · scheduler · pycron