Jurigged

0.6.1 · active · verified Mon Apr 13

Jurigged is a Python library that enables live code updating, also known as hot reloading. It intelligently patches new functions and methods into a running script, ensuring that existing instances of classes are simultaneously updated with the new behavior. When a module is modified, only the changed lines are re-executed, preserving program state. The current version is 0.6.1, released in May 2025, and the project appears to be actively maintained.

Warnings

Install

Imports

Quickstart

To use jurigged, you can either run your script with `jurigged your_script.py` from the command line, or programmatically call `jurigged.watch()` within your script. Create a file named `my_app.py` with the code above. Run it using `jurigged my_app.py`. Then, modify the `greet` function (e.g., to `return "Hello, updated Jurigged!"`) and save the file. You will see the output change live without restarting the script.

import jurigged
import time

def greet():
    return "Hello, Jurigged!"

def main():
    jurigged.watch()
    print("Watching for changes... edit this file and save!")
    while True:
        print(greet())
        time.sleep(2)

if __name__ == '__main__':
    main()

view raw JSON →