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.7.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

watchserver-0.1.7-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: watchserver-0.1.7.tar.gz
  • Upload date:
  • Size: 10.9 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.7.tar.gz
Algorithm Hash digest
SHA256 c1c3dcbfde8478872eebba473f2572da549797463530be3529fdda5223b7ba1f
MD5 8c29a2b6545150edaf9715505e2036f7
BLAKE2b-256 da8b0926cfea9fe222f43e137c9d5c9f616756358adb314fea14aedc65555479

See more details on using hashes here.

File details

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

File metadata

  • Download URL: watchserver-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 11.5 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 1f03ae82946037be79ab2878ae558e9af29ac97cf3a46f5e8547984b5c0f2290
MD5 4b0eb2cd905abc9c80a76cb52b2b6ccf
BLAKE2b-256 a29efa0e949937cd8c70d730f602179cdb55390daa67049f84c40b93de776315

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