Get the information items from the specified distro release file.
Get the information items from the lsb_release command output.
Get the information items from the specified os-release file.
Parse a distro release file.
Return the build number of the current distribution. For details, see :func:distro.build_number.
Return the codename of the OS distribution. For details, see :func:distro.codename.
Return a single named information item from the distro release file data source of the OS distribution. For details, see :func:distro.distro_release_attr.
Return a dictionary containing key-value pairs for the information items from the distro release file data source of the OS distribution. For details, see :func:distro.distro_release_info.
Return the distro ID of the OS distribution, as a string. For details, see :func:distro.id.
Return certain machine-readable information about the OS distribution. For details, see :func:distro.info.
Return the IDs of distributions that are like the OS distribution. For details, see :func:distro.like.
Return information about the OS distribution that is compatible with Python's :func:platform.linux_distribution, supporting a subset of its parameters. For details, see :func:distro.linux_distribution.
Return a single named information item from the lsb_release command output data source of the OS distribution. For details, see :func:distro.lsb_release_attr.
Return a dictionary containing key-value pairs for the information items from the lsb_release command data source of the OS distribution. For details, see :func:distro.lsb_release_info.
Return the major version number of the current distribution. For details, see :func:distro.major_version.
Return the minor version number of the current distribution. For details, see :func:distro.minor_version.
Return the name of the OS distribution, as a string. For details, see :func:distro.name.
Return a single named information item from the os-release file data source of the OS distribution. For details, see :func:distro.os_release_attr.
Return a dictionary containing key-value pairs for the information items from the os-release file data source of the OS distribution. For details, see :func:distro.os_release_info.
Return repr of all info
Return a single named information item from the uname command output data source of the OS distribution. For details, see :func:distro.uname_release_attr.
Return a dictionary containing key-value pairs for the information items from the uname command data source of the OS distribution. For details, see :func:distro.uname_info.
Return the version of the OS distribution, as a string. For details, see :func:distro.version.
Return the version of the OS distribution, as a tuple of version numbers. For details, see :func:distro.version_parts.
Parse a line from a distro release file.
Parse the output of the lsb_release command.
Parse the lines of an os-release file.
The initialization method of this class gathers information from the available data sources, and stores that in private instance attributes. Subsequent access to the information items uses these private instance attributes, so that the data sources are read only once.
Provides information about a OS distribution. This package creates a private module-global instance of this class with default initialization arguments, that is used by the consolidated accessor functions_ and single source accessor functions_. By using default initialization arguments, that module-global instance returns data about the current OS distribution (i.e. the distro this package runs on). Normally, it is not necessary to create additional instances of this class. However, in situations where control is needed over the exact data sources that are used, instances of this class can be created with a specific distro release file, or a specific os-release file, or without invoking the lsb_release command.