Metadata-Version: 2.4
Name: django-orm-to-excel
Version: 2.1.5
Summary: Turning Django ORM objects to Excel
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: jinja2==3.1.6
Requires-Dist: openpyxl==3.1.5

# django-orm-to-excel

A small library for turning Django ORM objects (such as records or QuerySet) into an Excel spreadsheet.

### Example:

```python
from ormxl import save_to_excel

# querysets
profiles = Profile.objects.all()

with open("queryset_dump.xlsx", "w") as file:
    save_to_excel(file, profiles, fields=["name", "age"])

# records
profile = profiles.first()

with open("record_dump.xlsx", "w") as file:
    save_to_excel(file, profile, fields=["name", "age"])
```
