{"id":27140372,"url":"https://github.com/al91liwo/fastapi-profiler-lite","last_synced_at":"2026-06-10T20:22:51.290Z","repository":{"id":285141078,"uuid":"957160595","full_name":"al91liwo/fastapi-profiler-lite","owner":"al91liwo","description":"A lightweight, zero-configuration performance profiler for FastAPI applications","archived":false,"fork":false,"pushed_at":"2025-11-29T11:08:15.000Z","size":13084,"stargazers_count":12,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-24T11:50:27.505Z","etag":null,"topics":["api","api-rest","fastapi","middleware","performance","performance-analysis","profiling","python","rust"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/al91liwo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"docs/contributing.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-03-29T17:41:02.000Z","updated_at":"2025-11-29T11:08:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"9a1fe272-dc55-40fb-912d-accff0d38afa","html_url":"https://github.com/al91liwo/fastapi-profiler-lite","commit_stats":null,"previous_names":["al91liwo/fastapi-profiler"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/al91liwo/fastapi-profiler-lite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/al91liwo%2Ffastapi-profiler-lite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/al91liwo%2Ffastapi-profiler-lite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/al91liwo%2Ffastapi-profiler-lite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/al91liwo%2Ffastapi-profiler-lite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/al91liwo","download_url":"https://codeload.github.com/al91liwo/fastapi-profiler-lite/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/al91liwo%2Ffastapi-profiler-lite/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34170078,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","api-rest","fastapi","middleware","performance","performance-analysis","profiling","python","rust"],"created_at":"2025-04-08T05:51:55.452Z","updated_at":"2026-06-10T20:22:51.273Z","avatar_url":"https://github.com/al91liwo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FastAPI Profiler Lite\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/al91liwo/fastapi-profiler/raw/main/docs/images/logo.png\" alt=\"FastAPI Profiler Lite Logo\" width=\"150\"/\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://pypi.org/project/fastapi-profiler-lite/\"\u003e\u003cimg src=\"https://img.shields.io/pypi/v/fastapi-profiler-lite?color=blue\" alt=\"PyPI version\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/al91liwo/fastapi-profiler/blob/main/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/github/license/al91liwo/fastapi-profiler\" alt=\"License\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/al91liwo/fastapi-profiler/stargazers\"\u003e\u003cimg src=\"https://img.shields.io/github/stars/al91liwo/fastapi-profiler\" alt=\"GitHub stars\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/al91liwo/fastapi-profiler/actions/workflows/python-package.yml\"\u003e\u003cimg src=\"https://github.com/al91liwo/fastapi-profiler/actions/workflows/python-package.yml/badge.svg\" alt=\"CI Status\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/al91liwo/fastapi-profiler/actions/workflows/release.yml\"\u003e\u003cimg src=\"https://github.com/al91liwo/fastapi-profiler/actions/workflows/release.yml/badge.svg\" alt=\"Release Status\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\nA lightweight, zero-configuration performance profiler for FastAPI applications. Monitor your API performance in real-time without external dependencies.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/al91liwo/fastapi-profiler/raw/main/docs/images/dashboard-demo.gif\" alt=\"Dashboard Demo\" width=\"800\"/\u003e\n\u003c/p\u003e\n\n## Why FastAPI Profiler?\n\nMonitoring API performance shouldn't require complex setups or external services. FastAPI Profiler gives you instant visibility into your application's performance with just one line of code.\n\n- **Instant insights** - See which endpoints are slow without complex instrumentation\n- **Zero configuration** - Works out of the box with sensible defaults\n- **Rust-powered statistics** - High-performance stats calculation using Rust\n- **Developer-friendly** - Designed for both development and lightweight production use\n\n## Installation\n\n```bash\npip install fastapi-profiler-lite\n```\n\nFor more installation options, see the [Installation Guide](docs/installation.md).\n\n## Quick Start\n\n```python\nfrom fastapi import FastAPI\nfrom fastapi_profiler import Profiler\n\napp = FastAPI()\n\n# Add the profiler with just one line\nProfiler(app)\n\n@app.get(\"/\")\nasync def read_root():\n    return {\"Hello\": \"World\"}\n```\n\nThat's it! Visit `/profiler` to see the performance dashboard.\n\n## Features\n\n- **One-line integration** - Add to any FastAPI app with minimal code\n- **Real-time dashboard** - Live updates with automatic refresh\n- **Response time tracking** - Measure execution time of each request\n- **Endpoint analysis** - Identify your slowest and most used endpoints\n- **Request filtering** - Search and sort through captured requests\n- **Visual metrics** - Charts for response times and request distribution\n- **Database monitoring** - Tracking of SQLAlchemy queries\n- **Minimal overhead** - Designed to have low performance impact\n\n## Technical Details\n\n- **Rust Core**: Statistics calculations are powered by a Rust extension using [PyO3](https://github.com/pyo3) for improved performance. Benchmarks comparing to NumPy will be published soon. Pre-built wheels are provided for all major platforms, but if you encounter any issues, please open a GitHub issue.\n\n- **UI Framework**: The dashboard uses [Tabler.io](https://tabler.io/), a premium and open-source admin dashboard template, providing a clean and modern interface.\n\n- **Database Instrumentation**: Track database queries with SQLAlchemy integration. Manually instrument your SQLAlchemy engines to see detailed query performance data.\n\n## Running Examples\n\nThe repository includes several examples to demonstrate different features:\n\n```bash\n# Basic example with simple endpoints\npython example.py\n\n# Example with SQLAlchemy database instrumentation\npython examples/sqlalchemy_demo.py\n\n# Example with multiple database engines\npython examples/multi_db_demo.py\n\n# Real-time continuous monitoring demo\npython examples/realtime_demo.py\n\n# Stress test with high load\npython examples/stress_test.py\n```\n\n### Database Instrumentation Example\n\nTo manually instrument database engines:\n\n```python\nfrom fastapi import FastAPI\nfrom sqlalchemy import create_engine\nfrom fastapi_profiler import Profiler\nfrom fastapi_profiler.instrumentations import SQLAlchemyInstrumentation\n\napp = FastAPI()\n\n# Create SQLAlchemy engines\nprimary_db = create_engine(\"sqlite:///./primary.db\")\nanalytics_db = create_engine(\"sqlite:///./analytics.db\")\n\n# Initialize profiler\nprofiler = Profiler(app)\n\n# Manually instrument each database engine\nSQLAlchemyInstrumentation.instrument(primary_db)\nSQLAlchemyInstrumentation.instrument(analytics_db)\n```\n\nVisit `/profiler` to see the dashboard with database query performance data.\n\n## Documentation\n\n- [Installation](https://github.com/al91liwo/fastapi-profiler/blob/main/docs/installation.md)\n- [Configuration](https://github.com/al91liwo/fastapi-profiler/blob/main/docs/configuration.md)\n- [Contributing](https://github.com/al91liwo/fastapi-profiler/blob/main/docs/contributing.md)\n- [Extending](https://github.com/al91liwo/fastapi-profiler/blob/main/docs/extending.md)\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fal91liwo%2Ffastapi-profiler-lite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fal91liwo%2Ffastapi-profiler-lite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fal91liwo%2Ffastapi-profiler-lite/lists"}