Package platformids :: Package dist :: Module ubuntu

Module ubuntu

source code

Ubuntu releases.


Version: 0.1.30

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...
  PYV35Plus = True
  PlatformIDsFileCheck = (<class 'FileNotFoundError'>)
  RTE_UBUNTU = 277217280
  RTE_UBUNTU1004 = 277227648
  RTE_UBUNTU1204 = 277229696
  RTE_UBUNTU1404 = 277231744
  RTE_UBUNTU1504 = 277232768
  RTE_UBUNTU1510 = 277232960
  RTE_UBUNTU1604 = 277233728
  RTE_UBUNTU1610 = 277233984
  RTE_UBUNTU1704 = 277234816
  RTE_UBUNTU1710 = 277235008
  RTE_UBUNTU1804 = 277235840
  RTE_UBUNTU1810 = 277236032
  RTE_UBUNTU1904 = 277236864
  RTE_UBUNTU1910 = 277236864
  VERSION_ID = re.compile('(?s)^VERSION_ID=["\']*([^"\']*)["\']*...
  __cached__ = 'b'platformids/dist/__pycache__/ubuntu.cpython-38...
  __loader__ = <_frozen_importlib_external.SourceFileLoader obje...
  __package__ = 'b'platformids.dist''
  __spec__ = ModuleSpec(name='platformids.dist.ubuntu', loader=<...
  __uuid__ = 'b'7add5ded-c39b-4b6e-8c87-1b3a1c150ee9''
  dist = ['b'ubuntu'', 'b'0.0.0'', 'b'Ubuntu-0.0.0'', 'b'Ubuntu'...
  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)

VERSION_ID

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

__cached__

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

__loader__

Value:
<_frozen_importlib_external.SourceFileLoader object at 0x7f320cd6f4f0>

__spec__

Value:
ModuleSpec(name='platformids.dist.ubuntu', loader=<_frozen_importlib_e\
xternal.SourceFileLoader object at 0x7f320cd6f4f0>, origin='platformid\
s/dist/ubuntu.py')

dist

Value:
['b'ubuntu'',
 'b'0.0.0'',
 'b'Ubuntu-0.0.0'',
 'b'Ubuntu'',
 (0, 0, 0),
 'b'ubuntu'']

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