Skip to main content

No project description provided

Project description

livewire

A simple, fast, and lightweight live reload server for python modules.

Server

The webserver is a simple python server that listens for two types of requests:

  • sync_init, unload all modules, remove all the local filesystem and writes that files in the request payload, exec the entrypoint.py
  • sync_target, unload all modules, update the deltas, exec the entrypoint.py

Example python -m livewire.server

Programmatically

from livewire.server import start_hotreload_for
start_hotreload_for('/tmp/some-folder')
# the server is now running, you should block the main thread otherwise the process will exit

Watch

The client watches the filesystem for changes and sends the requests to the server.

Example python -m livewire.watch --push-to=127.0.0.1

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

livewire-0.0.11.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

livewire-0.0.11-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file livewire-0.0.11.tar.gz.

File metadata

  • Download URL: livewire-0.0.11.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.19

File hashes

Hashes for livewire-0.0.11.tar.gz
Algorithm Hash digest
SHA256 414748dd0723411a053a929164b4fbb02425d013123c4e9b28ce469c65c54d76
MD5 e9f6250006a4786bfc86bf0a819a7cc8
BLAKE2b-256 8b4e5313dd9373b4a3ae80f49e1a9aaad58e505eb09e6477089b5be2458b2556

See more details on using hashes here.

File details

Details for the file livewire-0.0.11-py3-none-any.whl.

File metadata

  • Download URL: livewire-0.0.11-py3-none-any.whl
  • Upload date:
  • Size: 15.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.19

File hashes

Hashes for livewire-0.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 438af38adab20fbf485db6a6821d16606ae16af2ac02b82ff6cb54cab406e7f1
MD5 0a1ad9ec045fb99df44c6ad64418a652
BLAKE2b-256 1e54046853f40d1849e13fa449b546141d83dd56515b7142f0e887884a8539a2

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