SQL profiler middleware for FastAPI
Project description
FastAPI-Silk
About the Project
FastAPI-Silk is a profiling and monitoring tool for FastAPI, inspired by django-silk.
It helps track request performance, SQL queries, and provides insights to optimize your FastAPI application.
Dependencies
- Python 3.10+
- FastAPI
- SQLAlchemy (optional, for SQL query profiling)
- Uvicorn or any ASGI server
Installation
You can install FastAPI-Silk via pip:
pip install fastapi-silk
In main.py of your project:
from fastapi_silk import SQLDebugMiddleware
app.add_middleware(SQLDebugMiddleware)
At the database engine file:
from fastapi_silk import setup_sql_profiler
setup_sql_profiler(your_engine)
After setup you will see all timmings and requests to the database all time you trigger your endpoints
Project details
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_silk-1.0.3.tar.gz.
File metadata
- Download URL: fastapi_silk-1.0.3.tar.gz
- Upload date:
- Size: 15.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
142a3774c0e4b7bf28812e517dc1d9f5c48cf1ab15ea5b59bfb1347db853b7eb
|
|
| MD5 |
c61f80f3c9653b56b25c7b04f7134b05
|
|
| BLAKE2b-256 |
732d827422e361c3b1d68a8f54986dd18fdc90fedd6e1effcf23df1762893fa9
|
Provenance
The following attestation bundles were made for fastapi_silk-1.0.3.tar.gz:
Publisher:
publish.yml on Nikolaev3Artem/fastapi-silk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fastapi_silk-1.0.3.tar.gz -
Subject digest:
142a3774c0e4b7bf28812e517dc1d9f5c48cf1ab15ea5b59bfb1347db853b7eb - Sigstore transparency entry: 955454814
- Sigstore integration time:
-
Permalink:
Nikolaev3Artem/fastapi-silk@7d2bed1f73c12ed6f89ad1efaa0d9fef6331dedd -
Branch / Tag:
refs/tags/v1.0.3 - Owner: https://github.com/Nikolaev3Artem
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@7d2bed1f73c12ed6f89ad1efaa0d9fef6331dedd -
Trigger Event:
push
-
Statement type:
File details
Details for the file fastapi_silk-1.0.3-py3-none-any.whl.
File metadata
- Download URL: fastapi_silk-1.0.3-py3-none-any.whl
- Upload date:
- Size: 15.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34cda05352494f4de08d2d66f1701a3271311ebe2476b92a40c4a3480db78ccd
|
|
| MD5 |
86dc50b3485b76363a0aeab7361d5cd0
|
|
| BLAKE2b-256 |
85f399d3d3e99bb124dde5e336cda7a5ee8402efa3e2b7a2386b975e734bb4c2
|
Provenance
The following attestation bundles were made for fastapi_silk-1.0.3-py3-none-any.whl:
Publisher:
publish.yml on Nikolaev3Artem/fastapi-silk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fastapi_silk-1.0.3-py3-none-any.whl -
Subject digest:
34cda05352494f4de08d2d66f1701a3271311ebe2476b92a40c4a3480db78ccd - Sigstore transparency entry: 955454818
- Sigstore integration time:
-
Permalink:
Nikolaev3Artem/fastapi-silk@7d2bed1f73c12ed6f89ad1efaa0d9fef6331dedd -
Branch / Tag:
refs/tags/v1.0.3 - Owner: https://github.com/Nikolaev3Artem
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@7d2bed1f73c12ed6f89ad1efaa0d9fef6331dedd -
Trigger Event:
push
-
Statement type: