Package sourceinfo :: Module infolists

Module infolists

source code

pysourceinfo.infolists - lists.

Details see @[local-manuals] or @[https://pythonhosted.org/pysourceinfo/]


Version: 0.1.34

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
 
getsysmodules_filepathname_list(spat=None, **kargs)
Returns the list of file pathnames of all loaded modules from sys.modules.
source code
 
getsysmodules_id_list(r=None)
Returns the list of the IDs of the loaded modules.
source code
 
getsysmodules_list(r=None)
Returns the list of the loaded modules.
source code
 
getsysmodules_name_list(r=None)
Returns the list of the loaded modules.
source code
 
getsysmodules_pathname_list(r=None)
Returns the list of path names of the loaded modules.
source code
 
getsysmodules_pathname_rel_list(r=None, plist=None)
Returns for the loaded modules the list of path names relative to PYTHONPATH.
source code
 
getsysmodules_python_pathname_list(pname=None, plist=None, **kargs)
Returns the list of packages path names for the loaded modules from PYTHONPATH. This is as mentioned related to the containing package itself.
source code
Variables
  P_LONGEST = 8
  P_SHORTEST = 4
  __cached__ = 'b'sourceinfo/__pycache__/infolists.cpython-38.pyc''
  __loader__ = <_frozen_importlib_external.SourceFileLoader obje...
  __package__ = 'b'sourceinfo''
  __spec__ = ModuleSpec(name='sourceinfo.infolists', loader=<_fr...
  __uuid__ = 'b'9de52399-7752-4633-9fdc-66c87a9200b8''
  groupby = <class 'itertools.groupby'>
Function Details

getsysmodules_filepathname_list(spat=None, **kargs)

source code 

Returns the list of file pathnames of all loaded modules from sys.modules.

Args:
spat:
Search pattern, if provided it is used as pattern to search on each module name, returns matches only. Else returns the whole list.
kargs:
abs:

If True transforms each module name by helper.getpythonpath before further processing.

default := False

Returns:
Returns the list of file path names for the loaded modules, or empty list.
Raises:
pass-through

getsysmodules_id_list(r=None)

source code 

Returns the list of the IDs of the loaded modules.

Args:

r:
regexpr to be applied on the IDs.

Returns:

Returns the list of the loaded modules.

Raises:

pass-through

getsysmodules_list(r=None)

source code 

Returns the list of the loaded modules.

Args:
r:
regexpr to be applied on the module names.
Returns:
Returns the list of the loaded modules.
Raises:
pass-through

getsysmodules_name_list(r=None)

source code 

Returns the list of the loaded modules.

Args:
r:
regexpr to be applied on the module names.
Returns:
Returns the list of the names of the loaded modules.
Raises:
passed through exceptions

getsysmodules_pathname_list(r=None)

source code 

Returns the list of path names of the loaded modules.

Args:
r:
regexpr to be applied on the module path names.
Returns:
Returns the list of pathnames of the loaded modules.
Raises:
pass-through

getsysmodules_pathname_rel_list(r=None, plist=None)

source code 

Returns for the loaded modules the list of path names relative to PYTHONPATH.

Args:
r:
regexpr to be applied on the module path names.
plist:
alternate search path list
Returns:
Returns the list of pathnames of the loaded modules.
Raises:
pass-through

getsysmodules_python_pathname_list(pname=None, plist=None, **kargs)

source code 

Returns the list of packages path names for the loaded modules from PYTHONPATH. This is as mentioned related to the containing package itself.

Args:

pname:
pathname
plist:

Search path list.

default := sys.path

kargs:
presolve:

The type of path resolution:

presolve := (
     P_FIRST
   | P_LAST
   | P_LONGEST
   | P_SHORTEST
)

default := pysourceinfo.presolve(P_FIRST)

Returns:
List of paths
Raises:
pass-through

Variables Details

__loader__

Value:
<_frozen_importlib_external.SourceFileLoader object at 0x7f1b825aa5b0>

__spec__

Value:
ModuleSpec(name='sourceinfo.infolists', loader=<_frozen_importlib_exte\
rnal.SourceFileLoader object at 0x7f1b825aa5b0>, origin='sourceinfo/in\
folists.py')