Turning Django ORM objects to Excel
Project description
django-orm-to-excel
A small library for turning Django ORM objects (such as records or QuerySet) into an Excel spreadsheet.
Example:
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"])
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django_orm_to_excel-2.1.4.tar.gz
(15.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 django_orm_to_excel-2.1.4.tar.gz.
File metadata
- Download URL: django_orm_to_excel-2.1.4.tar.gz
- Upload date:
- Size: 15.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e13c8aa4ddf48996b86b93b2cc7ef9705d7d2d280c2ec0b145bfb38877cf0f9
|
|
| MD5 |
2c832357d3c35fa097eb864e50ae15ac
|
|
| BLAKE2b-256 |
3e905c3c9da07df9eda4c551a3557ee982650b8cd5d44fc564a604424fd1a72b
|
File details
Details for the file django_orm_to_excel-2.1.4-py3-none-any.whl.
File metadata
- Download URL: django_orm_to_excel-2.1.4-py3-none-any.whl
- Upload date:
- Size: 21.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87efd086b04f0f41489d7c8c955286be569a4b27b43302674d7045f8438c0ace
|
|
| MD5 |
87e985ab345429f71645bf452edfdef0
|
|
| BLAKE2b-256 |
b0a9368ac421d06c5569ecfdc9db50af25bae2b8ae5bfc2043b95af5228d9ffb
|