A debugging dashboard for FastAPI applications with real-time monitoring
Project description
FastAPI Radar
A debugging dashboard for FastAPI applications providing real-time request, database query, and exception monitoring.
Just one line to add powerful monitoring to your FastAPI app!
See it in Action
Installation
pip install fastapi-radar
Or with your favorite package manager:
# Using poetry
poetry add fastapi-radar
# Using pipenv
pipenv install fastapi-radar
Note: The dashboard comes pre-built! No need to build anything - just install and use.
Quick Start
from fastapi import FastAPI
from fastapi_radar import Radar
from sqlalchemy import create_engine
app = FastAPI()
engine = create_engine("sqlite:///./app.db")
# That's it! One line to add complete monitoring
radar = Radar(app, db_engine=engine)
radar.create_tables()
# Your routes work unchanged
@app.get("/users")
async def get_users():
return {"users": []}
Access your dashboard at: http://localhost:8000/\_\_radar/
Features
- Zero Configuration - Works with any FastAPI + SQLAlchemy app
- Request Monitoring - Complete HTTP request/response capture with timing
- Database Monitoring - SQL query logging with execution times
- Exception Tracking - Automatic exception capture with stack traces
- Real-time Updates - Live dashboard updates as requests happen
Configuration
radar = Radar(
app,
db_engine=engine,
dashboard_path="/__radar", # Custom dashboard path
enable_in_production=False, # Disable in production
capture_body=True, # Capture request/response bodies
capture_headers=True, # Capture headers
max_body_size=10000, # Max body size to capture
)
Contributing
We welcome contributions! Please see our Contributing Guide for details.
Development Setup
For contributors who want to modify the codebase:
- Clone the repository:
git clone https://github.com/doganarif/fastapi-radar.git
cd fastapi-radar
- Install development dependencies:
pip install -e ".[dev]"
- (Optional) If modifying the dashboard UI:
cd fastapi_radar/dashboard
npm install
npm run dev # For development with hot reload
# or
npm run build # To rebuild the production bundle
- Run the example app:
python example_app.py
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fastapi_radar-0.1.4.tar.gz.
File metadata
- Download URL: fastapi_radar-0.1.4.tar.gz
- Upload date:
- Size: 260.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.28
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b313399c66cea6cba4948d741cd722948289f5a91885eb04473156107fb1308d
|
|
| MD5 |
c4f7c57501677de5450ba6388afaf4fb
|
|
| BLAKE2b-256 |
3eb0f4c447060f7becded6411d5f450db3394d7c2cb3f830679e25ca68331382
|
File details
Details for the file fastapi_radar-0.1.4-py3-none-any.whl.
File metadata
- Download URL: fastapi_radar-0.1.4-py3-none-any.whl
- Upload date:
- Size: 259.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.28
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
62d44d33331b0ada48dde3d25b847e6cbb89b0c06143f6e00308c358b9cc0651
|
|
| MD5 |
1b437370a409a587fd748edc10b6fdf0
|
|
| BLAKE2b-256 |
de36e32f6d98c87c06391b293441fe25555031331d3b8f93d386f49e75f84e8d
|