Package platformids :: Module __main__

Source Code for Module platformids.__main__

 1  # -*- coding: utf-8 -*- 
 2  """The package 'platformids' provides canonical enumerations of bit encoded numeric platform IDs 
 3  for the Python implementations CPython, IPython, IronPython, Jython, and PyPy. 
 4  """ 
 5  # See manuals for the detailed API. 
 6   
 7  from __future__ import absolute_import 
 8   
 9  #import os 
10  import sys 
11  #import re 
12  #import platform 
13   
14   
15  from rdbg.start import start_remote_debug    # load a slim bootstrap module 
16  start_remote_debug()                         # check whether '--rdbg' option is present, if so accomplish bootstrap 
17   
18  # from pythonids import PYV35Plus5p, ISSTR, PYVxyz, PYV33, PYV2 
19  # from pythonids.pythondist import ISINT, PYDIST, PYE_DIST, PYE_JYTHON 
20   
21  import platformids 
22  import platformids.platforms 
23   
24  for a in sys.argv: 
25      if a in ('--debug', '-d'): 
26          platformids._debug += 1 
27      if a in ('--verbose', '-v'): 
28          platformids._verbose += 1 
29   
30   
31  __author__ = 'Arno-Can Uestuensoez' 
32  __license__ = "Artistic-License-2.0 + Forced-Fairplay-Constraints" 
33  __copyright__ = "Copyright (C) 2010-2018 Arno-Can Uestuensoez" \ 
34                  " @Ingenieurbuero Arno-Can Uestuensoez" 
35  __version__ = '0.1.31' 
36  __uuid__ = "7add5ded-c39b-4b6e-8c87-1b3a1c150ee9" 
37   
38  __docformat__ = "restructuredtext en" 
39   
40   
41  pparams = platformids.platforms.PlatformParameters() 
42  pparams.scan() 
43   
44  print(pparams) 
45