Package platformids :: Package dist :: Module fedora_enum_labels

Module fedora_enum_labels

source code

Mapping of numeric and symbolic enum strings, optional loaded on demand for human display of debug info only.

Version: 0.1.28

Author: Arno-Can Uestuensoez

Copyright: Copyright (C) 2010-2018 Arno-Can Uestuensoez @Ingenieurbuero Arno-Can Uestuensoez

License: Artistic-License-2.0 + Forced-Fairplay-Constraints

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 = (<class 'int'>)
  ISSTR = (<class 'str'>, <class 'bytes'>)
  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 = (<class 'FileNotFoundError'>)
  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_FEDORA19 = 276909056
  RTE_FEDORA20 = 276910080
  RTE_FEDORA21 = 276911104
  RTE_FEDORA25 = 277299200
  RTE_FEDORA27 = 276917248
  RTE_FEDORA28 = 276918272
  RTE_FEDORA29 = 276919296
  RTE_FEDORA30 = 276920320
  RTE_FEDORA31 = 276921856
  RTE_FEDORA32 = 276922368
  RTE_FEDORA33 = 276923392
  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__ = 'b'platformids/dist/__pycache__/fedora_enum_label...
  __loader__ = <_frozen_importlib_external.SourceFileLoader obje...
  __package__ = 'b'platformids.dist''
  __spec__ = ModuleSpec(name='platformids.dist.fedora_enum_label...
  __uuid__ = 'b'7add5ded-c39b-4b6e-8c87-1b3a1c150ee9''
  category = 268435456
  custom_category = {}
  custom_dist = {}
  custom_ostype = {}
  custom_rte_distrel2tuple = {281214976: <function my_distrel2tu...
  dist = ['b'fedora27'', 'b'27'', 'b'Fedora-27'', 'b'Fedora'', (...
  f = <_io.TextIOWrapper name='/etc/redhat-release' mode='r' enc...
  isJython = False
  l = 'b'Fedora release 27 (Twenty Seven)\\n''
  modfpath = 'b'/local/hd1/home1/data/acue/rd/p-open-deploy/plat...
  modnamerel = 'b'platformids.dist.fedora''
  num2enumstr = {285212672: 'RTE_BSD', 276955136: 'RTE_CENTOS', ...
  num2pretty = {281149440: 'Arch Linux', 285212672: 'Berkeley So...
  num2rte = {281149440: 'archlinux', 285212672: 'bsd', 276955136...
  osname = 'b'posix''
  rte2num = {'bsd': 285212672, 'darwin': 301989888, 'emu': 10737...
Variables Details

DSKORG_ID

Value:
re.compile('^(?s)ID=["\']*([^"\'\n\r]*).*', re.DOTALL)

DSKORG_ID_LIKE

Value:
re.compile('^(?s)ID_LIKE=["\']*([^"\'\n\r]*).*', re.DOTALL)

DSKORG_NAME_RELEASE

Value:
re.compile('(?s)^NAME=["\']*([^ ]*) *([^"\']*).*', re.DOTALL)

DSKORG_RELEASE

Value:
re.compile('(?s)^VERSION=["\']*([^"\']*)["\']*[^(]*[(]*([^)]*)[)]*.*',\
 re.DOTALL)

DSKORG_VERSION

Value:
re.compile('(?s)^VERSION=["\']*([^"\']*)["\']*.*', re.DOTALL)

PlatformIDsCustomError

Value:
<class 'platformids.PlatformIDsCustomError'>

PlatformIDsEnumerationError

Value:
<class 'platformids.PlatformIDsEnumerationError'>

PlatformIDsPresentError

Value:
<class 'platformids.PlatformIDsPresentError'>

PlatformIDsUnknownError

Value:
<class 'platformids.PlatformIDsUnknownError'>

VERSION_ID

Value:
re.compile('(?s)^VERSION_ID=["\']*([^"\']*)["\']*.*', re.DOTALL)

__cached__

Value:
'b'platformids/dist/__pycache__/fedora_enum_labels.cpython-38.pyc''

__loader__

Value:
<_frozen_importlib_external.SourceFileLoader object at 0x7f320cbb6490>

__spec__

Value:
ModuleSpec(name='platformids.dist.fedora_enum_labels', loader=<_frozen\
_importlib_external.SourceFileLoader object at 0x7f320cbb6490>, origin\
='platformids/dist/fedora_enum_labels.py')

custom_rte_distrel2tuple

Value:
{281214976: <function my_distrel2tuple at 0x7f320ce2a340>}

dist

Value:
['b'fedora27'',
 'b'27'',
 'b'Fedora-27'',
 'b'Fedora'',
 (27, 0, 0),
 'b'fedora'']

f

Value:
<_io.TextIOWrapper name='/etc/redhat-release' mode='r' encoding='UTF-8\
'>

modfpath

Value:
'b'/local/hd1/home1/data/acue/rd/p-open-deploy/platformids/repos/sourc\
eforge.net/pyplatformids/platformids/dist/fedora.py''

num2enumstr

Value:
{285212672: 'RTE_BSD', 276955136: 'RTE_CENTOS', 301989888: 'RTE_DARWIN\
', 277020672: 'RTE_DEBIAN', 276889600: 'RTE_FEDORA', 276824064: 'RTE_L\
INUX', 545259520: 'RTE_NT', 285343744: 'RTE_OPENBSD', 302120960: 'RTE_\
OSX', 268435456: 'RTE_POSIX', 1879048192: 'RTE_PWEMU', 277348352: 'RTE\
_RASPBIAN', 277217280: 'RTE_UBUNTU', 536870912: 'RTE_WINDOWS', 2769602\
56: 'RTE_CENTOS5', 276961280: 'RTE_CENTOS6', 276962304: 'RTE_CENTOS7',\
 276963328: 'RTE_CENTOS8', 276964352: 'RTE_CENTOS9', 285347840: 'RTE_O\
PENBSD4', 285348864: 'RTE_OPENBSD5', 285349888: 'RTE_OPENBSD6', 285349\
...

num2pretty

Value:
{281149440: 'Arch Linux', 285212672: 'Berkeley Software Distribution',\
 276955136: 'CentOS', 301989888: 'Darwin', 277020672: 'Debian', 276889\
600: 'Fedora', 276824064: 'Linux', 545259520: 'NT', 285343744: 'OpenBS\
D', 1342177280: 'Windows-Emulation', 268435456: 'POSIX', 1879048192: '\
POSIX-Windows-Emulation', 277348352: 'Raspbian', 277086208: 'RHEL', 33\
5544320: 'Unix', 536870912: 'Windows', 276909056: "Schroedinger's Cat"\
, 276910080: 'Heisenbug', 276917248: 'Fedora27', 276918272: 'Fedora28'\
, 276919296: 'Fedora29', 276920320: 'Fedora30', 276921856: 'Fedora31',\
...

num2rte

Value:
{281149440: 'archlinux', 285212672: 'bsd', 276955136: 'centos', 301989\
888: 'darwin', 277020672: 'debian', 1073741824: 'emu', 276889600: 'fed\
ora', 276824064: 'linux', 545259520: 'nt', 285343744: 'openbsd', 27728\
2816: 'openwrt', 302120960: 'osx10', 1342177280: 'wpemu', 268435456: '\
posix', 1879048192: 'pwemu', 277348352: 'raspbian', 277086208: 'rhel',\
 335675392: 'solaris', 335544320: 'unix', 536870912: 'windows', 276909\
056: 'fedora19', 276910080: 'fedora20', 276917248: 'fedora27', 2769182\
72: 'fedora28', 276919296: 'fedora29', 276920320: 'fedora30', 27692185\
...

rte2num

Value:
{'bsd': 285212672, 'darwin': 301989888, 'emu': 1073741824, 'linux': 27\
6824064, 'linux2': 276824064, 'nt': 545259520, 'wpemu': 1342177280, 'p\
osix': 268435456, 'pwemu': 1879048192, 'unix': 335544320, 'win': 53687\
0912, 'win32': 536870912, 'windows': 536870912, 285212672: 285212672, \
301989888: 301989888, 1073741824: 1073741824, 276824064: 276824064, 54\
5259520: 545259520, 1342177280: 1342177280, 268435456: 268435456, 1879\
048192: 1879048192, 536870912: 536870912, 'SunOS5': 335675392, 'arch':\
 281149440, 'archlinux': 281149440, 'centos': 276955136, 'debian': 277\
...