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 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.5.tar.gz (24.9 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.5-py3-none-any.whl (37.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for django_orm_to_excel-2.1.5.tar.gz
Algorithm Hash digest
SHA256 7ad02fe79ad5eef6c12018b73076292e6a9598901a298111c7358742eaefc2b3
MD5 1235bb4675df2d914336c14ffe50e048
BLAKE2b-256 d7db5019ef2d1cd3a90539c970cb9ccdb6a4da803588cc0cfa2e27238f1947f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_orm_to_excel-2.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c9d5e12b38346cc5f2924baec23fa52b94538ad0fbe94a3900e6b49e1b3d4b85
MD5 accac5846c7c236037c44c902f24275d
BLAKE2b-256 716648b6c14a2a2c5e9ffadac5beb953c1284f31bcdbe328c793b047ae2d39df

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