Django Excel Storage
Project description
Installation
pip install django-excel-storage
Usage
from django_excel_storage import ExcelStorage def excelfunc(): objs = SomeModel.objects.all() fpath = ExcelStorage(data).save()
or:
from django_excel_storage import ExcelStorage def excelfunc(): data = [ ['Column 1', 'Column 2'], [1, 2], [3, 4] ] fpath = ExcelStorage(data, 'my_data', font='name SimSum').save()
Params
- font=’name SimSum’
Set Font as SimSum(宋体)
- force_csv=True
CSV Format? True for Yes, False for No, Default is False
CSV
Win Excel 2013 |
Mac Excel 2011 |
Mac Excel 2016 |
Mac Numbers |
|
---|---|---|---|---|
UTF8 |
Messy |
Messy |
Messy |
Normal |
GB18030 |
Normal |
Normal |
Normal |
Messy |
UTF8 + BOM_UTF8 |
Normal |
Messy |
Normal |
Normal |
UTF16LE + BOM |
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
Built Distribution
Close
Hashes for django-excel-storage-2.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed5f2a58c553622650413794f1d974c2a24c923be39ab6729ddfa7c4c7c24252 |
|
MD5 | 161dfc92d3c6ac76427c226ba7c91d2c |
|
BLAKE2b-256 | 7d3fa45ae36a2268ec007d49323afda0637aade3ef8194d47c0b7f832abac8fe |
Close
Hashes for django_excel_storage-2.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f9e86c33a56d97c46bb16ff1679389313ad7dbce4a58f2d927c19d67e077f0d |
|
MD5 | 29135abffe4dcdc2a898481bb6d1362e |
|
BLAKE2b-256 | f8f28730d1d8957b6b672df9953de8d2b8a12152cffa7d61c695082d879cdeb3 |