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

Uploaded Source

Built Distribution

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

Uploaded Python 3

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