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()
or:
from django_excel_storage import ExcelStorage def excelfunc(): data = [ ['Column 1', 'Column 2'], [1, [2, 3]], [3, 4] ] fpath = ExcelStorage(data, 'my_data', font='name SimSum', row_merge=True).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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ac84de9b3cd496561d3c031e3a09249f802a249dcbfe98a771c0145da0fa810 |
|
MD5 | bb5e0e89817c946055a3dff68d8028bb |
|
BLAKE2b-256 | 7d75f0cc218d7ca2adcdc00eed61ebdc69d5da2cd16dc18cf403610ab2b08839 |
Close
Hashes for django_excel_storage-2.0.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbd1c183f62b708fd169d7401e223a1b447970ff98e519e3e7212bdb2e2627c1 |
|
MD5 | d43f88e89f969c473d46dbce25a00a88 |
|
BLAKE2b-256 | 18610c6821b97372f46158a72e0743e83acbf902f32e665ebe45530c923894dd |