File: PKG-INFO

package info (click to toggle)
python-daemon 3.1.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 492 kB
  • sloc: python: 2,854; sh: 19; makefile: 10
file content (117 lines) | stat: -rw-r--r-- 4,770 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
Metadata-Version: 2.1
Name: python-daemon
Version: 3.1.2
Summary: Library to implement a well-behaved Unix daemon process.
Author-email: Ben Finney <ben+python@benfinney.id.au>
Maintainer: Ben Finney
Maintainer-email: ben+python@benfinney.id.au
License: 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 :
        
Project-URL: Home Page, https://pagure.io/python-daemon/
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.7
Description-Content-Type: text/plain
License-File: LICENSE.ASF-2
License-File: LICENSE.GPL-3
Requires-Dist: lockfile>=0.10
Provides-Extra: doc
Provides-Extra: static-analysis
Requires-Dist: pip-check; extra == "static-analysis"
Requires-Dist: pycodestyle~=2.12; extra == "static-analysis"
Requires-Dist: pydocstyle~=6.3; extra == "static-analysis"
Requires-Dist: pyupgrade~=3.17; extra == "static-analysis"
Requires-Dist: isort~=5.13; extra == "static-analysis"
Provides-Extra: build
Requires-Dist: python-daemon[doc]; extra == "build"
Requires-Dist: wheel; extra == "build"
Requires-Dist: build; extra == "build"
Requires-Dist: docutils; extra == "build"
Requires-Dist: changelog-chug; extra == "build"
Provides-Extra: test
Requires-Dist: python-daemon[build,static-analysis]; extra == "test"
Requires-Dist: testtools; extra == "test"
Requires-Dist: testscenarios>=0.4; extra == "test"
Requires-Dist: coverage; extra == "test"
Provides-Extra: dist
Requires-Dist: python-daemon[build]; extra == "dist"
Requires-Dist: twine; extra == "dist"
Provides-Extra: devel
Requires-Dist: python-daemon[dist,test]; extra == "devel"

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.