Skip to main content

Python live reload server

Project description

Livereload

A easy to use fully features live reloading and file watching http server. The server uses watchdog, queue, and ThreadedServer to create a live reloading environment. The interactions are fully customizable where a callback is called for file creation, update, and removal. The defaults are intuitive, but user customization is also easy.

Features:

  • Live reload
    • on html change
    • on static, css or js, change
  • Auto load custom error pages
  • Ignore patterns for files and directories
  • User defined values with smart defaults
    • Watch paths: defaults to cwd
    • Ignore files/paths: defaults to nothing being ignored
    • File event callbacks: defaults to reloading page on html change or static file change
    • server port: defaults to 3031
    • server host: defaults to localhost
    • base directory, this is where the server discovers custom error files: defaults to cwd
    • root directory, this is where the server attaches and serves from: defaults to cwd
    • suppress, stops all server logging, defaults to False
  • Auto open server in browser

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

watchserver-0.1.4.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

watchserver-0.1.4-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file watchserver-0.1.4.tar.gz.

File metadata

  • Download URL: watchserver-0.1.4.tar.gz
  • Upload date:
  • Size: 11.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.5

File hashes

Hashes for watchserver-0.1.4.tar.gz
Algorithm Hash digest
SHA256 74be80a4e249b1ba0807aa0ce0533038cc4adcd8a3cf8e3549acf592d4454b52
MD5 06bc000dd631c979621f250c689f786d
BLAKE2b-256 03d4a7684cfa2469a027d2175c59a4ae112a08c4fe1e7055ae821da6b2ec9a3c

See more details on using hashes here.

File details

Details for the file watchserver-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: watchserver-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 11.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.5

File hashes

Hashes for watchserver-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e2a49b7f9384dac51c198dc4bb1da006d6496a96c4b2371214f70ef1c58909d8
MD5 5bbac83b0cf524a75a984756bedd42bc
BLAKE2b-256 016418c73a6c90e67912010d4feab8a3a29dfdbc78fee0a5c009cdbb3c68ac06

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