python_systemd
python_systemd is a Python module for native access to the systemd facilities. Functionality is separated into a number of modules:
- systemd.journalsupports sending of structured messages to the journal and reading journal files.
- systemd.daemonwraps parts of- libsystemduseful for writing daemons and socket activation.
- systemd.id128provides functions for querying machine and boot identifiers and a lists of message identifiers provided by systemd.
- systemd.loginwraps parts of- libsystemdused to query logged in users and available seats and machines.
Installation⚑
sudo apt install python3-systemd