{"id":18419423,"url":"https://github.com/saritasa-nest/django-import-export-extensions","last_synced_at":"2025-04-06T08:11:39.278Z","repository":{"id":154984191,"uuid":"621617241","full_name":"saritasa-nest/django-import-export-extensions","owner":"saritasa-nest","description":"django-import-export-extensions","archived":false,"fork":false,"pushed_at":"2024-10-24T07:09:31.000Z","size":1060,"stargazers_count":46,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-25T02:23:24.552Z","etag":null,"topics":["celery","csv","django","django-import-export","import-export","json","python","xlsx"],"latest_commit_sha":null,"homepage":"https://django-import-export-extensions.readthedocs.io/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/saritasa-nest.png","metadata":{"files":{"readme":"README.rst","changelog":"HISTORY.rst","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.rst","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-31T03:04:27.000Z","updated_at":"2024-10-24T07:09:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"66b20022-a51c-43fc-b41b-3f180bd3bd18","html_url":"https://github.com/saritasa-nest/django-import-export-extensions","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saritasa-nest%2Fdjango-import-export-extensions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saritasa-nest%2Fdjango-import-export-extensions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saritasa-nest%2Fdjango-import-export-extensions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saritasa-nest%2Fdjango-import-export-extensions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saritasa-nest","download_url":"https://codeload.github.com/saritasa-nest/django-import-export-extensions/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247451653,"owners_count":20940939,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["celery","csv","django","django-import-export","import-export","json","python","xlsx"],"created_at":"2024-11-06T04:16:58.409Z","updated_at":"2025-04-06T08:11:39.261Z","avatar_url":"https://github.com/saritasa-nest.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"===============================\ndjango-import-export-extensions\n===============================\n\n.. image:: https://github.com/saritasa-nest/django-import-export-extensions/actions/workflows/checks.yml/badge.svg\n    :target: https://github.com/saritasa-nest/django-import-export-extensions/actions/workflows/checks.yml\n    :alt: Build status on Github\n\n.. image:: https://coveralls.io/repos/github/saritasa-nest/django-import-export-extensions/badge.svg?branch=main\n    :target: https://coveralls.io/github/saritasa-nest/django-import-export-extensions?branch=main\n    :alt: Test coverage\n\n.. image:: https://img.shields.io/pypi/pyversions/django-import-export-extensions\n    :target: https://pypi.org/project/django-import-export-extensions/\n    :alt: Supported python versions\n\n.. image:: https://img.shields.io/badge/django--versions-4.0_%7C_4.1_%7C_4.2_%7C_5.0-blue\n    :target: https://pypi.org/project/django-import-export-extensions/\n    :alt: Supported django versions\n\n.. image:: https://readthedocs.org/projects/django-import-export-extensions/badge/?version=latest\n    :target: https://django-import-export-extensions.readthedocs.io/en/latest/?badge=latest\n    :alt: Documentation Status\n\n.. image:: https://static.pepy.tech/personalized-badge/django-import-export-extensions?period=month\u0026units=international_system\u0026left_color=gray\u0026right_color=blue\u0026left_text=Downloads/month\n    :target: https://pepy.tech/project/django-import-export-extensions\n    :alt: Downloading statistic\n\nDescription\n-----------\n``django-import-export-extensions`` extends the functionality of\n`django-import-export \u003chttps://github.com/django-import-export/django-import-export/\u003e`_\nadding the following features:\n\n* Import/export resources in the background via Celery\n* Manage import/export jobs via Django Admin\n* DRF integration that allows to work with import/export jobs via API\n* Support `drf-spectacular \u003chttps://github.com/tfranzel/drf-spectacular\u003e`_ generated API schema\n* Additional fields and widgets (FileWidget, IntermediateManyToManyWidget, IntermediateManyToManyField)\n\nInstallation\n------------\n\nTo install ``django-import-export-extensions``, run this command in your terminal:\n\n.. code-block:: console\n\n    $ pip install django-import-export-extensions\n\nAdd ``import_export`` and ``import_export_extensions`` to ``INSTALLED_APPS``\n\n.. code-block:: python\n\n    # settings.py\n    INSTALLED_APPS = (\n        ...,\n        \"import_export\",\n        \"import_export_extensions\",\n    )\n\nRun ``migrate`` command to create ImportJob/ExportJob models and\n``collectstatic`` to let Django collect package static files to use in the admin.\n\n.. code-block:: shell\n\n    $ python manage.py migrate\n    $ python manage.py collectstatic\n\n\nUsage\n-----\n\nPrepare resource for your model\n\n.. code-block:: python\n\n    # apps/books/resources.py\n    from import_export_extensions.resources import CeleryModelResource\n\n    from .. import models\n\n\n    class BookResource(CeleryModelResource):\n\n        class Meta:\n            model = models.Book\n\nUse ``CeleryImportExportMixin`` class and set ``resource_class`` in admin model\nto import/export via Django Admin\n\n.. code-block:: python\n\n    # apps/books/admin.py\n    from django.contrib import admin\n\n    from import_export_extensions.admin import CeleryImportExportMixin\n\n    from .. import resources\n\n\n    @admin.register(models.Book)\n    class BookAdmin(CeleryImportExportMixin, admin.ModelAdmin):\n        resource_class = resources.BookResource\n\n\nPrepare view sets to import/export via API\n\n.. code-block:: python\n\n    # apps/books/api/views.py\n    from .. import resources\n\n    from import_export_extensions.api import views\n\n\n    class BookExportViewSet(views.ExportJobViewSet):\n        resource_class = resources.BookResource\n\n\n    class BookImportViewSet(views.ImportJobViewSet):\n        resource_class = resources.BookResource\n\n\nDon't forget to `configure Celery \u003chttps://docs.celeryq.dev/en/stable/django/first-steps-with-django.html\u003e`_\nif you want to run import/export in background\n\n\nLinks:\n------\n* Documentation: https://django-import-export-extensions.readthedocs.io.\n* GitHub: https://github.com/saritasa-nest/django-import-export-extensions/\n* PyPI: https://pypi.org/project/django-import-export-extensions/\n\nLicense:\n--------\n* Free software: MIT license\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaritasa-nest%2Fdjango-import-export-extensions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaritasa-nest%2Fdjango-import-export-extensions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaritasa-nest%2Fdjango-import-export-extensions/lists"}