No project description provided
Project description
Seequell
A Django middleware for inspecting SQL queries in development.
Seequell logs and analyzes SQL queries for every HTTP request, helping you identify N+1s, slow queries, and duplicate patterns — all directly in your terminal using rich formatting.
Features
- Logs every SQL query in a request
- Highlights slow queries exceeding a configurable threshold
- Detects duplicate queries (normalized SQL analysis)
- Pluggable analyzer system for custom checks
- Beautiful output using Rich
Requirements
- Django >= 3.2
- Python >= 3.8
- Only tested w/ relational dbs (postgres, mysql, sqlite)
- Only use this in dev, not prod
Installation
pip install seequell
or with Poetry:
poetry add --dev seequell
Setup
- Add
SeequellMiddlewareto your middleware list insettings.py
MIDDLEWARE = [
# ...
"seequell.middleware.SeequellMiddleware",
]
- (Optional) Customize settings using the
SEEQUELLdict in yoursettings.py
SEEQUELL = {
"ENABLED": True,
"MAX_QUERY_THRESHOLD": 0.01, # seconds
"ENABLED_ANALYZERS": [
"seequell.analyzers.slow_query.SlowQueryAnalyzer",
"seequell.analyzers.duplicate_query.DuplicateQueryAnalyzer",
],
}
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
seequell-0.1.0.tar.gz
(4.6 kB
view details)
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 seequell-0.1.0.tar.gz.
File metadata
- Download URL: seequell-0.1.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.12.9 Linux/6.11.0-26-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49353282fe782413ecfe3801b0d1d7defc9c5e22ce99461ebd5b758f83470e91
|
|
| MD5 |
d473661bc7e55e1c64e38eaa49ad4629
|
|
| BLAKE2b-256 |
92b15197f8db96984f60d761266c4cc4841a1cb1e5e832440675088c584e783b
|
File details
Details for the file seequell-0.1.0-py3-none-any.whl.
File metadata
- Download URL: seequell-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.12.9 Linux/6.11.0-26-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0f541c73c6119156731e4227fd652f1a44bccd67c166ca40b802d34c56f7273
|
|
| MD5 |
4a5d89da69f9e3ae90e3668b6b03be76
|
|
| BLAKE2b-256 |
c9f5240129ab7d79ee852a44d934d634feaed353c92eb8ba5cdd5aea458da139
|