SystemdUnitParser
SystemdUnitParser is an extension to Python's configparser.RawConfigParser to properly parse
systemd unit files
Usage
from SystemdUnitParser import SystemdUnitParser
config = SystemdUnitParser()
config.read('sample.service') # or any other systemd unit file
print(config.sections()) # get all sections of the unit file
print(config.options('Unit')) # get all options in a section
print(config.get('Unit', 'Description')) # get the actual value of an action
Contributing
- create a fork
- create a new branch from origin/master
- do your patches
- run
pytest - push your changes to your fork and create a PR
License
This module is licensed under GPL-3.0-or-later
Release files for systemdunitparser 0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| systemdunitparser-0.4.tar.gz | 16.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| systemdunitparser-0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:33.7 kB
Release files / systemdunitparser-0.4.tar.gz
| Download URL | systemdunitparser-0.4.tar.gz |
|---|---|
| Size | 16.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
af5fb7c0ba9d27dab044fee9b4e632149af32545f5501ada9d7ecf8529e38f9f
|
|
BLAKE2b-256 checksum How to use checksums |
845041b10851ff5f0b36832a95e8fa455483710077f10a47398d163323f5ddf4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 30, 2025.
Transparency logRelease files / systemdunitparser-0.4-py3-none-any.whl
| Download URL | systemdunitparser-0.4-py3-none-any.whl |
|---|---|
| Size | 16.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
80f5529d132a829307c6cbb0eaaa80b7d675e7b27c5eec5ec822827b73c6faad
|
|
BLAKE2b-256 checksum How to use checksums |
cbb8f22eaa6309539313a4755579204787c5871f2678420b6029de5f05351032
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 30, 2025.
Transparency log