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').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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5edf06ee2ddcfb82904687639950234d674dbebd0eaedc336099261e5d7fcd6 |
|
MD5 | 7c87b474b0d9ea3829a47d723f60cd63 |
|
BLAKE2b-256 | ddc6fa63de282642ead2320eed4a70df74f8f0ed4273a830d0af04529415cb75 |
Close
Hashes for django_excel_storage-2.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7cc47b734c22ba665db058bc292754515d6ad24dba3428b8d81f91735c8a6e1e |
|
MD5 | 4198ec62cb8d7948e4791b8a95cb4649 |
|
BLAKE2b-256 | c332482b89e2c8c120a57a913deb896cc4fe787dbc2ff1781d99eec4c4774ecf |