skillfed

pyroscope-io

Pyroscope Python integration

pyroscope-io v1.2.1 11.7M downloads/30d#1,369 on PyPI
Permissive license Apache-2.0 Active released

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-io

uv

uv add pyroscope-io

poetry

poetry add pyroscope-io

Installing 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

Intended Audience :: DevelopersOperating System :: MacOSOperating System :: POSIXOperating System :: UnixProgramming Language :: PythonTopic :: Software DevelopmentTopic :: Software Development :: DebuggersTopic :: Utilities

Tags

python profiling agentcontinuous profilingstack sampling profilerperformance monitoring pythonpyroscope integrationcpu profiling agentapplication profiler
profilingperformance-monitoringobservability

More Software Development packages