django-fast-export
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())
Release files for django_fast_export 0.1.1
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_fast_export-0.1.1.tar.gz | 3.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_fast_export-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.4 kB
Release files / django_fast_export-0.1.1.tar.gz
| Download URL | django_fast_export-0.1.1.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b9d72b2743bc1d5058203f601919f2ab1fb2dc22a78cb39163aefbb3c2f2f1c9
|
|
BLAKE2b-256 checksum How to use checksums |
32699814b152e6b913004d1cdf3065917de18ea6f4355c8abaecf3dcfc151acc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.24.1
|
Release files / django_fast_export-0.1.1-py3-none-any.whl
| Download URL | django_fast_export-0.1.1-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1a962215f96346c6445ba2ee85c48fcd3d535b14aa251fe633dd3e1f18f0288f
|
|
BLAKE2b-256 checksum How to use checksums |
771a6131645d6e705cb725e975f8e116296654b5da14293f2e6685a3339e28b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.24.1
|