skillfed

Pympler

A development tool to measure, monitor and analyze the memory behavior of Python objects.

pympler v1.1 6.2M downloads/30d#1,948 on PyPI1,408
Permissive license Apache License, Version 2.0 AGING released

What it is and what it does

Pympler is a memory profiling and analysis tool for Python applications. It combines three integrated subsystems—asizeof for object size measurement, muppy for online application monitoring, and a class tracker for offline lifetime analysis—along with a web frontend for visualizing process statistics and garbage collection behavior. The tool is written entirely in Python and requires no external dependencies on Linux and macOS; Windows users need pywin32.

Developers use Pympler to diagnose memory issues in running applications: identifying which objects consume the most memory, tracking how object lifetimes correlate with memory growth, and spotting unexpected memory bloat. It's particularly useful during development and debugging phases when memory behavior is unclear or suspected to be problematic.

Use it for:

  • Identify which Python objects are consuming the most memory in a long-running application.
  • Track the lifetime and growth patterns of specific classes to detect memory leaks or unexpected retention.
  • Monitor memory behavior of a running application in real time using muppy's online profiling.
  • Analyze garbage collection and heap statistics through the web profiling frontend.
  • Diagnose memory bloat during development before deploying to production.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Pympler measures, monitors, and analyzes memory behavior of Python objects in running applications, helping identify memory bloat and unexpected runtime issues through size profiling, online monitoring, and lifetime analysis.

Yes, if you need to diagnose memory behavior in Python applications. Pympler is well-established, permissively licensed, has low install friction, and carries no known vulnerabilities. The aging maintenance status (777 days since release) is a minor concern but not a blocker—recent commits show active stewardship. Install it when memory profiling is part of your development workflow.

Install

pympler on PyPI

pip

pip install pympler

uv

uv add pympler

poetry

poetry add pympler

Installing Pympler

Before you install

Low install friction with a pure-Python implementation on Linux and macOS; Windows requires pywin32. The package is aging (777 days since last release) but remains actively maintained with recent commits and a stable repository.

License in practice

Apache License 2.0 is permissive, allowing commercial and private use with minimal restrictions—suitable for most development and production scenarios.

Quickstart

pip install Pympler

from pympler import asizeof
print(asizeof.asizeof([1, 2, 3]))

On Windows, pywin32 must be installed as a dependency; on Linux and macOS, no external dependencies beyond Python standard library.

Verify before relying

  • Whether the aging maintenance status (777 days since release) affects compatibility with Python versions beyond 3.12.
  • Real-world performance impact when profiling large, long-running applications with many objects.

Package facts

License Apache License, Version 2.0 (permissive)
Python support supports the current Python release (>=3.6)
Install friction low — pure-Python wheel
Runtime dependencies 1 — pywin32
Maintenance aging — 777 days since the last release
Last repo commit
First released
Downloads 6,244,156/month — #1,948 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: Pympler-1.1-py3-none-any.whl

Development Status :: 4 - BetaEnvironment :: ConsoleIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Bug Tracking

Tags

memory profiling pythonobject size analysismemory leak detectionpython memory monitoringheap analysis toolmemory behavior trackingpython memory debugging
memory-profilingdebuggingperformance-analysis

More Bug Tracking packages