{"categories":[{"label":"Monitoring","url":"https://skillfed.io/packages/category/system-monitoring/4"}],"enrichment":{"capability":"Manages process ID files with stale detection, file locking, and permission control, available as a context manager or decorator for daemon and single-instance enforcement.","skillfed_tags":["daemon-lifecycle","process-locking"],"use_cases":["Enforce single-instance execution of a long-running service or batch job by locking a pidfile on startup","Detect and clean up stale pidfiles left behind after a process crash, preventing false 'already running' errors","Integrate pidfile management into a daemon context manager to coordinate process lifecycle with logging and signal handling","Decorate a main function to automatically acquire and release a pidfile without explicit context manager syntax","Manage process identity across fork operations in daemon scenarios where PID determination must happen at lock time"],"what_it_does":"pid is a lightweight library for creating and managing Unix-style process ID files. It wraps pidfile creation with stale detection (identifying leftover files from crashed processes), fcntl-based file locking to prevent concurrent execution, and permission control via chmod and chown. The package depends only on psutil.\n\nIt supports three usage patterns: as a context manager (recommended for clean resource handling), as a decorator on functions, or integrated with daemon frameworks. The library handles signal cleanup via atexit and is designed to work with daemonization workflows. However, the project has been abandoned since its last release on 2020-07-18, so it receives no maintenance or updates.","worth_installing":"Yes, if you need pidfile management for a daemon or single-instance application and can tolerate an unmaintained package. The code is stable and has no known vulnerabilities, but expect no fixes for compatibility issues or edge cases. For new projects, consider whether a more actively maintained alternative exists; for existing code already using pid, there is no urgent reason to migrate."},"id":"pid","links":{"html":"https://skillfed.io/packages/pid","md":"https://skillfed.io/packages/pid.md","pypi":"https://pypi.org/project/pid/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2020-07-18","license_spdx":null,"license_treatment":"permissive","name":"pid","python_support":"unspecified","summary":"Pidfile featuring stale detection and file-locking, can also be used as context-manager or decorator"},"popularity":{"monthly_downloads":191560,"position":9881,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"3.0.4"}
