Pympler
A development tool to measure, monitor and analyze the memory behavior of Python objects.
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 pympleruv
uv add pymplerpoetry
poetry add pymplerInstalling 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
Tags
More Bug Tracking packages
Provides compatibility utilities for working…
permissive · top 5,000 on PyPI
moleculeMolecule is an Ansible testing framework for…
permissive · top 5,000 on PyPI
viztracerVizTracer traces Python code execution and…
permissive · top 5,000 on PyPI
rollbarSends exceptions, errors, and log messages to…
permissive · top 5,000 on PyPI
salt-lintsalt-lint checks Salt State files (SLS) for…
permissive · top 15,000 on PyPI
objsizeMeasures the complete memory footprint of…
permissive · top 5,000 on PyPI
memrayMemray is a memory profiler for Python that…
permissive · top 5,000 on PyPI
mozleakExtracts memory leaks from leak log files,…
copyleft · top 15,000 on PyPI
py-spypy-spy is a sampling profiler that attaches to…
permissive · top 1,000 on PyPI
scaleneScalene profiles Python code to measure CPU,…
permissive · top 15,000 on PyPI
fastapi-profilerIntegrates pyinstrument profiling into FastAPI…
permissive · top 15,000 on PyPI
binsizeAnalyzes symbol sizes in compiled binaries by…
permissive · top 15,000 on PyPI
intel-ptiProvides a framework for building profiling…
permissive · top 15,000 on PyPI
pyroscope-ioPyroscope-io is a continuous profiling agent…
permissive · top 5,000 on PyPI
guppy3Guppy 3 analyzes Python heap memory to identify…
permissive · top 5,000 on PyPI