Skip to content
PyRank
  • Search
  • PyPI
  • GitHub
  • Insights
  • Compare
  • Advisories
  • Ecosystem
  • About

N Plus One Python Packages

Python packages with the GitHub topic n-plus-one. Sorted by monthly downloads, with stars and forks.
tracepanel
tracepanel-agent

Traces and logs for your app on your machine: every request, job and command with its SQL queries and log lines. Finds N+1 queries, slow SQL and errors, and names the line to fix.

58K 2 0
conformist-mw
django-query-counter

Count Django SQL queries and surface duplicate (N+1) and slow ones in the console — works as a decorator (management commands, tasks, views) or as middleware

20K 24 3
sqla-native
queryspy

N+1 and query-budget detection for SQLAlchemy 2.0 — sync and async

17K 4 0
tracepanel
tracepanel

Traces and logs for Python apps on your machine: Django, FastAPI, Flask, Celery and more. Finds N+1 queries, slow SQL and errors, and names the line to fix.

7K 0 0
ffroliva
sharpit

Secure-by-default developer console and pytest gate for FastAPI: security advisor, OSV/EPSS vulnerability scan, security-header probe, SQL and N+1 detection, config provenance, CLI and MCP. Fails closed, local-only, secrets masked. Python port of BootUI.

6K 5 1
MaciejZiel
pytest-queryguard

pytest plugin that catches N+1 queries and enforces query budgets for SQLAlchemy 2 (sync, async, FastAPI)

6K 1 1
tracepanel
django-tracepanel

Traces and logs for your app on your machine: every request, job and command with its SQL queries and log lines. Finds N+1 queries, slow SQL and errors, and names the line to fix.

6K 2 0
FROWNINGdev
django-orm-lens

ER diagrams, N+1 detection, schema drift & migration-risk linting for Django and SQLAlchemy (Alembic) — VS Code, CLI and MCP server. Static analysis: no database, no app boot. Free & MIT. Formerly django-orm-lens.

6K 114 59
FROWNINGdev
orm-lens

ER diagrams, N+1 detection, schema drift & migration-risk linting for Django and SQLAlchemy (Alembic) — VS Code, CLI and MCP server. Static analysis: no database, no app boot. Free & MIT. Formerly django-orm-lens.

5K 114 59
matink112
drf-batch

The missing write-path DataLoader for Django REST Framework. Collect every DB and service lookup once, validate the whole batch in memory, and commit it all-or-none in one transaction.

2K 5 0
syrian963
django-chainsaw-mcp

Finds what will hurt in a Django project - cascade impact, N+1 queries, unsafe migrations, unscoped tenant reads - as an MCP server and a CLI. Tested against 18 public projects.

815 1 0
brakit-ai
brakit

Zero-config observability for Python web frameworks

347 14 1
atiqur-rahman-pro
django-query-guard

Detect and prevent N+1 database queries in Django applications with Pytest integration.

257 0 0
yassinbahri
django-fetch-guard

Prevent accidental Django ORM queries with strict fetch contracts, automatic N+1 batching, DRF integration, and support for Django 4.2–6.1.

201 3 3
moseleydev
tracelet-sdk

Tag your database queries with the request that ran them, so Tracelet can show per-request waterfalls and catch N+1 loops.

163 11 0
ldavidsm
pytest-querycount

Fail your tests when they run too many SQL queries. Catch N+1 problems in CI, not in production.

148 1 0
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology