A module for reading systemd's os-release information on modern Linux distributions.
Project description
os-release
os-release is a simple Python module for reading systemd's os-release
information on modern Linux distributions.
It parses the contents of systemd's os-release
(os-release(5)) files:
/etc/os-release
or /usr/lib/os-release
.
Installation
os-release is available on PyPI.
Add it to your projects setup.py
install_requires
:
install_requires=['os-release']
or install it directly via pip
:
$ pip install os-release
Alternatively, clone this Git repository and run:
$ python setup.py install
Documentation:
Documentation for os-release is available on Read the Docs.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
os-release-1.0.tar.gz
(5.2 kB
view hashes)