httpwatcher is a Python library and command-line utility for serving static files with live reload functionality, primarily intended for web development. It leverages the Tornado asynchronous web framework for its HTTP and WebSocket server capabilities. The current version is 0.5.2. Releases appear to be ad-hoc, tied to development needs rather than a fixed cadence.
pip install httpwatcherVerified import paths — ran on the pinned version, not inferred.
This example demonstrates how to set up and run an `httpwatcher` server programmatically. It serves files from a 'my_static_app' directory, includes a basic `index.html` file, and starts the server on `http://127.0.0.1:5555`. Changes to files in 'my_static_app' would trigger a live reload in connected browsers. The `open_browser=False` argument is used for programmatic control.
Always qualify searches with 'python library' or 'pypi' when looking for information on this specific package.
Do not deploy applications using `httpwatcher` as a production web server. Use production-ready web servers like Nginx, Apache, Gunicorn, or uWSGI instead.
Ensure that all HTML files intended for live reloading contain a `</body>` tag. For non-HTML content, live reload will not function as expected.