Django Excel Storage
Project description
Installation
pip install django-excel-storage
Usage
from excel_storage import ExcelStorage def excelfunc(): objs = SomeModel.objects.all() fpath = ExcelStorage(data).save()
or:
from excel_storage import ExcelStorage def excelfunc(): data = [ ['Column 1', 'Column 2'], [1, 2], [3, 4] ] fpath = ExcelStorage(data, 'my_data', font='name SimSum')
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-1.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0011cbfffb1bbd5b438251b20934c237c9829f3c4aae4b01a8c7e8e558b8d426 |
|
MD5 | 6b6734666e433a1bf935e08d24dc2f3b |
|
BLAKE2b-256 | c7037d6b3045fe1f2bc19d8a3efbab044f1c6a8751ebf1a437213bc57b92fe31 |
Close
Hashes for django_excel_storage-1.0.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8a459fa8d3b260ffb3d7e257bc56509a92897a1daeda4e012fe5e999c675ae8 |
|
MD5 | 05c3a7c705c25ab12fe097b83b50cfb4 |
|
BLAKE2b-256 | bd9c88d97b71f7e16310b586e34d6d1269331d9cdf42c7ed2997461cd1281500 |