Package platformids :: Package dist :: Module sles

Module sles

source code

SLES releases.


Version: 0.1.29

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_VERSION = re.compile('(?s)^VERSION=["\']*([^"\']*)["\']...
  PlatformIDsFileCheck = (<class 'FileNotFoundError'>)
  RTE_SLES = 277151744
  RTE_SLES15 = 277165056
  RTE_SLES150 = 277167104
  RTE_SLES151 = 277167136
  __cached__ = 'b'platformids/dist/__pycache__/sles.cpython-38.p...
  __loader__ = <_frozen_importlib_external.SourceFileLoader obje...
  __package__ = 'b'platformids.dist''
  __spec__ = ModuleSpec(name='platformids.dist.sles', loader=<_f...
  __uuid__ = 'b'7add5ded-c39b-4b6e-8c87-1b3a1c150ee9''
  dist = ['b'sles'', 'b'0.0.0'', 'b'SLES-0.0.0'', 'b'SLES'', (0,...
  f = <_io.TextIOWrapper name='/etc/os-release' mode='r' encodin...
  l = 'b'VARIANT_ID=workstation\\n''
  num2pretty = {281149440: 'Arch Linux', 285212672: 'Berkeley So...
  num2rte = {281149440: 'archlinux', 285212672: 'bsd', 276955136...
  rte2num = {'bsd': 285212672, 'darwin': 301989888, 'emu': 10737...
Variables Details

DSKORG_ID

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

DSKORG_VERSION

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

__cached__

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

__loader__

Value:
<_frozen_importlib_external.SourceFileLoader object at 0x7f320cc02220>

__spec__

Value:
ModuleSpec(name='platformids.dist.sles', loader=<_frozen_importlib_ext\
ernal.SourceFileLoader object at 0x7f320cc02220>, origin='platformids/\
dist/sles.py')

dist

Value:
['b'sles'',
 'b'0.0.0'',
 'b'SLES-0.0.0'',
 'b'SLES'',
 (0, 0, 0),
 'b'sles'']

f

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

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\
...