fastapi-radar 0.1.2__tar.gz → 0.1.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of fastapi-radar might be problematic. Click here for more details.

Files changed (28) hide show
  1. {fastapi_radar-0.1.2/fastapi_radar.egg-info → fastapi_radar-0.1.4}/PKG-INFO +15 -16
  2. {fastapi_radar-0.1.2 → fastapi_radar-0.1.4}/README.md +13 -13
  3. {fastapi_radar-0.1.2 → fastapi_radar-0.1.4}/fastapi_radar/__init__.py +1 -1
  4. {fastapi_radar-0.1.2 → fastapi_radar-0.1.4}/fastapi_radar/api.py +1 -1
  5. fastapi_radar-0.1.4/fastapi_radar/dashboard/dist/assets/index-CxIRSjZZ.js +308 -0
  6. fastapi_radar-0.1.4/fastapi_radar/dashboard/dist/assets/index-DCxkDBhr.css +1 -0
  7. {fastapi_radar-0.1.2 → fastapi_radar-0.1.4}/fastapi_radar/dashboard/dist/index.html +2 -2
  8. {fastapi_radar-0.1.2 → fastapi_radar-0.1.4}/fastapi_radar/radar.py +0 -1
  9. {fastapi_radar-0.1.2 → fastapi_radar-0.1.4/fastapi_radar.egg-info}/PKG-INFO +15 -16
  10. {fastapi_radar-0.1.2 → fastapi_radar-0.1.4}/fastapi_radar.egg-info/SOURCES.txt +2 -2
  11. {fastapi_radar-0.1.2 → fastapi_radar-0.1.4}/fastapi_radar.egg-info/requires.txt +1 -2
  12. {fastapi_radar-0.1.2 → fastapi_radar-0.1.4}/pyproject.toml +2 -3
  13. {fastapi_radar-0.1.2 → fastapi_radar-0.1.4}/setup.py +1 -1
  14. {fastapi_radar-0.1.2 → fastapi_radar-0.1.4}/tests/test_radar.py +0 -1
  15. fastapi_radar-0.1.2/fastapi_radar/dashboard/dist/assets/index-BG-z4GnL.js +0 -328
  16. fastapi_radar-0.1.2/fastapi_radar/dashboard/dist/assets/index-DSKnLYuE.css +0 -1
  17. {fastapi_radar-0.1.2 → fastapi_radar-0.1.4}/CONTRIBUTING.md +0 -0
  18. {fastapi_radar-0.1.2 → fastapi_radar-0.1.4}/LICENSE +0 -0
  19. {fastapi_radar-0.1.2 → fastapi_radar-0.1.4}/MANIFEST.in +0 -0
  20. {fastapi_radar-0.1.2 → fastapi_radar-0.1.4}/fastapi_radar/capture.py +0 -0
  21. {fastapi_radar-0.1.2 → fastapi_radar-0.1.4}/fastapi_radar/middleware.py +0 -0
  22. {fastapi_radar-0.1.2 → fastapi_radar-0.1.4}/fastapi_radar/models.py +0 -0
  23. {fastapi_radar-0.1.2 → fastapi_radar-0.1.4}/fastapi_radar/utils.py +0 -0
  24. {fastapi_radar-0.1.2 → fastapi_radar-0.1.4}/fastapi_radar.egg-info/dependency_links.txt +0 -0
  25. {fastapi_radar-0.1.2 → fastapi_radar-0.1.4}/fastapi_radar.egg-info/not-zip-safe +0 -0
  26. {fastapi_radar-0.1.2 → fastapi_radar-0.1.4}/fastapi_radar.egg-info/top_level.txt +0 -0
  27. {fastapi_radar-0.1.2 → fastapi_radar-0.1.4}/setup.cfg +0 -0
  28. {fastapi_radar-0.1.2 → fastapi_radar-0.1.4}/tests/__init__.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fastapi-radar
3
- Version: 0.1.2
3
+ Version: 0.1.4
4
4
  Summary: A debugging dashboard for FastAPI applications with real-time monitoring
5
5
  Home-page: https://github.com/doganarif/fastapi-radar
6
6
  Author: Arif Dogan
@@ -28,8 +28,6 @@ Requires-Dist: fastapi>=0.68.0
28
28
  Requires-Dist: sqlalchemy>=1.4.0
29
29
  Requires-Dist: pydantic>=1.8.0
30
30
  Requires-Dist: starlette>=0.14.2
31
- Requires-Dist: black>=24.8.0
32
- Requires-Dist: httpx>=0.28.1
33
31
  Provides-Extra: dev
34
32
  Requires-Dist: pytest>=7.0.0; extra == "dev"
35
33
  Requires-Dist: pytest-asyncio>=0.21.0; extra == "dev"
@@ -38,19 +36,25 @@ Requires-Dist: black>=22.0.0; extra == "dev"
38
36
  Requires-Dist: isort>=5.10.0; extra == "dev"
39
37
  Requires-Dist: flake8>=4.0.0; extra == "dev"
40
38
  Requires-Dist: mypy>=0.950; extra == "dev"
39
+ Requires-Dist: httpx>=0.28.1; extra == "dev"
41
40
  Dynamic: author
42
41
  Dynamic: home-page
43
42
  Dynamic: license-file
44
43
  Dynamic: requires-python
45
44
 
46
- # FastAPI Radar 🛰️
45
+ # FastAPI Radar
47
46
 
48
47
  [![Python Version](https://img.shields.io/badge/python-3.8%2B-blue.svg)](https://www.python.org/downloads/)
49
- [![FastAPI](https://img.shields.io/badge/FastAPI-0.68.0%2B-green.svg)](https://fastapi.tiangolo.com)
50
48
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
51
49
 
52
50
  **A debugging dashboard for FastAPI applications providing real-time request, database query, and exception monitoring.**
53
51
 
52
+ **Just one line to add powerful monitoring to your FastAPI app!**
53
+
54
+ ## See it in Action
55
+
56
+ ![FastAPI Radar Dashboard Demo](./assets/demo.gif)
57
+
54
58
  ## Installation
55
59
 
56
60
  ```bash
@@ -79,7 +83,7 @@ from sqlalchemy import create_engine
79
83
  app = FastAPI()
80
84
  engine = create_engine("sqlite:///./app.db")
81
85
 
82
- # Initialize Radar - automatically adds middleware and mounts dashboard
86
+ # That's it! One line to add complete monitoring
83
87
  radar = Radar(app, db_engine=engine)
84
88
  radar.create_tables()
85
89
 
@@ -93,16 +97,11 @@ Access your dashboard at: **http://localhost:8000/\_\_radar/**
93
97
 
94
98
  ## Features
95
99
 
96
- - 🚀 **Zero Configuration** - Works with any FastAPI + SQLAlchemy app
97
- - 📊 **Request Monitoring** - Complete HTTP request/response capture with timing
98
- - 🗃️ **Database Monitoring** - SQL query logging with execution times
99
- - 🐛 **Exception Tracking** - Automatic exception capture with stack traces
100
- - **Real-time Updates** - Live dashboard updates as requests happen
101
- - 🎨 **Beautiful UI** - Modern React dashboard with shadcn/ui components
102
-
103
- ## Screenshots
104
-
105
- <!-- Add screenshots here -->
100
+ - **Zero Configuration** - Works with any FastAPI + SQLAlchemy app
101
+ - **Request Monitoring** - Complete HTTP request/response capture with timing
102
+ - **Database Monitoring** - SQL query logging with execution times
103
+ - **Exception Tracking** - Automatic exception capture with stack traces
104
+ - **Real-time Updates** - Live dashboard updates as requests happen
106
105
 
107
106
  ## Configuration
108
107
 
@@ -1,11 +1,16 @@
1
- # FastAPI Radar 🛰️
1
+ # FastAPI Radar
2
2
 
3
3
  [![Python Version](https://img.shields.io/badge/python-3.8%2B-blue.svg)](https://www.python.org/downloads/)
4
- [![FastAPI](https://img.shields.io/badge/FastAPI-0.68.0%2B-green.svg)](https://fastapi.tiangolo.com)
5
4
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
6
5
 
7
6
  **A debugging dashboard for FastAPI applications providing real-time request, database query, and exception monitoring.**
8
7
 
8
+ **Just one line to add powerful monitoring to your FastAPI app!**
9
+
10
+ ## See it in Action
11
+
12
+ ![FastAPI Radar Dashboard Demo](./assets/demo.gif)
13
+
9
14
  ## Installation
10
15
 
11
16
  ```bash
@@ -34,7 +39,7 @@ from sqlalchemy import create_engine
34
39
  app = FastAPI()
35
40
  engine = create_engine("sqlite:///./app.db")
36
41
 
37
- # Initialize Radar - automatically adds middleware and mounts dashboard
42
+ # That's it! One line to add complete monitoring
38
43
  radar = Radar(app, db_engine=engine)
39
44
  radar.create_tables()
40
45
 
@@ -48,16 +53,11 @@ Access your dashboard at: **http://localhost:8000/\_\_radar/**
48
53
 
49
54
  ## Features
50
55
 
51
- - 🚀 **Zero Configuration** - Works with any FastAPI + SQLAlchemy app
52
- - 📊 **Request Monitoring** - Complete HTTP request/response capture with timing
53
- - 🗃️ **Database Monitoring** - SQL query logging with execution times
54
- - 🐛 **Exception Tracking** - Automatic exception capture with stack traces
55
- - **Real-time Updates** - Live dashboard updates as requests happen
56
- - 🎨 **Beautiful UI** - Modern React dashboard with shadcn/ui components
57
-
58
- ## Screenshots
59
-
60
- <!-- Add screenshots here -->
56
+ - **Zero Configuration** - Works with any FastAPI + SQLAlchemy app
57
+ - **Request Monitoring** - Complete HTTP request/response capture with timing
58
+ - **Database Monitoring** - SQL query logging with execution times
59
+ - **Exception Tracking** - Automatic exception capture with stack traces
60
+ - **Real-time Updates** - Live dashboard updates as requests happen
61
61
 
62
62
  ## Configuration
63
63
 
@@ -2,5 +2,5 @@
2
2
 
3
3
  from .radar import Radar
4
4
 
5
- __version__ = "0.1.0"
5
+ __version__ = "0.1.4"
6
6
  __all__ = ["Radar"]
@@ -105,7 +105,7 @@ def create_api_router(get_session_context) -> APIRouter:
105
105
  upper_bound = status_code + 100
106
106
  query = query.filter(
107
107
  CapturedRequest.status_code >= lower_bound,
108
- CapturedRequest.status_code < upper_bound
108
+ CapturedRequest.status_code < upper_bound,
109
109
  )
110
110
  else:
111
111
  # Exact status code match