Skip to main content

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

Metadata

Release files for livewire 0.0.11

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

Source distribution (sdist)

Source distribution for livewire 0.0.11
File Size Uploaded
livewire-0.0.11.tar.gz 11.1 kB Details

Built distribution (wheel)

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

Total release size: 26.6 kB

Release files / livewire-0.0.11.tar.gz

Download URL livewire-0.0.11.tar.gz
Size 11.1 kB
Tags Source
SHA-256 checksum
How to use checksums
414748dd0723411a053a929164b4fbb02425d013123c4e9b28ce469c65c54d76
BLAKE2b-256 checksum
How to use checksums
8b4e5313dd9373b4a3ae80f49e1a9aaad58e505eb09e6477089b5be2458b2556
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.8.19

Release files / livewire-0.0.11-py3-none-any.whl

Download URL livewire-0.0.11-py3-none-any.whl
Size 15.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
438af38adab20fbf485db6a6821d16606ae16af2ac02b82ff6cb54cab406e7f1
BLAKE2b-256 checksum
How to use checksums
1e54046853f40d1849e13fa449b546141d83dd56515b7142f0e887884a8539a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.8.19

Release history Release notifications | RSS feed

This release

0.0.11 This release

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

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