objgraph is a simple module for creating diagrams of object references that should be useful when hunting memory leaks in Python. It is available on PyPI, but it is not a completely standalone tool and requires Graphviz in order to create memory usage diagrams. For developer-friendly systems like macOS or Linux, you can easily obtain it using your preferred system package manager (for example, brew for macOS, apt-get for Debian/Ubuntu). For Windows, you need to download the Graphviz installer from the project page (refer to http://www.graphviz.org/) and install it manually.
objgraph provides multiple utilities that allow you to list and print various statistics about memory usage and object counts. An example of such utilities in ...