{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/8"},{"label":"Logging","url":"https://skillfed.io/packages/category/system-logging"}],"enrichment":{"capability":"Provides Python bindings to systemd's native C libraries for journal logging, daemon management, machine identification, and login session queries on Linux systems.","skillfed_tags":["systemd-integration","linux-only","compiled-extension"],"use_cases":["Send structured application logs directly to systemd journal with custom fields instead of writing to files.","Read and filter systemd journal entries programmatically by executable, process ID, unit name, or time range.","Integrate Python daemons with systemd socket activation and service lifecycle management.","Query machine identifiers, boot IDs, and systemd message catalog entries for system introspection.","Route Python logging framework output to systemd journal using the provided JournalHandler.","Query active login sessions, users, and seats on a systemd-managed system."],"what_it_does":"systemd-python is a native Python interface to systemd's C libraries on Linux. It wraps four main systemd subsystems: journal (sending structured messages and reading journal files), daemon (socket activation and daemon utilities), id128 (machine and boot identifiers), and login (querying sessions, users, and seats). The package is designed for applications that need to integrate deeply with systemd's logging and service infrastructure.\n\nThe module is typically installed via distribution packages (dnf, apt, pacman, zypper) rather than PyPI, since it requires compilation against system libsystemd headers. When building from source, you must have the systemd development libraries and a C compiler available. Once installed, it allows Python code to send structured log entries to the journal, read journal entries with filtering and time-based queries, and query systemd's session and machine metadata\u2014all without shelling out to journalctl or other command-line tools.","worth_installing":"Yes, if you are writing systemd-integrated services on Linux and need native journal access or daemon integration. The package is actively maintained and has no known vulnerabilities. However, the high install friction (requires libsystemd dev headers and compilation) and the lack of recent PyPI releases mean you should prefer distribution packages where available. Not suitable for non-systemd systems or cross-platform Python applications."},"id":"systemd-python","links":{"html":"https://skillfed.io/packages/systemd-python","md":"https://skillfed.io/packages/systemd-python.md","pypi":"https://pypi.org/project/systemd-python/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2023-02-11","license_spdx":null,"license_treatment":"copyleft","name":"systemd-python","python_support":"unspecified","summary":"Python interface for libsystemd"},"popularity":{"monthly_downloads":954641,"position":4649,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"235"}
