Skip to main content

Extensible helper to export Django QuerySets and other data to CSV and Excel.

Project description

Latest Version CI Status Coverage Status Documentation Status

django-dataexporter is a extensible helper to export Django QuerySets and other data to CSV and Excel.

Features

  • Exporter class to generate CSV and Excel files out of QuerySets and other iterables.

  • Factory to generate Django ModelAdmin actions to trigger an export out of Django’s famous admin interface.

Requirements

django-dataexporter supports Python 3.10+ and Django 3.2+. In addition, the Python package openpyxl needs to be installed.

Prepare for development

A Python 3.10+ interpreter is required in addition to uv.

Install uv:

$ curl -LsSf https://astral.sh/uv/install.sh | sh
# or
$ pip install uv

Install dependencies:

$ uv sync --extra dev

Set up pre-commit hooks (optional but recommended):

$ uv run pre-commit install

Now you’re ready to run the tests:

$ uv run pytest

Run linting and formatting checks:

$ uv run ruff check .
$ uv run ruff format --check .

Run tests with coverage:

$ uv run pytest --cov

Run tests across multiple Python and Django versions (includes linting):

$ uv run tox

Format code with ruff:

$ uv run ruff format .

Run pre-commit on all files:

$ uv run pre-commit run --all-files

Resources

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_dataexporter-2.1.0.tar.gz (66.3 kB view details)

Uploaded Source

Built Distribution

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

django_dataexporter-2.1.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file django_dataexporter-2.1.0.tar.gz.

File metadata

  • Download URL: django_dataexporter-2.1.0.tar.gz
  • Upload date:
  • Size: 66.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for django_dataexporter-2.1.0.tar.gz
Algorithm Hash digest
SHA256 d1c86796444adb8af6034197e1fa3f27b15acfa32760a4f6f72c24cc6e934a28
MD5 8d0120dc9b5e4fd42f7e07f8f4fc7e46
BLAKE2b-256 b1ffc4b4f38b7ff12cb40f8d0cd027aed11d794ec07977a396fea8bde393c0c1

See more details on using hashes here.

File details

Details for the file django_dataexporter-2.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_dataexporter-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5a5fe66c4d9dd839ddd0b18737a5671ae09e1609038fdab3b78e89617d82669c
MD5 2273740c595d6996ed06f0b739070281
BLAKE2b-256 3ce66789862344fef9620541e473cd72bf85a1a117ae3531b57a22de88b9dfa5

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