yappi
Yet Another Python Profiler
Decision gist · record as of 2026-08-14
Yes, if you need to profile multithreaded, asyncio, or gevent applications. Yappi is the standard choice for these workloads because the standard library profilers do not handle them correctly. If you only profile single-threaded code, cProfile is simpler. No security vulnerabilities are known, maintenance is active, and the MIT license poses no restrictions.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.6 or later; compiled C extensions are platform-specific, so installation pulls prebuilt wheels for your OS and Python version.
- Medium install friction due to compiled C extensions requiring platform-specific wheels.
- The package is actively maintained with recent releases and has been stable since its early releases.
License · maintenance · safety
MIT (permissive) — MIT license is permissive; you can use, modify, and distribute yappi with minimal restrictions, making it suitable for both open-source and commercial projects.
last release 2026-03-17 (150 days) · last repo commit 2026-07-08 · 1,725 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 4,257,062 downloads/mo, #2,346 on PyPI
Alternatives
Verify before relying
import yappi
yappi.set_clock_type("cpu")
yappi.start()
# your code here
yappi.get_func_stats().print_all()
yappi.get_thread_stats().print_all()- Whether yappi's overhead is acceptable for production profiling of long-running services
- Performance comparison with standard library cProfile on single-threaded workloads
- Compatibility with Python 3.13 and 3.14 (listed in classifiers but not explicitly tested in examples)
What it is and what it does
Yappi is a tracing profiler written in C that measures both CPU time and wall-clock time in Python programs. Unlike the standard library's cProfile, it is designed from the ground up to handle multithreaded applications, asyncio coroutines, and gevent greenlets, allowing you to start, stop, and retrieve profiling results at any point from any thread. It reports statistics per function and per thread, and can export results in callgrind or pstat formats for analysis in external tools.
You use yappi by calling start() before your code runs, then calling get_func_stats() or get_thread_stats() to retrieve results. It supports filtering and sorting by module, function name, or custom callbacks, making it practical for identifying bottlenecks in complex concurrent applications where standard profilers either fail or produce misleading timings.
Use it for
- Profile multithreaded applications to find which threads and functions consume the most CPU or wall time
- Measure asyncio coroutine performance and identify context-switch overhead in async code
- Profile gevent greenlet applications to track per-greenlet execution time and call counts
- Export profiling results to callgrind format for visualization in kcachegrind or other analysis tools
- Continuously profile long-running services by starting and stopping yappi on demand without restarting the application
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need to profile multithreaded, asyncio, or gevent applications.
Yappi is the standard choice for these workloads because the standard library profilers do not handle them correctly. If you only profile single-threaded code, cProfile is simpler. No security vulnerabilities are known, maintenance is active, and the MIT license poses no restrictions.
Install
yappi on PyPI
Before you install
Medium install friction due to compiled C extensions requiring platform-specific wheels. The package is actively maintained with recent releases and has been stable since its early releases. No runtime dependencies to manage.
Requires Python 3.6 or later; compiled C extensions are platform-specific, so installation pulls prebuilt wheels for your OS and Python version.
License in practice
MIT license is permissive; you can use, modify, and distribute yappi with minimal restrictions, making it suitable for both open-source and commercial projects.
Quickstart
import yappi
yappi.set_clock_type("cpu")
yappi.start()
# your code here
yappi.get_func_stats().print_all()
yappi.get_thread_stats().print_all()
Verify before relying
- Whether yappi's overhead is acceptable for production profiling of long-running services
- Performance comparison with standard library cProfile on single-threaded workloads
- Compatibility with Python 3.13 and 3.14 (listed in classifiers but not explicitly tested in examples)
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.6 |
| Install friction | Medium. Platform-specific wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 150 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 4,257,062 / month, #2,346 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonTopic :: Software Development :: LibrariesTopic :: Software Development :: Libraries :: Python Modules |
Evidence: yappi-1.7.6-cp310-cp310-macosx_10_9_x86_64.whl; yappi-1.7.6-cp310-cp310-macosx_11_0_arm64.whl; yappi-1.7.6-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; yappi-1.7.6-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl; yappi-1.7.6-cp310-cp310-musllinux_1_2_aarch64.whl; yappi-1.7.6-cp310-cp310-musllinux_1_2_x86_64.whl; yappi-1.7.6-cp310-cp310-win32.whl; yappi-1.7.6-cp310-cp310-win_amd64.whl; yappi-1.7.6-cp310-cp310-win_arm64.whl; yappi-1.7.6-cp311-cp311-macosx_10_9_x86_64.whl; yappi-1.7.6-cp311-cp311-macosx_11_0_arm64.whl; yappi-1.7.6-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; yappi-1.7.6-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl; yappi-1.7.6-cp311-cp311-musllinux_1_2_aarch64.whl; yappi-1.7.6-cp311-cp311-musllinux_1_2_x86_64.whl; yappi-1.7.6-cp311-cp311-win32.whl; yappi-1.7.6-cp311-cp311-win_amd64.whl; yappi-1.7.6-cp311-cp311-win_arm64.whl; yappi-1.7.6-cp312-cp312-macosx_10_13_x86_64.whl; yappi-1.7.6-cp312-cp312-macosx_11_0_arm64.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “multithreaded profiler”
- yappiYappi is a deterministic profiler for Python that tracks CPU and…
- pyinstrumentPyinstrument is a statistical call-stack profiler that samples your…
- xprofXProf is a profiler for ML workloads that visualizes performance…
Give your agent the search over MCP, or paste the wish link into any chat.
More Libraries packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.
Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
See also line-profiler · py-spy · fastapi-profiler · scalene · austin-dist · pyinstrument · django-cprofile-middleware · tuna · keke · snakeviz