All Projects → Pylons → Hupper

Pylons / Hupper

Licence: mit
in-process file monitor / reloader for reloading your code automatically during development

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Hupper

Cli
Get a programmable email address. Automate what happens when you receive emails. It's like Zapier for devs who hate emails.
Stars: ✭ 105 (-37.13%)
Mutual labels:  daemon
Js Ipfsd Ctl
Control an IPFS daemon (go-ipfs or js-ipfs) using JavaScript!
Stars: ✭ 129 (-22.75%)
Mutual labels:  daemon
Multiprocess
🚀Easy to make the common PHP/Python/js...script change daemon and multi-process execution
Stars: ✭ 151 (-9.58%)
Mutual labels:  daemon
Chaos
Proof of concept, general purpose pastejacker for GNU/Linux
Stars: ✭ 115 (-31.14%)
Mutual labels:  daemon
Lightsd
A daemon with a JSON-RPC API to control your light bulbs
Stars: ✭ 128 (-23.35%)
Mutual labels:  daemon
Wpantund
Wireless Network Interface Daemon for Low-Power Wireless SoCs
Stars: ✭ 133 (-20.36%)
Mutual labels:  daemon
Bolt
⚡🐧 - Thunderbolt 3 device manager | This is a MIRROR of bolt from fd.o
Stars: ✭ 106 (-36.53%)
Mutual labels:  daemon
Trigger
Run a user-defined command on file changes
Stars: ✭ 163 (-2.4%)
Mutual labels:  inotify
Sos
Simple Object Storage (I wish I could call it Steve's Simple Storage, or S3 ;)
Stars: ✭ 129 (-22.75%)
Mutual labels:  daemon
Kiwix Tools
Command line Kiwix tools: kiwix-serve, kiwix-manage, ...
Stars: ✭ 139 (-16.77%)
Mutual labels:  daemon
Clsync
file live sync daemon based on inotify/kqueue/bsm (Linux, FreeBSD), written in GNU C
Stars: ✭ 115 (-31.14%)
Mutual labels:  inotify
Daemon
A daemon package for use with Go (golang) services
Stars: ✭ 1,720 (+929.94%)
Mutual labels:  daemon
Maclaunch
Manage your macOS startup items.
Stars: ✭ 133 (-20.36%)
Mutual labels:  daemon
Dfs
A distributed file server framework based on swoole and inotify
Stars: ✭ 112 (-32.93%)
Mutual labels:  inotify
Space Daemon
The Space Daemon packages together IPFS, Textile Threads/Buckets, and Textile Powergate (Filecoin*) into one easy to install Daemon to make it easy to build peer to peer and privacy focused apps.
Stars: ✭ 151 (-9.58%)
Mutual labels:  daemon
Go Fsevents
Recursive filesystem event watcher using inotify in golang
Stars: ✭ 107 (-35.93%)
Mutual labels:  inotify
Node Stratum
Stratum protocol server and client for Node.js
Stars: ✭ 129 (-22.75%)
Mutual labels:  daemon
Minotaur
A pythonic, asynchronous, inotify interface
Stars: ✭ 163 (-2.4%)
Mutual labels:  inotify
Usbmount
Simple set of scripts to automount removable devices for a Linux system
Stars: ✭ 160 (-4.19%)
Mutual labels:  daemon
Pueue
🌠 Manage your shell commands.
Stars: ✭ 2,471 (+1379.64%)
Mutual labels:  daemon

====== hupper

.. image:: https://img.shields.io/pypi/v/hupper.svg :target: https://pypi.python.org/pypi/hupper

.. image:: https://github.com/Pylons/hupper/workflows/Build/test%20on%20Linux/badge.svg?branch=master :target: https://github.com/Pylons/hupper/actions?query=workflow%3A%22Build%2Ftest+on+Linux%22

.. image:: https://github.com/Pylons/hupper/workflows/Build/test%20on%20MacOS/badge.svg?branch=master :target: https://github.com/Pylons/hupper/actions?query=workflow%3A%22Build%2Ftest+on+MacOS%22

.. image:: https://github.com/Pylons/hupper/workflows/Build/test%20on%20Windows/badge.svg?branch=master :target: https://github.com/Pylons/hupper/actions?query=workflow%3A%22Build%2Ftest+on+Windows%22

.. image:: https://readthedocs.org/projects/hupper/badge/?version=latest :target: https://readthedocs.org/projects/hupper/?badge=latest :alt: Documentation Status

hupper is an integrated process monitor that will track changes to any imported Python files in sys.modules as well as custom paths. When files are changed the process is restarted.

Command-line Usage

Hupper can load any Python code similar to python -m <module> by using the hupper -m <module> program.

.. code-block:: console

$ hupper -m myapp Starting monitor for PID 23982.

API Usage

Start by defining an entry point for your process. This must be an importable path in string format. For example, myapp.scripts.serve.main.

.. code-block:: python

# myapp/scripts/serve.py

import sys
import hupper
import waitress


def wsgi_app(environ, start_response):
    start_response('200 OK', [('Content-Type', 'text/plain')])
    yield b'hello'


def main(args=sys.argv[1:]):
    if '--reload' in args:
        # start_reloader will only return in a monitored subprocess
        reloader = hupper.start_reloader('myapp.scripts.serve.main')

        # monitor an extra file
        reloader.watch_files(['foo.ini'])

    waitress.serve(wsgi_app)

Acknowledgments

hupper is inspired by initial work done by Carl J Meyer and David Glick during a Pycon sprint and is built to be a more robust and generic version of Ian Bicking's excellent PasteScript paste serve --reload and Pyramid's pserve --reload.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].