Skip to main content

A unified inspector for retriving source from Python objects

Project description

The functionality is mainly same as inspect, but fixing the OSError when used in some non-standard shells.

API reference

  • sourceinspect.getsource(object)

  • sourceinspect.getsourcelines(object)

  • sourceinspect.getsourcefile(object)

Supported shells

  • Python script (wrap dill.source)

  • Python interactive shell (wrap dill.source)

  • IPython advanced shell (wrap IPython.core.oinspect)

  • Jupyter notebook (wrap IPython.core.oinspect)

  • Blender scripting module (add hooks to inspect)

  • Blender interactive mode (add hooks to code.py)

  • Python IDLE file mode (wraps dill.source)

  • Python IDLE interactive mode (need manually add hooks to code.py)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

sourceinspect-0.0.4-py3-none-any.whl (3.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page