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.1.tar.gz
(6.9 kB
view details)
Built Distribution
rload-0.0.1-py3-none-any.whl
(11.8 kB
view details)
File details
Details for the file rload-0.0.1.tar.gz
.
File metadata
- Download URL: rload-0.0.1.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 219fb320b4eff2482b828eb227ce22fddf63caf03f209c37bbc6cad0acb488bf |
|
MD5 | 7a8a2e8415c68a890df618acd0e16aa0 |
|
BLAKE2b-256 | ff0fff7d523abe055301a30337858f395c1edcccf873ee719330507ac35fa5cf |
File details
Details for the file rload-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: rload-0.0.1-py3-none-any.whl
- Upload date:
- Size: 11.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c974028ba007e07cc6cfab18bf56728ed01ddc90b279ee683a6aa808feacc0c |
|
MD5 | e99cb16282452b116493a63a08c102dd |
|
BLAKE2b-256 | 20739aaae33faf3625c55d19fa835416d755c30a1553adf5198c699bd6fefa5f |