Metadata-Version: 2.4
Name: omg
Version: 1.3.3
Summary: A Python CLI replacement with live reload capabilities, enabling fast restarts by reloading only user modules. Ideal for iterative development and prototyping.
Project-URL: Repository, https://github.com/Reddan/omg.git
Author: Hampus Hallman
License: Copyright 2019-2025 Hampus Hallman
        
        Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
License-File: LICENSE
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Python: >=3.10
Requires-Dist: riprint
Requires-Dist: termcolor
Requires-Dist: watchdog
Description-Content-Type: text/markdown

# omg - Ongoing Mistake Grinder · [![License](https://img.shields.io/badge/license-MIT-blue)](https://github.com/Reddan/omg/blob/master/LICENSE) [![pypi](https://img.shields.io/pypi/v/omg)](https://pypi.org/project/omg/) [![pypi](https://img.shields.io/pypi/pyversions/omg)](https://pypi.org/project/omg/)

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.

---

## 📦 Install

```bash
pip install omg
```

---

## 🚀 Usage

Replace `python` with `omg`:

```bash
omg path/to/script.py
```

Make a change → `omg` reloads → repeat until the code obeys.

---

## 🤔 Why You'd Use It

* 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 (`checkpointer` helps with that)

---

## 🧨 What It Actually Does

* Watches your `.py` files 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

---

## Bonus: Keep Data Alive

Use [`checkpointer`](https://github.com/Reddan/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.\
It doesn't fix them. 💀
