Skip to main content

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)

Metadata

Release files for rload 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rload 0.0.2
File Size Uploaded
rload-0.0.2.tar.gz 6.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rload 0.0.2
File Interpreter ABI Platform
rload-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 18.6 kB

Release files / rload-0.0.2.tar.gz

Download URL rload-0.0.2.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
4479fb797105198ff11a28c4d9e92103258114c6ff589b96ece17b6fe66006d8
BLAKE2b-256 checksum
How to use checksums
d7487cec566d37f4d645064a02c8694f8a5b837ea6bb16d3cecd5455935ec340
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

Release files / rload-0.0.2-py3-none-any.whl

Download URL rload-0.0.2-py3-none-any.whl
Size 11.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4efd05439ee9bba925e7da5bf36bca20033cbd10065c1d21127852d812405466
BLAKE2b-256 checksum
How to use checksums
ebf9d6ba162c081de811341c1c49982a35a9ee0e7948205c040902d7069d304b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

0.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page