A simple tool to help make bottle appliations run in the background as a unix/linux daemon. Try it out by installing with pip:
> pip install bottledaemon
Or, alternatively, install from source:
> git clone https://github.com/jonathanhood/bottledaemon.git > cd bottledaemon > python setup.py install
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.
Metadata
Release files for BottleDaemon 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| BottleDaemon-0.1.2.tar.gz | 2.2 kB | Without provenance | Details |
Release files / BottleDaemon-0.1.2.tar.gz
| Download URL | BottleDaemon-0.1.2.tar.gz |
|---|---|
| Size | 2.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9c07b18515d9783330b2d56e373a8205f50e9a5664fa4c301fbaa36b4c21382d
|
|
BLAKE2b-256 checksum How to use checksums |
76d1a745a6e9ba3b5543e062d1e7bae9755ce78ad0b9d2aaa53faaae68c5fcbe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for BottleDaemon 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.