memory_inventory is a Python module that collects and outputs statistics on global objects. It can help you determine why a Python program consumes an excessive amount of memory when it's idle. This ...