pyroscope-io
Pyroscope Python integration
What it is and what it does
Pyroscope-io is a Python profiling agent that continuously samples your application's call stacks and streams the data to a Pyroscope server. It uses py-spy for stack sampling and a Rust backend to handle profile transmission, giving you ongoing visibility into where your application spends CPU time without requiring code instrumentation.
The package is designed for production profiling workflows where you want to understand performance characteristics over time rather than one-off profiling sessions. It has no Python runtime dependencies and works across macOS, Linux, and Unix systems on modern Python versions. Installation involves downloading platform-specific wheels, so setup is straightforward but version-specific.
Use it for:
- Identify CPU hotspots in long-running services by collecting continuous profiles over time
- Debug performance regressions by comparing flame graphs from different time periods
- Monitor production applications to catch unexpected performance degradation early
- Analyze batch job performance to optimize resource allocation and execution time
- Profile multi-threaded or async applications to understand concurrency patterns
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Pyroscope-io is a continuous profiling agent that samples Python application stack traces and sends them to a Pyroscope server for performance analysis.
Yes, if you have a Pyroscope server running and need production-grade continuous profiling. The package is actively maintained, has no external Python dependencies, and carries a permissive license. Medium install friction is typical for compiled profilers and not a barrier. No known security vulnerabilities. Install it when you're ready to move beyond ad-hoc profiling to systematic performance monitoring.
Install
pyroscope-io on PyPI
pip
pip install pyroscope-iouv
uv add pyroscope-iopoetry
poetry add pyroscope-ioInstalling pyroscope-io
Before you install
Medium install friction due to platform-specific wheels (compiled bindings for multiple Python versions and architectures). Active maintenance with a recent release 18 days ago. No runtime dependencies to manage.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions; you must include a copy of the license and state significant changes.
Quickstart
pip install pyroscope-io
import pyroscope
pyroscope.configure(
app_name="my-app",
server_address="http://localhost:PORT"
)
# Your application code runs with profiling enabled
Requires Python 3.10 or later. Requires a running Pyroscope server to send profiles to.
Verify before relying
- Exact overhead and performance impact of continuous sampling on production workloads
- Whether py-spy integration requires any system-level permissions or capabilities
- Supported Pyroscope server versions and compatibility guarantees
- Default server address and port configuration for Pyroscope integration
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 18 days since the last release |
| First released | |
| Downloads | 11,704,674/month — #1,369 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pyroscope_io-1.2.1-cp310-cp310-macosx_11_0_arm64.whl; pyroscope_io-1.2.1-cp310-cp310-macosx_11_0_x86_64.whl; pyroscope_io-1.2.1-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl; pyroscope_io-1.2.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl; pyroscope_io-1.2.1-cp310-cp310-musllinux_1_2_aarch64.whl; pyroscope_io-1.2.1-cp310-cp310-musllinux_1_2_x86_64.whl; pyroscope_io-1.2.1-cp311-cp311-macosx_11_0_arm64.whl; pyroscope_io-1.2.1-cp311-cp311-macosx_11_0_x86_64.whl; pyroscope_io-1.2.1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl; pyroscope_io-1.2.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl; pyroscope_io-1.2.1-cp311-cp311-musllinux_1_2_aarch64.whl; pyroscope_io-1.2.1-cp311-cp311-musllinux_1_2_x86_64.whl; pyroscope_io-1.2.1-cp312-cp312-macosx_11_0_arm64.whl; pyroscope_io-1.2.1-cp312-cp312-macosx_11_0_x86_64.whl; pyroscope_io-1.2.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl; pyroscope_io-1.2.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl; pyroscope_io-1.2.1-cp312-cp312-musllinux_1_2_aarch64.whl; pyroscope_io-1.2.1-cp312-cp312-musllinux_1_2_x86_64.whl; pyroscope_io-1.2.1-cp313-cp313-macosx_11_0_arm64.whl; pyroscope_io-1.2.1-cp313-cp313-macosx_11_0_x86_64.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
py-spypy-spy is a sampling profiler that attaches to…
permissive · top 1,000 on PyPI
pyroscope-otelConnects OpenTelemetry tracing with Pyroscope…
permissive · top 5,000 on PyPI
google-cloud-profilerCollects and uploads CPU, memory, and wall-time…
permissive · top 15,000 on PyPI
austin-distAustin is a frame stack sampler for CPython…
copyleft · top 5,000 on PyPI
codeguru-profiler-agentIntegrates Python applications with Amazon…
permissive · top 5,000 on PyPI
memory-profilerProfiles memory consumption line-by-line in…
permissive · top 5,000 on PyPI
gilknockerMeasures GIL contention within a specific code…
unclear · top 5,000 on PyPI
pyinstrumentPyinstrument is a statistical call-stack…
permissive · top 5,000 on PyPI
fastapi-profilerIntegrates pyinstrument profiling into FastAPI…
permissive · top 15,000 on PyPI
ppk2-apiProvides a Python API to automate power…
copyleft · top 15,000 on PyPI