Skip to main content

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


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 details)

Uploaded Source

Built Distribution

rload-0.0.2-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file rload-0.0.2.tar.gz.

File metadata

  • Download URL: rload-0.0.2.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for rload-0.0.2.tar.gz
Algorithm Hash digest
SHA256 4479fb797105198ff11a28c4d9e92103258114c6ff589b96ece17b6fe66006d8
MD5 d64c51eb9f81906989756fda5a1b6f44
BLAKE2b-256 d7487cec566d37f4d645064a02c8694f8a5b837ea6bb16d3cecd5455935ec340

See more details on using hashes here.

File details

Details for the file rload-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: rload-0.0.2-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.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for rload-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4efd05439ee9bba925e7da5bf36bca20033cbd10065c1d21127852d812405466
MD5 08cf04958290f16c84633bb30ec4b1b5
BLAKE2b-256 ebf9d6ba162c081de811341c1c49982a35a9ee0e7948205c040902d7069d304b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page