{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/2"}],"enrichment":{"capability":"Implements PEP 3143 well-behaved Unix daemon processes, handling the complex steps of forking and process environment setup so your program can run reliably in the background.","skillfed_tags":["unix-daemon","background-process","posix-only"],"use_cases":["Long-running background services (log aggregators, monitoring agents, scheduled job runners) that need to detach from the terminal.","System utilities that must fork and run as true Unix daemons with proper signal handling and file descriptor management.","Applications that need to customize daemon behavior (e.g., preserve specific file descriptors, set working directory, manage pidfiles)."],"what_it_does":"python-daemon is a library that implements the PEP 3143 standard for well-behaved Unix daemon processes. Creating a daemon\u2014a process that runs in the background detached from the terminal\u2014requires several tricky steps: forking, closing file descriptors, handling signals, and setting up the process environment correctly. This library encapsulates all of that complexity into a simple context manager interface, so you can wrap your main program logic and let DaemonContext handle the daemon setup automatically.\n\nYou configure the daemon by setting options on a DaemonContext instance (signal handlers, working directory, file descriptors to preserve, etc.) and then use it as a context manager. The library depends only on lockfile for file-based locking during the daemonization process. It requires Python 3.7 or later and runs only on POSIX systems.","worth_installing":"Yes, if you are building a Unix daemon in Python and want to follow PEP 3143 correctly without reimplementing the forking and setup logic yourself. The dormant maintenance status is not a blocker\u2014the package is feature-complete and stable\u2014but verify that it meets your Python version and OS requirements. Not suitable for Windows."},"id":"python-daemon","links":{"html":"https://skillfed.io/packages/python-daemon","md":"https://skillfed.io/packages/python-daemon.md","pypi":"https://pypi.org/project/python-daemon/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2024-12-03","license_spdx":null,"license_treatment":"permissive","name":"python-daemon","python_support":"supports_current","summary":"Library to implement a well-behaved Unix daemon process."},"popularity":{"monthly_downloads":21136028,"position":1011,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"3.1.2"}
