Metadata-Version: 2.4
Name: ami-djAPI-analyzing
Version: 0.1.0
Summary: Lightweight Django middleware for profiling SQL queries, detecting performance issues, and analyzing request execution.
Author: Ami
License: MIT
Keywords: django,django-profiler,sql-profiler,performance,django-middleware,debugging
Classifier: Framework :: Django
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: Django>=3.2
Requires-Dist: cryptography>=41.0
Provides-Extra: dev
Requires-Dist: pytest; extra == "dev"
Requires-Dist: black; extra == "dev"
Requires-Dist: flake8; extra == "dev"
Dynamic: license-file

# ami-djAPI-analyzing

Lightweight **ami-djAPI-analyzing** for analyzing SQL queries, request performance, and detecting common database issues like **N+1 queries, duplicate queries, slow queries, and missing indexes**.

It provides detailed profiling information directly in the response headers and API responses.

---

# Features

• Capture all SQL queries executed during a request  
• Detect **N+1 queries automatically**  
• Detect **duplicate queries**  
• Detect **slow SQL queries**  
• Detect **potential missing indexes**  
• Analyze **database time vs total response time**  
• **Performance score system (A–F grading)**  
• Track **request history**  
• Capture **memory usage**  
• Generate **EXPLAIN plans for slow queries**  
• Optional **step-by-step view execution profiler**  
• Encrypted performance payload in response headers  

---

# Installation

```bash
pip install ami-djAPI-analyzing
