Distro - an OS platform information API
Low maintenance activity. Last release over 2 years ago, commits in 3 of the last 26 weeks. Weaker on commit activity and recent releases.
pip install distroDistro - an OS platform information API
distro provides information about the
OS distribution it runs on, such as a reliable machine-readable ID, or
version information.
It is the recommended replacement for Python's original
platform.linux_distribution
function (removed in Python 3.8). It also provides much more functionality
which isn't necessarily Python bound, like a command-line interface.
Distro currently supports Linux and BSD based systems but Windows and OS X support is also planned.
For Python 2.6 support, see https://github.com/python-distro/distro/tree/python2.6-support
Installation
Installation of the latest released version from PyPI:
pip install distro
Installation of the latest development version:
pip install https://github.com/python-distro/distro/archive/master.tar.gz
To use as a standalone script, download distro.py directly:
curl -O https://raw.githubusercontent.com/python-distro/distro/master/src/distro/distro.py
python distro.py