django-import-export-extensions
Check out our other open-source projects
Links
Description
django-import-export-extensions extends the functionality of
django-import-export
adding the following features:
- Import/export resources in the background via Celery
- Manage import/export jobs via Django Admin
- DRF integration that allows to work with import/export jobs via API
- Support drf-spectacular generated API schema
- Additional fields and widgets (FileWidget, IntermediateManyToManyWidget, IntermediateManyToManyField)
Installation
To install django-import-export-extensions, run this command in your
terminal:
pip install django-import-export-extensions
Add import_export and import_export_extensions to INSTALLED_APPS
# settings.py
INSTALLED_APPS = (
...,
"import_export",
"import_export_extensions",
)
Run migrate command to create ImportJob/ExportJob models and
collectstatic to let Django collect package static files to use in the
admin.
python manage.py migrate
python manage.py collectstatic
Usage
Prepare resource for your model
# apps/books/resources.py
from import_export_extensions.resources import CeleryModelResource
from .. import models
class BookResource(CeleryModelResource):
class Meta:
model = models.Book
Use CeleryImportExportMixin class and set resource_classes in admin
model to import/export via Django Admin
# apps/books/admin.py
from django.contrib import admin
from import_export_extensions.admin import CeleryImportExportMixin
from .. import resources
@admin.register(models.Book)
class BookAdmin(CeleryImportExportMixin, admin.ModelAdmin):
resource_classes = [resources.BookResource]
Prepare view sets to import/export via API
# apps/books/api/views.py
from .. import resources
from import_export_extensions.api import views
class BookExportViewSet(views.ExportJobViewSet):
resource_class = resources.BookResource
class BookImportViewSet(views.ImportJobViewSet):
resource_class = resources.BookResource
Don't forget to configure Celery if you want to run import/export in background
License
- Free software: MIT license
Metadata
Release files for django-import-export-extensions 1.11.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 | Provenance | Actions |
|---|---|---|---|---|
| django_import_export_extensions-1.11.0.tar.gz | 729.0 kB | Without provenance | Details for django_import_export_extensions-1.11.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_import_export_extensions-1.11.0-py3-none-any.whl | Python 3 | none | any | Details for django_import_export_extensions-1.11.0-py3-none-any.whl |
Total release size: 808.5 kB
Release files / django_import_export_extensions-1.11.0.tar.gz
| Download URL | django_import_export_extensions-1.11.0.tar.gz |
|---|---|
| Size | 729.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9450047ee52a1d0ff72764a789aab82d91d8fffc596a10db9cf75c9ca8baad68
|
|
BLAKE2b-256 checksum How to use checksums |
beb82cfae803dfe5bf4cdde2152696b26c5319bfb0ca56f28a7f451fb84fbb36
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.3 {"installer":{"name":"uv","version":"0.13.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / django_import_export_extensions-1.11.0-py3-none-any.whl
| Download URL | django_import_export_extensions-1.11.0-py3-none-any.whl |
|---|---|
| Size | 79.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
220232da5c58a3a754cb9847e33cee4a81448356076744ddbf9f1ee7cc385ce1
|
|
BLAKE2b-256 checksum How to use checksums |
06534da0a5075ee6be81473bccc003408d6d3154e7bb61c9160a8af21eabe82d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.3 {"installer":{"name":"uv","version":"0.13.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for django-import-export-extensions 1.11.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.