Skip to main content

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 django_orm_to_excel 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.1.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_orm_to_excel-2.1.1-py3-none-any.whl (18.1 kB view details)

Uploaded Python 3

File details

Details for the file django_orm_to_excel-2.1.1.tar.gz.

File metadata

  • Download URL: django_orm_to_excel-2.1.1.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.18

File hashes

Hashes for django_orm_to_excel-2.1.1.tar.gz
Algorithm Hash digest
SHA256 ba02a0110414af428d28258778f0cd15fea3adbdd95cd1b5d003f4ce77999fdd
MD5 e9f0c58f624f17f908c9d4d20e238a00
BLAKE2b-256 6211bfb5a0b0ad1ef35f1e52503f9e08fe2a2743b6974a17b5ab274f6704b5e0

See more details on using hashes here.

File details

Details for the file django_orm_to_excel-2.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for django_orm_to_excel-2.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0f18c54b8f29d913f4905197b534242dbdc52e88e48db685d4d128bb85ff9f8a
MD5 d3b3af9e08ca7104cd97946d0a1e2af3
BLAKE2b-256 ba2dd6f4d4e7858801fd07aa84f8f48a18c854fdee9d561c32bd439811d2328e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page