Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Hot code reloading tool for Python

Project Description


Python hot code reloading tool.

pip install reloadr


You can simply decorate your functions / classes with @reloadr and you are ready to go.

from reloadr import reloadr

def do_something(a, b):
    return a + b

class SomeThing:
    def do_stuff(self):

Then, to reload the code, you can use of the following:

# Manual reload

# Automatic reload using system (requires library 'watchdog')

# Automatic reload in a thread every 1 second


Launch an example (they each contain an infinite loop), then change the source code of the decorated class or function.

git clone

python examples/

How it works

Instead of importing your source file again, which can lead to undesired side effects, Reloadr fetches the new code of your function within the Python source file, and executes that code in the environment of your already loaded module.

This allows it to reload code that is followed by blocking instructions such as the infinite loops you can find in the examples.

To achieve this, Reloadr relies on RedBaron , an great tool for manipulating Python source code.

Future plans

This project is still in its early stages. All ideas for improvement are welcome.

Release History

Release History

This version
History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
Reloadr-0.3.3-py3-none-any.whl (7.2 kB) Copy SHA256 Checksum SHA256 py3 Wheel May 21, 2017
Reloadr-0.3.3.tar.gz (3.7 kB) Copy SHA256 Checksum SHA256 Source May 21, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting