python-daemon-3.1.2
توضیحات
Library to implement a well-behaved Unix daemon process.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | POSIX |
| نام فایل | python-daemon-3.1.2 |
| نام | python-daemon |
| نسخه کتابخانه | 3.1.2 |
| نگهدارنده | ['Ben Finney'] |
| ایمیل نگهدارنده | ['ben+python@benfinney.id.au'] |
| نویسنده | - |
| ایمیل نویسنده | Ben Finney <ben+python@benfinney.id.au> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/python-daemon/ |
| مجوز | Copying this work ################# ‘python-daemon’ is under Copyright © 2008–2024 Ben Finney and others. This work, ‘python-daemon’, is free software: you may copy, modify, and/or distribute this work under certain conditions; see the relevant files for specific grant of license. No warranty expressed or implied. ‘daemon’ library ================ The files ‘daemon/*’ constitute the Python ‘daemon’ library. The Python ‘daemon’ library is licensed to you under the terms of the Apache License, version 2.0 as published by the Apache Software Foundation. See the file `LICENSE.ASF-2 <LICENSE.ASF-2>`_ for details. All other files =============== All other files in this distribution, including but not limited to the packaging definition and test suite, are licensed to you under the terms of the GNU General Public License as published by the Free Software Foundation; version 3 of that license or any later version. See the file `LICENSE.GPL-3 <LICENSE.GPL-3>`_ for details. .. This document is written using `reStructuredText`_ markup, and can be rendered with `Docutils`_ to other formats. .. _Docutils: https://docutils.sourceforge.io/ .. _reStructuredText: https://docutils.sourceforge.io/rst.html .. This is free software: you may copy, modify, and/or distribute this work under the terms of the Apache License version 2.0 as published by the Apache Software Foundation. No warranty expressed or implied. See the file ‘LICENSE.ASF-2’ for details. .. Local variables: coding: utf-8 mode: text mode: rst End: vim: fileencoding=utf-8 filetype=rst : |
This library implements the well-behaved daemon specification of
:pep:`3143`, “Standard daemon process library”.
A well-behaved Unix daemon process is tricky to get right, but the
required steps are much the same for every daemon program. A
`DaemonContext` instance holds the behaviour and configured
process environment for the program; use the instance as a context
manager to enter a daemon state.
Simple example of usage::
import daemon
from spam import do_main_program
with daemon.DaemonContext():
do_main_program()
Customisation of the steps to become a daemon is available by
setting options on the `DaemonContext` instance; see the
documentation for that class for each option.
نیازمندی
| مقدار | نام |
|---|---|
| - | lockfile>=0.10 |
| xtr | pip-check; |
| xtr | pycodestyle~=2.12; |
| xtr | pydocstyle~=6.3; |
| xtr | pyupgrade~=3.17; |
| xtr | isort~=5.13; |
| xtr | python-daemon[doc]; |
| xtr | wheel; |
| xtr | build; |
| xtr | docutils; |
| xtr | changelog-chug; |
| xtr | python-daemon[build,static-analysis]; |
| xtr | testtools; |
| xtr | testscenarios>=0.4; |
| xtr | coverage; |
| xtr | python-daemon[build]; |
| xtr | twine; |
| xtr | python-daemon[dist,test]; |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl python-daemon-3.1.2:
pip install python-daemon-3.1.2.whl
نصب پکیج tar.gz python-daemon-3.1.2:
pip install python-daemon-3.1.2.tar.gz