Hot code reloading tool for Python
Project description
# Reloadr
Python hot code reloading tool.
`pip install reloadr`
# Usage
You can simply decorate your functions / classes with `@reloadr` and you are ready to go.
```python
from reloadr import reloadr
@reloadr
def do_something(a, b):
return a + b
@reloadr
class SomeThing:
def do_stuff(self):
pass
```
# Examples
Launch an example (they each contain an infinite loop), then change the source code of the decorated class or function.
`git clone https://github.com/hoh/reloadr.git`
`python examples/01_manual_reload.py`
Python hot code reloading tool.
`pip install reloadr`
# Usage
You can simply decorate your functions / classes with `@reloadr` and you are ready to go.
```python
from reloadr import reloadr
@reloadr
def do_something(a, b):
return a + b
@reloadr
class SomeThing:
def do_stuff(self):
pass
```
# Examples
Launch an example (they each contain an infinite loop), then change the source code of the decorated class or function.
`git clone https://github.com/hoh/reloadr.git`
`python examples/01_manual_reload.py`
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Reloadr-0.1.tar.gz
(2.1 kB
view hashes)