A simple file monitoring with code reloader for Python 3.
Project description
rload
A simple file monitoring with code reloader for Python 3.
Example
from rload import Rload, EventType
rload = Rload(__name__, ignored_paths=['__pycache__'])
@rload.on('change')
def handle_change(type: EventType, data: Dict):
print(type, data)
@rload.on('reload')
def handle_reload(data):
print('Reloading', data)
@rload.on('reloaded')
def handle_reloaded(data):
print('Reloaded', data)
def test():
print('This is a test')
if __name__ == "__main__":
rload.run(target=test)
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
rload-0.0.2.tar.gz
(6.9 kB
view hashes)
Built Distribution
rload-0.0.2-py3-none-any.whl
(11.8 kB
view hashes)