Django application and library for importing and exporting data with included admin integration.
Project description
Introduction
Straightforward, reliable and comprehensive file import / export for your Django application.
django-import-export is an application and library which lets you manage import / export from / to a variety of sources (csv, xlsx, json etc).
Can be run programmatically, or with optional integration with the Django Admin site:
Features
Import / export via Admin UI Integration or programmatically
Import to and from a variety of file formats (csv, json, xlsx, pandas, HTML, YAML… and anything else that tablib supports)
Preview data before importing in Admin UI
Support for bulk import
Flexible handling of foreign key relationships
Many-to-many relationship support
Validation of imported data
Define custom transformations for exported data
Import / export the same model instance as different views
Export using natural keys for portability between environments
Select items for export via the Admin UI object list
Select fields for export via the export form
Use django permissions to control import / export authorization
Internationalization support
Based on tablib
Support for MySQL / PostgreSQL / SQLite
Extensible - add custom logic to control import / export
Handle import from various character encodings
Celery integration
Test locally with Docker
Comprehensive documentation
test coverage :100:
Supports dark mode :rocket:
Example use-cases
django-import-export is designed to be extensible and can be used to support a variety of operations. Here are some examples of how it has been used in the wild:
Configure external cron jobs to run an import or export at set times
Use permissions to define a subset of users able to import and export project data
Safely update project reference data by importing from version controlled csv
Create portable data to transfer between environments using natural keys
Manage user access to an application by importing externally version controlled auth user lists
Add hooks to anonymize data on export
Modify import / export UI forms to add dynamic filtering on import / export.
Build a migration layer between platforms, for example take a Wordpress export and import to Wagtail
Getting started
Help and support
Commercial support
Commercial support is provided by Bellaport Systems Ltd
Releases
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file django_import_export-4.3.1.tar.gz
.
File metadata
- Download URL: django_import_export-4.3.1.tar.gz
- Upload date:
- Size: 2.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e47bc3bf632d930870dab221c5ef0bb02c5d5efd3720c4607c08f3f946a1caa |
|
MD5 | 272baebf1fcc5de9ac6df536a419bbf7 |
|
BLAKE2b-256 | c788b9077b0e0c9cf05d98f7a212877ba96bb302f5581116e3b7a15f9528c339 |
Provenance
The following attestation bundles were made for django_import_export-4.3.1.tar.gz
:
Publisher:
release.yml
on django-import-export/django-import-export
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
django_import_export-4.3.1.tar.gz
- Subject digest:
9e47bc3bf632d930870dab221c5ef0bb02c5d5efd3720c4607c08f3f946a1caa
- Sigstore transparency entry: 150010597
- Sigstore integration time:
- Predicate type:
File details
Details for the file django_import_export-4.3.1-py3-none-any.whl
.
File metadata
- Download URL: django_import_export-4.3.1-py3-none-any.whl
- Upload date:
- Size: 139.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7cd9165851872c8b0eb6ce71029f1e92411b757c2a2e69e7a7ea12e6274c173a |
|
MD5 | e574f28e6408c4c93ed2713780748642 |
|
BLAKE2b-256 | 00ef65b49828e2128cbc4c062a2e21976dfa1b73892a69fe07e0a638dfb06fdf |
Provenance
The following attestation bundles were made for django_import_export-4.3.1-py3-none-any.whl
:
Publisher:
release.yml
on django-import-export/django-import-export
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
django_import_export-4.3.1-py3-none-any.whl
- Subject digest:
7cd9165851872c8b0eb6ce71029f1e92411b757c2a2e69e7a7ea12e6274c173a
- Sigstore transparency entry: 150010600
- Sigstore integration time:
- Predicate type: