Metadata-Version: 2.4
Name: python-daemon
Version: 3.0.1
Summary: Library to implement a well-behaved Unix daemon process.
Home-page: https://pagure.io/python-daemon/
Author: Ben Finney
Author-email: ben+python@benfinney.id.au
License: Apache-2
Project-URL: Change Log, https://pagure.io/python-daemon/blob/main/f/ChangeLog
Project-URL: Source, https://pagure.io/python-daemon/
Project-URL: Issue Tracker, https://pagure.io/python-daemon/issues
Keywords: daemon,fork,unix
Classifier: Development Status :: 5 - Production/Stable
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: POSIX
Classifier: Programming Language :: Python :: 3
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3
Description-Content-Type: text/x-rst
License-File: LICENSE.ASF-2
License-File: LICENSE.GPL-3
Requires-Dist: setuptools>=62.4.0
Requires-Dist: lockfile>=0.10
Requires-Dist: docutils
Provides-Extra: test
Requires-Dist: testtools; extra == "test"
Requires-Dist: testscenarios>=0.4; extra == "test"
Requires-Dist: coverage; extra == "test"
Requires-Dist: docutils; extra == "test"
Provides-Extra: devel
Requires-Dist: isort; extra == "devel"
Requires-Dist: twine; extra == "devel"
Requires-Dist: testtools; extra == "devel"
Requires-Dist: testscenarios>=0.4; extra == "devel"
Requires-Dist: coverage; extra == "devel"
Requires-Dist: docutils; extra == "devel"
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: license-file
Dynamic: project-url
Dynamic: provides-extra
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

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.
