Home | Top | ← | → | Overview | Module | Class | Index | Help |
|
About |
---|
|
||||
Version: 0.1.31
Author: Arno-Can Uestuensoez
Copyright: Copyright (C) 2010-2018 Arno-Can Uestuensoez @Ingenieurbuero Arno-Can Uestuensoez
License: Artistic-License-2.0 + Forced-Fairplay-Constraints
Submodules | |
|
Functions | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Variables | |
DSKORG_ID = re.compile('^(?s)ID=["\']*([^"\'\n\r]*).*', re.DOT
|
|
DSKORG_ID_LIKE = re.compile('^(?s)ID_LIKE=["\']*([^"\'\n\r]*).
|
|
DSKORG_NAME_RELEASE = re.compile('(?s)^NAME=["\']*([^ ]*) *([^
|
|
DSKORG_RELEASE = re.compile('(?s)^VERSION=["\']*([^"\']*)["\']
|
|
DSKORG_VERSION = re.compile('(?s)^VERSION=["\']*([^"\']*)["\']
|
|
ISINT =
|
|
ISSTR =
|
|
PRENONNUM = re.compile('([^0-9]+[^ \t0-9]).*')
|
|
PYDIST = 3020173824
|
|
PYE_DIST = 8126464
|
|
PYE_JYTHON = 1572864
|
|
PYV2 = 16384
|
|
PYV33 = 25344
|
|
PYV35Plus = True
|
|
PYVxyz = 26624
|
|
PlatformIDsCustomError = <class 'platformids.PlatformIDsCustom
|
|
PlatformIDsEnumerationError = <class 'platformids.PlatformIDsE
|
|
PlatformIDsError = <class 'platformids.PlatformIDsError'>
|
|
PlatformIDsFileCheck =
|
|
PlatformIDsKeyError = <class 'platformids.PlatformIDsKeyError'>
|
|
PlatformIDsPresentError = <class 'platformids.PlatformIDsPrese
|
|
PlatformIDsUnknownError = <class 'platformids.PlatformIDsUnkno
|
|
ProtectedDict = <class 'platformids.ProtectedDict'>
|
|
ProtectedDictEnum = <class 'platformids.ProtectedDictEnum'>
|
|
RTE = 276917248
|
|
RTE_ARCHLINUX = 281149440
|
|
RTE_BSD = 285212672
|
|
RTE_CATEGORY = 4026531840
|
|
RTE_CATEGORY_B = 4026531840
|
|
RTE_CATEGORY_OFFSET = 268435455
|
|
RTE_CATEGORY_SHIFT = 28
|
|
RTE_CENTOS = 276955136
|
|
RTE_CYGWINNT = 1887436800
|
|
RTE_DARWIN = 301989888
|
|
RTE_DEBIAN = 277020672
|
|
RTE_DIST = 4294901760
|
|
RTE_DISTEXT = 4194304
|
|
RTE_DISTREL = 4294967295
|
|
RTE_DISTREL_B = 65535
|
|
RTE_DISTREL_OFFSET = 0
|
|
RTE_DISTREL_SHIFT = 0
|
|
RTE_DIST_B = 8323072
|
|
RTE_DIST_OFFSET = 65535
|
|
RTE_DIST_SHIFT = 16
|
|
RTE_EMBEDDED = 2147483648
|
|
RTE_EMU = 1073741824
|
|
RTE_FEDORA = 276889600
|
|
RTE_GENERIC = 0
|
|
RTE_KALI = 281083904
|
|
RTE_LINUX = 276824064
|
|
RTE_LOCAL = 1
|
|
RTE_NT = 545259520
|
|
RTE_OPENBSD = 285343744
|
|
RTE_OPENWRT = 277282816
|
|
RTE_OSTYPE = 4286578688
|
|
RTE_OSTYPE_B = 260046848
|
|
RTE_OSTYPE_OFFSET = 8388607
|
|
RTE_OSTYPE_SHIFT = 23
|
|
RTE_OSX = 302120960
|
|
RTE_OSX10 = 302120960
|
|
RTE_POSIX = 268435456
|
|
RTE_PWEMU = 1879048192
|
|
RTE_RASPBIAN = 277348352
|
|
RTE_RHEL = 277086208
|
|
RTE_SLES = 277151744
|
|
RTE_SOLARIS = 335675392
|
|
RTE_SUNOS5 = 335675392
|
|
RTE_UBUNTU = 277217280
|
|
RTE_UNIX = 335544320
|
|
RTE_WIN = 536870912
|
|
RTE_WIN32 = 536870912
|
|
RTE_WINDOWS = 536870912
|
|
RTE_WPEMU = 1342177280
|
|
VERSION_ID = re.compile('(?s)^VERSION_ID=["\']*([^"\']*)["\']*
|
|
VERSNUM = re.compile('([0-9]+)[.]*([0-9]*)[.]*([0-9]*)')
|
|
__cached__ =
|
|
__loader__ = <_frozen_importlib_external.SourceFileLoader obje
|
|
__package__ =
|
|
__spec__ = ModuleSpec(name='platformids', loader=<_frozen_impo
|
|
__uuid__ =
|
|
__warningregistry__ =
|
|
category = 268435456
|
|
custom_category = {}
|
|
custom_dist = {}
|
|
custom_ostype = {}
|
|
custom_rte_distrel2tuple = {281214976: <function my_distrel2tu
|
|
isJython = False
|
|
modfpath =
|
|
modnamerel =
|
|
num2enumstr = {285212672: 'RTE_BSD', 276955136: 'RTE_CENTOS',
|
|
num2pretty = {281149440: 'Arch Linux', 285212672: 'Berkeley So
|
|
num2rte = {281149440: 'archlinux', 285212672: 'bsd', 276955136
|
|
osname =
|
|
rte2num = {'bsd': 285212672, 'darwin': 301989888, 'emu': 10737
|
Function Details |
Decodes the compressed category from the 32bit integer bitmask into the corresponding integer enum.
|
Decodes the compressed dist from the 32bit integer bitmask into the corresponding integer enum. Recognizes the ostype domain e.g. for RTE_NT.
|
Decodes the compressed distrel from the 32bit integer bitmask into the corresponding integer enum. Recognizes the ostype and dist domain, the distrel extension flag.
|
Decodes the compressed distrel from the 32bit integer bitmask into the corresponding tuple of integer segments. This is probably one of the most important functions, because it has the knowledge to split distrel including calling a custom-callback function when required. Recognizes the ostype and dist domain, the distrel extension flag in order to determine the further processing. The supported special cases of known and pre-loaded standard distributions are hardcoded for better performance here, currently these are: ArchLinux, KaliLinux Windows-NT BlackArch, Gentoo, Armbian, ArchLinux, BlackArch, Gentoo, KaliLinux
|
Decodes the compressed ostype from the 32bit integer bitmask into the corresponding integer enum.
|
Decodes the compressed components from the 32bit integer bitmask into the corresponding segments of relative integer values.
|
Decodes the compressed components from the 32bit integer bitmask into the corresponding tuple of partial integer enums.
|
Decodes the compressed components from the 32bit integer bitmask into the corresponding tuple of string keywords.
|
Split a version string separated by '.' into an integer array. decode_version_str_to_segments('1.22.17') => (1, 22, 17) decode_version_str_to_segments('2012.02.17') => (2012, 2, 17) decode_version_str_to_segments('10.0.1809') => (10, 0, 1809) A tiny utility - frequently required.
|
Converts the numeric base values of the fields into a 32bit bitmask and encodes them into the combined integer value of the bitmask vector.
|
Encodes the provided 32bit bitmask of each field into the combined integer value of the bitmask vector.
|
Scans the platform and returns the numeric id for the current category.
|
Scans the platform and returns the numeric id for the current dist.
|
Scans the platform and returns the complete tuple for the current dist.
|
Scans the platform and returns the numeric id for the current ostype.
|
Scans the platform and returns the complete distribution data prepared for common post-processing.
|
The numeric version of 'fetch_platform_distribution'.
|
Scans the platform and returns the information on the OS including the name and the release version. The name of the OS is commonly basically the kernel name. The ostype of linux has one common kernel only, while OS in the bsd and unix family commonly have distribution specific customized kernels.
|
The numeric version of 'fetch_platform_os'.
|
Retrieves the bitmask encoding for current runtime environemnt.
|
Calls the pythonids.get_modulelocation function with specific default parameters for the platformids.
|
Gets the corresponding string representation for the string numeric value. Alternatively the official dict num2rte could be used.
|
Gets corresponding numerical representation for the numeric or string value. Alternatively the official dict rte2num could be used.
|
Sets the numeric to string map. Alternatively the official dict num2rte could be used.
|
Sets the rte to numeric mapping Alternatively the official dict rte2num could be used.
|
Variables Details |
DSKORG_ID
|
DSKORG_ID_LIKE
|
DSKORG_NAME_RELEASE
|
DSKORG_RELEASE
|
DSKORG_VERSION
|
PlatformIDsCustomError
|
PlatformIDsEnumerationError
|
PlatformIDsPresentError
|
PlatformIDsUnknownError
|
VERSION_ID
|
__cached__
|
__loader__
|
__spec__
|
custom_rte_distrel2tuple
|
modfpath
|
num2enumstr
|
num2pretty
|
num2rte
|
rte2num
|
Home | Top | ← | → | Overview | Module | Class | Index | Help |
|
About |
---|
Copyright(C) 2019 Arno-Can Uestuensoez @Ingenieurbuero Arno-Can Uestuensoez | https://arnocan.wordpress.com |
Generated by Epydoc 4.0.4 / Python-3.8 / fedora27 on Wed Dec 18 15:06:55 2019 | http://epydoc.sourceforge.net |