Skip to main content

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

fastapi_silk-1.0.3.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fastapi_silk-1.0.3-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

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

Hashes for fastapi_silk-1.0.3.tar.gz
Algorithm Hash digest
SHA256 142a3774c0e4b7bf28812e517dc1d9f5c48cf1ab15ea5b59bfb1347db853b7eb
MD5 c61f80f3c9653b56b25c7b04f7134b05
BLAKE2b-256 732d827422e361c3b1d68a8f54986dd18fdc90fedd6e1effcf23df1762893fa9

See more details on using hashes here.

Provenance

The following attestation bundles were made for fastapi_silk-1.0.3.tar.gz:

Publisher: publish.yml on Nikolaev3Artem/fastapi-silk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for fastapi_silk-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 34cda05352494f4de08d2d66f1701a3271311ebe2476b92a40c4a3480db78ccd
MD5 86dc50b3485b76363a0aeab7361d5cd0
BLAKE2b-256 85f399d3d3e99bb124dde5e336cda7a5ee8402efa3e2b7a2386b975e734bb4c2

See more details on using hashes here.

Provenance

The following attestation bundles were made for fastapi_silk-1.0.3-py3-none-any.whl:

Publisher: publish.yml on Nikolaev3Artem/fastapi-silk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page