Let us walk on the 3-isogeny graph
Loading...
Searching...
No Matches
distro.py File Reference

Go to the source code of this file.

Data Structures

class  VersionDict
 
class  InfoDict
 
class  cached_property
 
class  LinuxDistribution
 

Namespaces

namespace  pip
 
namespace  pip._vendor
 
namespace  pip._vendor.distro
 
namespace  pip._vendor.distro.distro
 

Functions

Tuple[str, str, str] linux_distribution (bool full_distribution_name=True)
 
str id ()
 
str name (bool pretty=False)
 
str version (bool pretty=False, bool best=False)
 
Tuple[str, str, str] version_parts (bool best=False)
 
str major_version (bool best=False)
 
str minor_version (bool best=False)
 
str build_number (bool best=False)
 
str like ()
 
str codename ()
 
InfoDict info (bool pretty=False, bool best=False)
 
Dict[str, str] os_release_info ()
 
Dict[str, str] lsb_release_info ()
 
Dict[str, str] distro_release_info ()
 
Dict[str, str] uname_info ()
 
str os_release_attr (str attribute)
 
str lsb_release_attr (str attribute)
 
str distro_release_attr (str attribute)
 
str uname_attr (str attribute)
 
None main ()
 

Variables

 TypedDict = dict
 
 _UNIXCONFDIR = os.environ.get("UNIXCONFDIR", "/etc")
 
 _UNIXUSRLIBDIR = os.environ.get("UNIXUSRLIBDIR", "/usr/lib")
 
str _OS_RELEASE_BASENAME = "os-release"
 
dict NORMALIZED_OS_ID
 
dict NORMALIZED_LSB_ID
 
dict NORMALIZED_DISTRO_ID
 
 _DISTRO_RELEASE_CONTENT_REVERSED_PATTERN
 
 _DISTRO_RELEASE_BASENAME_PATTERN = re.compile(r"(\w+)[-_](release|version)$")
 
list _DISTRO_RELEASE_BASENAMES
 
tuple _DISTRO_RELEASE_IGNORE_BASENAMES
 
 _distro = LinuxDistribution()