A hot reload tool for Python.
Run your script with omg, and every time you save a file, it kills your code and brings it back. Only user modules are reloaded - external libraries are spared the pain - so it's fast. Disturbingly fast.
Great for prototyping, experimenting, or just punishing your code until it stops screaming. Jupyter promised flexibility and gave you state soup - omg gives you a clean kill and a fresh start every time.
pip install omgReplace python with omg:
omg path/to/script.pyMake a change โ omg reloads โ repeat until the code obeys.
- Faster than restarting Python every 12 seconds
- You don't trust Jupyter anymore
- You like your experiments linear and repeatable
- You want to hold onto in-memory results (
checkpointerhelps with that)
- Watches your
.pyfiles for changes - Nukes and reloads all user modules
- Skips external libs - only your mess gets reloaded
- Re-runs your program from the top
- Doesn't care how cursed your codebase is
Use checkpointer if you want to keep results or cache expensive work across reloads.
It plays well with omg and saves you from recomputing your sins.
It grinds. You code. It reloads your mistakes with incredible speed - but it sure as hell doesn't fix them. ๐