BottleDaemon-0.1.2
توضیحات
A simple tool to help daemonize bottle applications.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | BottleDaemon-0.1.2 |
| نام | BottleDaemon |
| نسخه کتابخانه | 0.1.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Jonathan Hood |
| ایمیل نویسنده | me@jonathanhood.org |
| آدرس صفحه اصلی | UNKNOWN |
| آدرس اینترنتی | https://pypi.org/project/BottleDaemon/ |
| مجوز | UNKNOWN |
Bottle Daemon
=============
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:
.. sourcecode:: python
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.
نحوه نصب
نصب پکیج whl BottleDaemon-0.1.2:
pip install BottleDaemon-0.1.2.whl
نصب پکیج tar.gz BottleDaemon-0.1.2:
pip install BottleDaemon-0.1.2.tar.gz