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
Metadata
Release files for django-dataexporter 2.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django_dataexporter-2.1.0.tar.gz | 66.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_dataexporter-2.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 73.4 kB
Release files / django_dataexporter-2.1.0.tar.gz
| Download URL | django_dataexporter-2.1.0.tar.gz |
|---|---|
| Size | 66.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d1c86796444adb8af6034197e1fa3f27b15acfa32760a4f6f72c24cc6e934a28
|
|
BLAKE2b-256 checksum How to use checksums |
b1ffc4b4f38b7ff12cb40f8d0cd027aed11d794ec07977a396fea8bde393c0c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.19
|
Release files / django_dataexporter-2.1.0-py3-none-any.whl
| Download URL | django_dataexporter-2.1.0-py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5a5fe66c4d9dd839ddd0b18737a5671ae09e1609038fdab3b78e89617d82669c
|
|
BLAKE2b-256 checksum How to use checksums |
3ce66789862344fef9620541e473cd72bf85a1a117ae3531b57a22de88b9dfa5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.19
|