Package platformids :: Package dist :: Module gentoo

Module gentoo

source code

Gentoo releases.


Version: 0.1.1

Author: Arno-Can Uestuensoez

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

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

Functions
 
my_distrel2tuple(rte=276917248)
Callback for special version layout of Armbian, see manuals.
source code
Variables
  PYV35Plus = True
  PlatformIDsFileCheck = (<class 'FileNotFoundError'>)
  PlatformIDsUnknownError = <class 'platformids.PlatformIDsUnkno...
  RTE = 276917248
  RTE_DIST = 4294901760
  RTE_DISTEXT = 4194304
  RTE_GENTOO = 281214976
  RTE_GENTOO121 = 281214977
  RTE_GENTOO20181202 = 281215106
  RTE_GENTOO20181204 = 281215108
  RTE_LINUX = 276824064
  __cached__ = 'b'platformids/dist/__pycache__/gentoo.cpython-38...
  __loader__ = <_frozen_importlib_external.SourceFileLoader obje...
  __package__ = 'b'platformids.dist''
  __spec__ = ModuleSpec(name='platformids.dist.gentoo', loader=<...
  __uuid__ = 'b'7add5ded-c39b-4b6e-8c87-1b3a1c150ee9''
  custom_rte_distrel2tuple = {281214976: <function my_distrel2tu...
  dist = ['b''', 'b''', 'b''', 'b'GentooLinux'', 'b''', 'b'gento...
  num2pretty = {281149440: 'Arch Linux', 285212672: 'Berkeley So...
  num2rte = {281149440: 'archlinux', 285212672: 'bsd', 276955136...
  rte2num = {'bsd': 285212672, 'darwin': 301989888, 'emu': 10737...
Function Details

my_distrel2tuple(rte=276917248)

source code 
Callback for special version layout of Armbian, see manuals. 

A callback to be used by the function:

   platformids.decode_rte_distrel_to_segments(rte=RTE)

A callback to be used by the function:

   platformids.decode_rte_distrel_to_segments(rte=RTE)

Decodes the compressed *distrel* from the 32bit integer
bitmask *rte* into the corresponding tuple of integer
segments.

Args:
   **rte**:
       The comppressed runtime environment identifier bitmask.
        
       default := RTE

Returns:
   Tuple of Integer values of the encoded segments, either
   as defined by the default layout, or any known as defined
   by additional extended and/or custom criteria.

Raises:
   pass-through

Examples:
  ::

     decode_rte_distrel_to_segments()     
     =>  (2018, 0, 0)  # on GENTOO-2018.0
     =>  (2019, 0, 0)  # on GENTOO-2019.0


Variables Details

PlatformIDsUnknownError

Value:
<class 'platformids.PlatformIDsUnknownError'>

__cached__

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

__loader__

Value:
<_frozen_importlib_external.SourceFileLoader object at 0x7f320ce5d0d0>

__spec__

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

custom_rte_distrel2tuple

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

dist

Value:
['b''', 'b''', 'b''', 'b'GentooLinux'', 'b''', 'b'gentoo'']

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