Easily create XLSX documents with Django
Project description
This is a wrapper for openpyxl which makes creating XLSX documents with the purpose of exporting data less boring:
from xlsxdocument import XLSXDocument def xlsx_export(request): some_data = Bla.objects.all() xlsx = XLSXDocument() xlsx.table_from_queryset(Bla.objects.all()) return xlsx.to_response('bla.xlsx')
You can also easily add the facility to export rows to Django’s administration interface:
from django.contrib import admin from django.utils.translation import ugettext_lazy as _ from xlsxdocument import export_selected from app import models class AttendanceAdmin(admin.ModelAdmin): list_filter = ('event',) actions = (export_selected,) admin.site.register(models.Event) admin.site.register(models.Attendance, AttendanceAdmin)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
xlsxdocument-1.0.0.tar.gz
(2.9 kB
view details)
Built Distribution
File details
Details for the file xlsxdocument-1.0.0.tar.gz
.
File metadata
- Download URL: xlsxdocument-1.0.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f39abc197247fd6bdabb2622161c82d2c8092c4e9ebe4715b67d569d69398319 |
|
MD5 | 9d2f1884da4a3292c496a6e6b8999a73 |
|
BLAKE2b-256 | ccdf06f48ffe0c18d897c09c0c50697a415c9b4cba28c654cfa167fc290aa950 |
File details
Details for the file xlsxdocument-1.0.0-py2.py3-none-any.whl
.
File metadata
- Download URL: xlsxdocument-1.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc0981d52d67b155a7cef3a91c04efcf34076ea7d0fec6dae4fd79217b45870e |
|
MD5 | bdf2b49488c977e9264e67c336cfa865 |
|
BLAKE2b-256 | 1322a2622c771bc1cae1d6d54679bbf90dddf4d3de12fb2dba6c8a79abd2f9b0 |