The Blackfire Python SDK enables profiling and performance monitoring of Python applications with Blackfire.io. It supports automatic instrumentation, manual probe API, and integration with frameworks like Django, Flask, Symfony, and more. Current version: 2026.3.0. Released on a regular cadence following Blackfire updates.
pip install blackfireVerified import paths — ran on the pinned version, not inferred.
Basic profiling using BlackfireProbe as a context manager. Replace client ID and token with your Blackfire credentials.
Upgrade to Python 3.6+ and install blackfire>=2022.0.0.
Always install blackfire in the same environment as your application. For web apps, add the middleware and set the 'BLACKFIRE_AGENT_SOCKET' environment variable if using a local agent.
Replace 'from blackfire.sdk import ...' with 'from blackfire import ...'.
Set environment variable 'BLACKFIRE_AGENT_SOCKET' to the path of the Blackfire agent socket (e.g., '/var/run/blackfire/agent.sock').
No dependency data recorded yet.