Package sourceinfo :: Module bininfo

Module bininfo

source code

pysourceinfo.bininfo - runtime information on compiled Python binaries.

Details see manuals.


Version: 0.1.34

Author: Arno-Can Uestuensoez

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

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

Functions
 
getcaller_bin_filename(spos=1)
Filename of binary caller module.
source code
 
getcaller_bin_filepathname(spos=1)
File pathname of caller module.
source code
 
getcaller_bin_pathname(spos=1)
pathname of caller source file.
source code
 
getcaller_bin_pathname_rel(spos=1)
Relative pathname to first matching package directory of caller. Evaluates 'sys.path' first, else switches to 'inspect'.
source code
 
getcaller_bin_pathname_sub(spos=1)
sub-pathname to first matching module directory of caller. Evaluates 'sys.path' first, else switches to 'inspect'.
source code
 
getmodule_bin_filename(mod)
Basename of file for loaded module mod.
source code
 
getmodule_bin_filepathname(mod)
File pathname of loaded module mod.
source code
 
getmodule_bin_pathname(mod)
Path name of loaded module.
source code
 
getmodule_bin_pathname_rel(mod, plist=None)
Relative path name to PYTHONPATH for loaded module.
source code
 
getmodule_bin_pathname_sub(mod, plist=None)
Path name for loaded module, relative to package path.
source code
Variables
  PYV3 = 24576
  __cached__ = 'b'sourceinfo/__pycache__/bininfo.cpython-38.pyc''
  __loader__ = <_frozen_importlib_external.SourceFileLoader obje...
  __package__ = 'b'sourceinfo''
  __spec__ = ModuleSpec(name='sourceinfo.bininfo', loader=<_froz...
  __uuid__ = 'b'9de52399-7752-4633-9fdc-66c87a9200b8''
Function Details

getcaller_bin_filename(spos=1)

source code 

Filename of binary caller module.

Args:
spos:
Caller position on the stack.
Returns:
Returns the filename.
Raises:
pass-through

getcaller_bin_filepathname(spos=1)

source code 

File pathname of caller module.

Args:
spos:
Caller position on the stack.
Returns:
Returns the file pathname.
Raises:
pass-through

getcaller_bin_pathname(spos=1)

source code 

pathname of caller source file.

Args:
spos:
Caller position on the stack.
Returns:
Returns the filename.
Raises:
passed through exceptions

getcaller_bin_pathname_rel(spos=1)

source code 

Relative pathname to first matching package directory of caller. Evaluates 'sys.path' first, else switches to 'inspect'.

Args:
spos:
Caller position on the stack.
Returns:
Returns the path name to the package.
Raises:
pass-through

getcaller_bin_pathname_sub(spos=1)

source code 

sub-pathname to first matching module directory of caller. Evaluates 'sys.path' first, else switches to 'inspect'.

Args:
spos:
Caller position on the stack.
Returns:
Returns the path name to the package.
Raises:
passed through exceptions

getmodule_bin_filename(mod)

source code 

Basename of file for loaded module mod.

Args:
mod:
Reference to a loaded module.
Returns:
Returns the basename of the loaded module.
Raises:
passed through exceptions

getmodule_bin_filepathname(mod)

source code 

File pathname of loaded module mod.

Args:
mod:
Reference to a loaded module.
Returns:
Returns the file pathname of the loaded module.
Raises:
pass-through

getmodule_bin_pathname(mod)

source code 

Path name of loaded module.

Args:
mod:
Reference to a loaded module.
Returns:
Returns the pathname of the loaded module.
Raises:
pass-through

getmodule_bin_pathname_rel(mod, plist=None)

source code 

Relative path name to PYTHONPATH for loaded module.

Args:
mod:
Reference to a loaded module.
Returns:
Returns the relative pathname of the loaded module.
Raises:
pass-through

getmodule_bin_pathname_sub(mod, plist=None)

source code 

Path name for loaded module, relative to package path.

Args:
mod:
Reference to a loaded module.
Returns:
Returns the sub pathname of the loaded module.
Raises:
passed through exceptions

Variables Details

__loader__

Value:
<_frozen_importlib_external.SourceFileLoader object at 0x7f1b825980a0>

__spec__

Value:
ModuleSpec(name='sourceinfo.bininfo', loader=<_frozen_importlib_extern\
al.SourceFileLoader object at 0x7f1b825980a0>, origin='sourceinfo/bini\
nfo.py')