fastapi-radar 0.1.5__py3-none-any.whl → 0.1.6__py3-none-any.whl
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.
- fastapi_radar/__init__.py +1 -1
- fastapi_radar/api.py +1 -1
- fastapi_radar/dashboard/dist/assets/index-BJa0l2JD.js +313 -0
- fastapi_radar/dashboard/dist/index.html +1 -1
- fastapi_radar/radar.py +6 -0
- {fastapi_radar-0.1.5.dist-info → fastapi_radar-0.1.6.dist-info}/METADATA +1 -1
- fastapi_radar-0.1.6.dist-info/RECORD +17 -0
- fastapi_radar/dashboard/dist/assets/index-CxIRSjZZ.js +0 -308
- fastapi_radar-0.1.5.dist-info/RECORD +0 -17
- {fastapi_radar-0.1.5.dist-info → fastapi_radar-0.1.6.dist-info}/WHEEL +0 -0
- {fastapi_radar-0.1.5.dist-info → fastapi_radar-0.1.6.dist-info}/licenses/LICENSE +0 -0
- {fastapi_radar-0.1.5.dist-info → fastapi_radar-0.1.6.dist-info}/top_level.txt +0 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>FastAPI Radar - Debugging Dashboard</title>
|
|
7
|
-
<script type="module" crossorigin src="/__radar/assets/index-
|
|
7
|
+
<script type="module" crossorigin src="/__radar/assets/index-BJa0l2JD.js"></script>
|
|
8
8
|
<link rel="stylesheet" crossorigin href="/__radar/assets/index-DCxkDBhr.css">
|
|
9
9
|
</head>
|
|
10
10
|
<body>
|
fastapi_radar/radar.py
CHANGED
|
@@ -15,6 +15,8 @@ from .api import create_api_router
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
class Radar:
|
|
18
|
+
query_capture: Optional[QueryCapture]
|
|
19
|
+
|
|
18
20
|
def __init__(
|
|
19
21
|
self,
|
|
20
22
|
app: FastAPI,
|
|
@@ -91,6 +93,10 @@ class Radar:
|
|
|
91
93
|
|
|
92
94
|
def _setup_query_capture(self) -> None:
|
|
93
95
|
"""Setup SQLAlchemy query capture."""
|
|
96
|
+
assert (
|
|
97
|
+
self.db_engine is not None
|
|
98
|
+
), "db_engine must be set before calling _setup_query_capture"
|
|
99
|
+
|
|
94
100
|
self.query_capture = QueryCapture(
|
|
95
101
|
get_session=self.get_session,
|
|
96
102
|
capture_bindings=self.capture_sql_bindings,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
fastapi_radar/__init__.py,sha256=SDlgxlRiF2H4tJXJR2lojX5ev-Z-uPeQoA_LgXAoOnc,137
|
|
2
|
+
fastapi_radar/api.py,sha256=B5FsIzwJ6hSfgI4DG08KMSNXsgDMqJ6x2Tq4_k0DbVs,10594
|
|
3
|
+
fastapi_radar/capture.py,sha256=7ozPNBcogWeILIT1YsiTg5GyIGJvIr3o2rMVJEW-RGs,3289
|
|
4
|
+
fastapi_radar/middleware.py,sha256=4Jo9nX0nxtT3e9JOIP5UE490uWvAI-a61nCS_8y77rs,4964
|
|
5
|
+
fastapi_radar/models.py,sha256=H2esHsTo4RZEy9GJ0I49Ob5-AS85aeO0oMWau2QrWMw,2262
|
|
6
|
+
fastapi_radar/radar.py,sha256=ScNC_VuXP_j6d3a1KkTSLGjsUiSTfXXj-EL_bnJnKYg,10545
|
|
7
|
+
fastapi_radar/utils.py,sha256=WoL5tEH1pl6zOp0sXoPV_3UEOsIl29_xgzS0iapS10s,1515
|
|
8
|
+
fastapi_radar/dashboard/dist/index.html,sha256=mWeUgXklmZG3Dge6ugGi3JxBHDFjlyP5NjkTsMpuUko,436
|
|
9
|
+
fastapi_radar/dashboard/dist/assets/index-BJa0l2JD.js,sha256=G-dZ8delFyCE9I2TOjR36ql261ekTtlmOb0yQtSNjr4,806905
|
|
10
|
+
fastapi_radar/dashboard/dist/assets/index-DCxkDBhr.css,sha256=RLA1xEBZZaQDyJqE1rok9UTyavpMgYb4bcuRdjKhMHo,33691
|
|
11
|
+
fastapi_radar-0.1.6.dist-info/licenses/LICENSE,sha256=0ga4BB6q-nqx6xlDRhtrgKrYs0HgX02PQyIzNFRK09Q,1067
|
|
12
|
+
tests/__init__.py,sha256=kAWaI50iJRZ4JlAdyt7FICgm8MsloZz0ZlsmhgLXBas,31
|
|
13
|
+
tests/test_radar.py,sha256=qA9iUtk6zzcsjgoxJriQngFvhHUqXmVrPcULp58sI1o,1684
|
|
14
|
+
fastapi_radar-0.1.6.dist-info/METADATA,sha256=flff7NtCLzQfXQPO-a2bmH9HzH0Va5pOtDj1C8YzHd4,5954
|
|
15
|
+
fastapi_radar-0.1.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
16
|
+
fastapi_radar-0.1.6.dist-info/top_level.txt,sha256=M-bALM-KDkiLcATq2aAx-BnG59Nv-GdFBzuzkUhiCa0,20
|
|
17
|
+
fastapi_radar-0.1.6.dist-info/RECORD,,
|