5.5. sourceinfo.infolists¶
Lists and items of source information for runtime components.
5.5.1. Modules¶
pysourceinfo.infolists - lists.
Details see @local-manuals or @[https://pythonhosted.org/pysourceinfo/]
5.5.2. Functions¶
5.5.2.1. getsysmodules_filepathname_list¶
-
sourceinfo.infolists.
getsysmodules_filepathname_list
(spat=None, **kargs)[source]¶ Returns the list of file pathnames of all loaded modules from sys.modules.
- Parameters
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 –
5.5.2.2. getsysmodules_id_list¶
5.5.2.3. getsysmodules_list¶
5.5.2.4. getsysmodules_name_list¶
5.5.2.5. getsysmodules_pathname_list¶
5.5.2.6. getsysmodules_python_pathname_list¶
-
sourceinfo.infolists.
getsysmodules_python_pathname_list
(pname=None, plist=None, **kargs)[source]¶ Returns the list of packages path names for the loaded modules from PYTHONPATH. This is as mentioned related to the containing package itself.
- Parameters
**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 –
5.5.2.7. getsysmodules_pathname_rel_list¶
-
sourceinfo.infolists.
getsysmodules_pathname_rel_list
(r=None, plist=None)[source]¶ Returns for the loaded modules the list of path names relative to PYTHONPATH.
- Parameters
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 –
5.5.3. Resources¶
inspect Python2 - [inspect2]
inspect Python3 - [inspect3]
types Python2 - [types2]
types Python3 - [types3]
pystackinfo package; Arno-Can Uestuensoez [pystackinfo]