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 details)

Uploaded Python 3

File details

Details for the file sourceinspect-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: sourceinspect-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for sourceinspect-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a33fabe25dfced4ed949ceb3312824579456a1faa0ae85b6a78887775c4bb4b9
MD5 29f80ec98a068c78e503de513636336a
BLAKE2b-256 e86a145eb77cbe97fa1d759960aa3705b6f012197b9c31ea1d11c64b4ed32cd8

See more details on using hashes here.

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