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.3.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.3.tar.gz.
File metadata
- Download URL: django_orm_to_excel-2.1.3.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 |
a8188dd68531934e0d6ecd217b2b5081872613301cda1974072a160420c0ac85
|
|
| MD5 |
17350389d5dd1627a36a685e8dc634f6
|
|
| BLAKE2b-256 |
696be09400d4f8d017df8d54203800bcfd73d68c82c8b54dc4fde419f942d8f2
|
File details
Details for the file django_orm_to_excel-2.1.3-py3-none-any.whl.
File metadata
- Download URL: django_orm_to_excel-2.1.3-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 |
721e3fa7964ea1c739e141b0626a066632e4df0aeb1943f4bc9b9243001e879e
|
|
| MD5 |
2d718d47d804e2352701b3122d7169bc
|
|
| BLAKE2b-256 |
3fabc71847244c527558a24910554db22280806c6ba4153dbbcf7741b93dca42
|