https://github.com/taichi-dev/sourceinspect
A unified inspector for retriving source from Python objects
https://github.com/taichi-dev/sourceinspect
blender blender-python inspect python
Last synced: 9 months ago
JSON representation
A unified inspector for retriving source from Python objects
- Host: GitHub
- URL: https://github.com/taichi-dev/sourceinspect
- Owner: taichi-dev
- Created: 2020-08-08T09:29:43.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-18T03:01:21.000Z (over 5 years ago)
- Last Synced: 2025-05-06T18:08:06.854Z (9 months ago)
- Topics: blender, blender-python, inspect, python
- Language: Python
- Homepage:
- Size: 27.3 KB
- Stars: 7
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
SourceInspect
=============
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``)