{"categories":[{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/7"}],"enrichment":{"capability":"Integrates pyinstrument profiling into FastAPI as middleware to measure per-request performance with configurable sampling, thresholds, and output formats.","skillfed_tags":["profiling","performance-monitoring","middleware"],"use_cases":["Identify performance bottlenecks in FastAPI endpoints by examining call trees and function-level timing data.","Monitor production services with low-overhead sampling to detect slow requests without profiling every call.","Generate HTML reports of request profiles for sharing with team members or archiving for later analysis.","Use the dashboard to view live per-route statistics and toggle profiling on/off without redeploying.","Automatically capture profiles of failed requests (5xx errors) to diagnose error-path performance issues.","Export profiles in speedscope format for visualization in external performance analysis tools."],"what_it_does":"fastapi-profiler wraps your FastAPI application with a middleware layer that uses pyinstrument to sample and measure the execution time of each request's call stack. It captures which functions consume the most time and reports results in multiple formats (text, HTML, JSON, prof, speedscope). The middleware supports sampling rate control to reduce overhead in production, threshold-based filtering to profile only slow requests, and structured JSON logging for integration with log aggregation systems.\n\nThe package includes a built-in web dashboard that displays per-route statistics (p95/p99 latencies, error counts, averages) and exposes APIs to toggle profiling on and off at runtime without restarting. You can exclude certain URL paths from profiling, automatically profile all 5xx errors regardless of sampling settings, and keep a rolling history of profiles per route for later inspection.","worth_installing":"Yes. The package is actively maintained, has no security vulnerabilities, installs with minimal friction, and solves a concrete problem\u2014profiling FastAPI request performance\u2014with flexible configuration for both development and production use. The permissive MIT license removes any licensing concern. Install it if you need per-request profiling or a runtime-configurable performance dashboard for FastAPI."},"id":"fastapi-profiler","links":{"html":"https://skillfed.io/packages/fastapi-profiler","md":"https://skillfed.io/packages/fastapi-profiler.md","pypi":"https://pypi.org/project/fastapi-profiler/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-03-24","license_spdx":null,"license_treatment":"permissive","name":"fastapi-profiler","python_support":"unspecified","summary":"A FastAPI Middleware of pyinstrument to check your service performance."},"popularity":{"monthly_downloads":200822,"position":9682,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.5.0"}
