Skip to main content

Fast exporting of data from the Django admin panel

Project description

Utilities for quickly streaming CSV responses to the client

Thanks, https://docs.djangoproject.com/en/4.0/howto/outputting-csv/

Example usage:

from django_fast_export.csv import StreamingCSVResponse

response = StreamingCSVResponse.from_queryset(queryset)

Or with additional fields:

from django_fast_export.csv import StreamingCSVResponse, all_values, all_verbose_names

def generate():
    yield (all_verbose_names(queryset.model) + ["Lösungen"])
    yield from (
        (all_values(instance) + [instance.get_solutions()]) for instance in queryset
    )

response = StreamingCSVResponse(generate())

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_fast_export-0.1.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

django_fast_export-0.1.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file django_fast_export-0.1.0.tar.gz.

File metadata

  • Download URL: django_fast_export-0.1.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.6.0 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.7

File hashes

Hashes for django_fast_export-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f0f50245157c7d4936edd9b525833dabef00af266666a245fc54ecb8e28bf697
MD5 6bfa3762491ecfb432fff56e415cceb7
BLAKE2b-256 ed4ce6644c212d4d4b8af6c86c6977d3c4e1773da064095765c2a7d839116f5a

See more details on using hashes here.

File details

Details for the file django_fast_export-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: django_fast_export-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.6.0 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.7

File hashes

Hashes for django_fast_export-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b92f10ed966f21e419029302d9cd77c70bc5df6cba518bd82cae425bc769b23c
MD5 9b2777a6e9932d5e6d1bb275f81a7431
BLAKE2b-256 6f3b206e1361a03df38992b3200d4a42e45088e67ecb6b6c85262b6859b748f0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page