Metadata-Version: 2.4
Name: django-turntable
Version: 0.1.0
Summary: A lightweight Django library that helps you optimize your app's database access.
Author: Ryan Thomson
License-Expression: MIT
Classifier: Development Status :: 3 - Alpha
Classifier: Framework :: Django
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Requires-Dist: django>=6.0.0
Requires-Python: >=3.13
Project-URL: homepage, https://github.com/r-thomson/Django-Turntable
Project-URL: source, https://github.com/r-thomson/Django-Turntable.git
Project-URL: releasenotes, https://github.com/r-thomson/Django-Turntable/releases
Project-URL: issues, https://github.com/r-thomson/Django-Turntable/issues
Description-Content-Type: text/markdown

# Django-Turntable

This is a lightweight Django library for helping developers optimize their app's database access.

**Currently**, this library just counts the number of queries executed.

**In the future**, it will analyze your SQL queries to identify repeating queries.

## Usage

### As a Context Manager

```py
from django_turntable import inspect_queries

with inspect_queries():
    ...
```

### As a Decorator

```py
from django_turntable import inspect_queries

@inspect_queries()
def my_function():
    ...
```

### As Middleware

```py
# settings.py

MIDDLEWARE = [
    ...,
    'django_turntable.TurntableMiddleware',
]
```
