Objgraph
Visually explore Python object graphs
Install / Use
/learn @mgedmin/ObjgraphREADME
Python Object Graphs
.. image:: https://github.com/mgedmin/objgraph/actions/workflows/build.yml/badge.svg?branch=master :target: https://github.com/mgedmin/objgraph/actions :alt: Build Status
.. image:: https://coveralls.io/repos/mgedmin/objgraph/badge.svg?branch=master :target: https://coveralls.io/r/mgedmin/objgraph?branch=master :alt: Test Coverage
.. image:: https://readthedocs.org/projects/objgraph/badge/?version=latest :target: https://readthedocs.org/projects/objgraph/?badge=latest :alt: Documentation Status
objgraph is a module that lets you visually explore Python object graphs.
You'll need graphviz <https://www.graphviz.org/>_ if you want to draw
the pretty graphs.
I recommend xdot <https://pypi.python.org/pypi/xdot>_ for interactive use.
pip install xdot should suffice; objgraph will automatically look for it
in your PATH.
Installation and Documentation
pip install objgraph or download it from PyPI <https://pypi.python.org/pypi/objgraph>_.
Documentation lives at https://mg.pov.lt/objgraph.
.. _history:
History
I've developed a set of functions that eventually became objgraph when I was hunting for memory leaks in a Python program. The whole story -- with illustrated examples -- is in this series of blog posts:
Hunting memory leaks in Python <https://mg.pov.lt/blog/hunting-python-memleaks.html>_Python object graphs <https://mg.pov.lt/blog/python-object-graphs.html>_Object graphs with graphviz <https://mg.pov.lt/blog/object-graphs-with-graphviz.html>_
.. _devel:
Support and Development
The source code can be found in this Git repository: https://github.com/mgedmin/objgraph.
To check it out, use git clone https://github.com/mgedmin/objgraph.
Report bugs at https://github.com/mgedmin/objgraph/issues.
Related Skills
node-connect
349.7kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.7kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.7kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
