1. Abstract

The pysourceinfo package provides source information on Python runtime objects based on inspect, sys, os, and imp. The covered objects include packages, modules, functions, methods, scripts, and classes by two views:

  • File System View - packages, modules, and linenumbers - based on files and paths - [File-Namebinding]:

  • Runtime Object View - callables, classes, and containers - based on in-memory RTTI / introspection - [Object-Namebinding]:

Object addresses within modules - Object Identifier OID - and the display of the runtime call flow are supported by PyStackInfo [pystackinfo].

_images/layers-with-pystackinfo-blueprint.png

Figure: Callstack Information zoom more…