Simple CSV export for Django
Project description
Django CSV Exporter
Simple CSV export for Django.
Installation
pip install django-csv-exporter
Usage
Basic Export
from django_csv_exporter import CSVExporter
exporter = CSVExporter(headers=['ID', 'Name'])
exporter.add_row([1, 'Alice'])
exporter.add_row([2, 'Bob'])
return exporter.export()
Streaming Export
from django_csv_exporter import StreamingCSVExporter
exporter = StreamingCSVExporter(
headers=['ID', 'Name'],
filename='users',
serializer=lambda u: [u.id, u.name],
iterator=User.objects.all().iterator()
)
return exporter.export()
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
easy_django_csv-0.1.0.tar.gz
(2.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file easy_django_csv-0.1.0.tar.gz.
File metadata
- Download URL: easy_django_csv-0.1.0.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
002c5d6c2f5b6d3af1094e8282c8d3a06915989a7f2a26f393099c9e69b6ae0a
|
|
| MD5 |
2ed1dc2ef73ecf93904e74a88240f30d
|
|
| BLAKE2b-256 |
52ea7b20a66407c54b64c2860a06823c9af14faa6f5fb013880ffb920866024b
|
File details
Details for the file easy_django_csv-0.1.0-py3-none-any.whl.
File metadata
- Download URL: easy_django_csv-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6cf88ea65d6b78bfdccac15b558acc613381c680154b9952a632c1a9d4c5cc8
|
|
| MD5 |
547f3ed7a1d9ac5bfd8a2a877306689b
|
|
| BLAKE2b-256 |
9afb860492a5801755412e2b9d33b913f854f57057be1901f684d0ea14ffd7a1
|