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
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | a33fabe25dfced4ed949ceb3312824579456a1faa0ae85b6a78887775c4bb4b9 |
|
MD5 | 29f80ec98a068c78e503de513636336a |
|
BLAKE2b-256 | e86a145eb77cbe97fa1d759960aa3705b6f012197b9c31ea1d11c64b4ed32cd8 |