METADATA 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. Metadata-Version: 2.1
  2. Name: python-daemon
  3. Version: 3.1.2
  4. Summary: Library to implement a well-behaved Unix daemon process.
  5. Author-email: Ben Finney <ben+python@benfinney.id.au>
  6. Maintainer: Ben Finney
  7. Maintainer-email: ben+python@benfinney.id.au
  8. License: Copying this work
  9. #################
  10. ‘python-daemon’ is under Copyright © 2008–2024 Ben Finney and others.
  11. This work, ‘python-daemon’, is free software: you may copy, modify,
  12. and/or distribute this work under certain conditions; see the relevant
  13. files for specific grant of license. No warranty expressed or implied.
  14. ‘daemon’ library
  15. ================
  16. The files ‘daemon/*’ constitute the Python ‘daemon’ library.
  17. The Python ‘daemon’ library is licensed to you under the terms of the Apache
  18. License, version 2.0 as published by the Apache Software Foundation.
  19. See the file `LICENSE.ASF-2 <LICENSE.ASF-2>`_ for details.
  20. All other files
  21. ===============
  22. All other files in this distribution, including but not limited to the
  23. packaging definition and test suite, are licensed to you under the terms of the
  24. GNU General Public License as published by the Free Software Foundation;
  25. version 3 of that license or any later version.
  26. See the file `LICENSE.GPL-3 <LICENSE.GPL-3>`_ for details.
  27. ..
  28. This document is written using `reStructuredText`_ markup, and can
  29. be rendered with `Docutils`_ to other formats.
  30. .. _Docutils: https://docutils.sourceforge.io/
  31. .. _reStructuredText: https://docutils.sourceforge.io/rst.html
  32. ..
  33. This is free software: you may copy, modify, and/or distribute this work
  34. under the terms of the Apache License version 2.0 as published by the
  35. Apache Software Foundation.
  36. No warranty expressed or implied. See the file ‘LICENSE.ASF-2’ for details.
  37. ..
  38. Local variables:
  39. coding: utf-8
  40. mode: text
  41. mode: rst
  42. End:
  43. vim: fileencoding=utf-8 filetype=rst :
  44. Project-URL: Home Page, https://pagure.io/python-daemon/
  45. Project-URL: Change Log, https://pagure.io/python-daemon/blob/main/f/ChangeLog
  46. Project-URL: Source, https://pagure.io/python-daemon/
  47. Project-URL: Issue Tracker, https://pagure.io/python-daemon/issues
  48. Keywords: daemon,fork,unix
  49. Classifier: Development Status :: 5 - Production/Stable
  50. Classifier: License :: OSI Approved :: Apache Software License
  51. Classifier: Operating System :: POSIX
  52. Classifier: Programming Language :: Python :: 3
  53. Classifier: Intended Audience :: Developers
  54. Classifier: Topic :: Software Development :: Libraries :: Python Modules
  55. Requires-Python: >=3.7
  56. Description-Content-Type: text/plain
  57. License-File: LICENSE.ASF-2
  58. License-File: LICENSE.GPL-3
  59. Requires-Dist: lockfile>=0.10
  60. Provides-Extra: doc
  61. Provides-Extra: static-analysis
  62. Requires-Dist: pip-check; extra == "static-analysis"
  63. Requires-Dist: pycodestyle~=2.12; extra == "static-analysis"
  64. Requires-Dist: pydocstyle~=6.3; extra == "static-analysis"
  65. Requires-Dist: pyupgrade~=3.17; extra == "static-analysis"
  66. Requires-Dist: isort~=5.13; extra == "static-analysis"
  67. Provides-Extra: build
  68. Requires-Dist: python-daemon[doc]; extra == "build"
  69. Requires-Dist: wheel; extra == "build"
  70. Requires-Dist: build; extra == "build"
  71. Requires-Dist: docutils; extra == "build"
  72. Requires-Dist: changelog-chug; extra == "build"
  73. Provides-Extra: test
  74. Requires-Dist: python-daemon[build,static-analysis]; extra == "test"
  75. Requires-Dist: testtools; extra == "test"
  76. Requires-Dist: testscenarios>=0.4; extra == "test"
  77. Requires-Dist: coverage; extra == "test"
  78. Provides-Extra: dist
  79. Requires-Dist: python-daemon[build]; extra == "dist"
  80. Requires-Dist: twine; extra == "dist"
  81. Provides-Extra: devel
  82. Requires-Dist: python-daemon[dist,test]; extra == "devel"
  83. This library implements the well-behaved daemon specification of
  84. :pep:`3143`, “Standard daemon process library”.
  85. A well-behaved Unix daemon process is tricky to get right, but the
  86. required steps are much the same for every daemon program. A
  87. `DaemonContext` instance holds the behaviour and configured
  88. process environment for the program; use the instance as a context
  89. manager to enter a daemon state.
  90. Simple example of usage::
  91. import daemon
  92. from spam import do_main_program
  93. with daemon.DaemonContext():
  94. do_main_program()
  95. Customisation of the steps to become a daemon is available by
  96. setting options on the `DaemonContext` instance; see the
  97. documentation for that class for each option.