• Stars
    star
    686
  • Rank 65,892 (Top 2 %)
  • Language
    Python
  • License
    MIT License
  • Created over 11 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Visually explore Python object graphs

Python Object Graphs

Build Status Build Status (Windows) Test Coverage Documentation Status

objgraph is a module that lets you visually explore Python object graphs.

You'll need graphviz if you want to draw the pretty graphs.

I recommend 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.

Documentation lives at https://mg.pov.lt/objgraph.

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:

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.

More Repositories

1

profilehooks

Python decorators for profiling/tracing/timing a single function
Python
315
star
2

check-manifest

Tool to check the completeness of MANIFEST.in for Python packages
Python
282
star
3

restview

ReStructuredText viewer
Python
210
star
4

indicator-netspeed

Stupid network speed indicator for Unity, inspired by the old netspeed GNOME applet
C
104
star
5

findimports

Static analysis of Python import statements
Python
103
star
6

dozer

WSGI middleware for profiling CPU/memory and inspecting logs
Python
89
star
7

irclog2html

Convert IRC logs to HTML
Python
80
star
8

coverage-highlight.vim

Vim plugin to highlight Python source code lines that lack test coverage
Python
56
star
9

strace-process-tree

Tool to help me make sense out of `strace -f` output.
Python
55
star
10

pdf2html

Wrapper for pdftohtml that tries to extract paragraph structure
Python
49
star
11

python-imports.vim

Vim plugin that adds Python import statements semi-automatically
Vim Script
47
star
12

imgdiff

Compare two images side-by-side
Python
44
star
13

ghcloneall

Script to clone/update all user/organization repos from GitHub
Python
36
star
14

check-python-versions

Check that supported Python versions in a setup.py match tox.ini, .travis.yml and a bunch of other files
Python
21
star
15

zodbbrowser

ZODB browser
Python
18
star
16

scripts

My ~/bin
Shell
16
star
17

bootable-iso

Bootable USB disk that lets you choose an ISO image
Python
16
star
18

memgraphinator

Graph the memory usage of a single process
Python
16
star
19

dotvim

My ~/.vim
Vim Script
15
star
20

dotfiles

My personal Linux shell settings
Shell
12
star
21

gitlab-jobs

Show a summary of GitLab job durations
Python
12
star
22

mgp2pdf

MagicPoint to PDF converter
Python
8
star
23

taghelper.vim

vim plugin that shows the current function/tag in the statusline
Python
7
star
24

chelper.vim

Vim plugin that shows the current C function name in the status line
Python
7
star
25

webtreemap-du

Visualize disk usage using web-based treemaps
Python
7
star
26

project-summary

Script to generate a summary page for all my projects.
JavaScript
6
star
27

vboxpanel

Simple webapp to control headless VirtualBox machines
Python
6
star
28

Inupy

Abandoned fork to turn Dozer into Pylons debug tool
JavaScript
5
star
29

pyspacewar

A game with Newtonian mechanics
Python
5
star
30

test-switcher.vim

Vim plugin that switches between code and tests
Python
4
star
31

eazysvn

Subversion branching and merging made a bit easier
Python
4
star
32

gitlab-trace

Show a GitLab pipeline status or job trace
Python
4
star
33

ztk-py3-status

Produce a list of Zope Foundation packages and Python versions they support
Python
3
star
34

source-locator.vim

Vim plugin to find the source line from filename + line number
Python
3
star
35

qml-time-tracker

A prototype user interface of a time tracking application for the Nokia N9
C++
3
star
36

pytag.vim

Vim plugin: a smarter :tag for Python projects
Python
3
star
37

python-project-skel

Reusable Makefile rules for automating Python package releases
Makefile
3
star
38

ppa-copy-packages

Copy Ubuntu PPA packages from one release pocket to another
Python
3
star
39

SnakeMUD

A 48-hour game for the Global Game Jam 2012
JavaScript
2
star
40

ubuntu-images

Makefile that downloads Ubuntu ISO images and verifies them
Makefile
2
star
41

planet-mg

Blogs I read
JavaScript
2
star
42

gedmin.as

Blogofile source for http://gedmin.as/
Mako
2
star
43

py-test-runner.vim

Run (Python) unit tests under cursor
Python
2
star
44

adventofcode2020

Python
1
star
45

ShoppingList

A mobile web app for my own use
Python
1
star
46

vim-plugins

ghcloneall config for Vim plugins I maintain
Shell
1
star
47

letsencrypt-java

Adding LetsEncrypt root certificates to the Java keystore on Windows. Obsolete.
Batchfile
1
star
48

repozo-testcases

Some ad-hoc functional testcases to reproduce repozo (the ZODB online backup tool) bugs
Python
1
star
49

check-pypi-wheels

Check if PyPI has the right wheels available for a set of packages
Python
1
star
50

zcml-tool

Hacks to parse and analyze ZCML files because I got sick of tracing them by hand
Python
1
star
51

python-refactorings.vim

Vim plugin for a bunch of hacky random Python code refactorings
Vim Script
1
star
52

ep2013-dojo

EuroPython 2013 coding dojo: write a Scorched Earth clone in 60 minutes
Python
1
star