Miksus/rocketry
Miksus/rocketry has 3,351 GitHub stars and 114 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-07 00:37 UTC. Last push 2023-11-15.
Modern scheduling library for Python
Measured star growth
- in 24h
- 0
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalRocketry
The engine to power your Python apps
What is it?
Rocketry is a modern statement-based scheduling framework for Python. It is simple, clean and extensive. It is suitable for small and big projects.
This is how it looks like:
from rocketry import Rocketry
from rocketry.conds import daily
app = Rocketry()
@app.task(daily)
def do_daily():
...
if __name__ == '__main__':
app.run()
Core functionalities:
- Powerful scheduling
- Concurrency (async, threading, multiprocess)
- Parametrization
- Task pipelining
- Modifiable session also in runtime
- Async support
Links:
- Documentation: https://rocketry.readthedocs.io
- Source code: https://github.com/Miksus/rocketry
- Releases: https://pypi.org/project/rocketry/
Why Rocketry?
Unlike the alternatives, Rocketry's scheduler is statement-based. Rocketry natively supports the same scheduling strategies as the other options, including cron and task pipelining, but it can also be arbitrarily extended using custom scheduling statements.
Here is an example of custom conditions:
from rocketry.conds import daily, time_of_week
from pathlib import Path
@app.cond()
def file_exists(file):
return Path(file).exists()
@app.task(daily.after("08:00") & file_exists("myfile.csv"))
def do_work():
...
Rocketry is suitable for quick automation projects and for larger scale applications. It does not make assumptions of your project structure.
Installation
Install Rocketry from PyPI:
pip install rocketry
More Examples
Here are some more examples of what it can do.
Scheduling:
from rocketry.conds import every
from rocketry.conds import hourly, daily, weekly,
from rocketry.conds import time_of_day
from rocketry.conds import cron
@app.task(every("10 seconds"))
def do_continuously():
...
@app.task(daily.after("07:00"))
def do_daily_after_seven():
...
@app.task(hourly & time_of_day.between("22:00", "06:00"))
def do_hourly_at_night():
...
@app.task((weekly.on("Mon") | weekly.on("Sat")) & time_of_day.after("10:00"))
def do_twice_a_week_after_ten():
...
@app.task(cron("* 2 * * *"))
def do_based_on_cron():
...
Pipelining tasks:
from rocketry.conds import daily, after_success
from rocketry.args import Return
@app.task(daily.after("07:00"))
def do_first():
...
return 'Hello World'
@app.task(after_success(do_first))
def do_second(arg=Return('do_first')):
# arg contains the value of the task do_first's return
...
return 'Hello Python'
Parallelizing tasks:
from rocketry.conds import daily
@app.task(daily, execution="main")
def do_unparallel():
...
@app.task(daily, execution="async")
async def do_async():
...
@app.task(daily, execution="thread")
def do_on_separate_thread():
...
@app.task(daily, execution="process")
def do_on_separate_process():
...
Interested?
Read more from the documentation.
About Library
- Author: Mikael Koli (Miksus) - [email protected]
- License: MIT
Explore related projects
n8n-io/n8n
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
209,720 starslanggenius/dify
Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
160,568 starsmicrosoft/PowerToys
Microsoft PowerToys is a collection of utilities that supercharge productivity and customization on Windows
140,628 starsstablyai/orca
Orca is the place for working with a fleet of agents (e.g. Grok Bot, Claude Code). Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.
117,907 stars