A simple tool to help daemonize bottle applications.
Project description
A simple tool to help make bottle appliations run in the background a unix/linux daemon.
Usage is pretty straighforward:
from bottledaemon import daemon_run
from bottle import route
@route("/hello")
def hello():
return "Hello World"
if __name__ == "__main__":
daemon_run()
The above application will launch in the background. This top-level script can be used to start/stop the background process easily:
jonathans-air:bottle-daemon jhood$ python bottledaemon/bottledaemon.py usage: bottledaemon.py [-h] {start,stop}
The daemon library guarantees that your application will only be lauched a single time - so multiple “start” commands are OK.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
BottleDaemon-0.1.0.tar.gz
(2.1 kB
view hashes)
Close
Hashes for BottleDaemon-0.1.0.macosx-10.9-intel.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53dd1565850432939029aec4133db6150abdbd5961460a0493fe1d3080990aa9 |
|
MD5 | 01190934ba4e048160d81dc02c755618 |
|
BLAKE2b-256 | d222fa5c36ca272a012bcb93639e2468832c1eda0e81c5279cefddec93befca3 |