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.0.tar.gz
(5.6 kB
view details)
Built Distribution
rload-0.0.0-py3-none-any.whl
(8.8 kB
view details)
File details
Details for the file rload-0.0.0.tar.gz
.
File metadata
- Download URL: rload-0.0.0.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1ab9c89d5d074aa3979a9f47ad69fd720f753e98a89d614f8640a8cd0e62ca3 |
|
MD5 | 7057e83119bbd0fec111bfe33f231800 |
|
BLAKE2b-256 | b770d2f76a6c8c597c1bfb27cb119e786b775c0171b2473e50bb9a1063229b32 |
File details
Details for the file rload-0.0.0-py3-none-any.whl
.
File metadata
- Download URL: rload-0.0.0-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7691c9da4b6119f14c21498a249306da77c29a2e9d24cfd239289c297524071 |
|
MD5 | c603f4d954afce827f6c3bae7187e507 |
|
BLAKE2b-256 | 24ac0fe8d1930b45cf5d6ca129cac606b4a874031aa115ae461688de8c1f10d4 |