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 |
Normal |
|
GB18030 |
Normal |
Normal |
Messy |
|
UTF8 + BOM_UTF8 |
Normal |
Messy |
Normal |
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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1f5093390e8d35017176082c0dc1d7e407889a9769a6091bc3a1183e65cef8a |
|
MD5 | 1236333628e30635d718c82acf607f6c |
|
BLAKE2b-256 | 1c1fa78c8bae6ed9ba5298a081d47e3f05548f5bfa1028700ed444a4f2134aba |
Close
Hashes for django_excel_storage-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1fa173321530342bde7da65cc3e467755f2ee3538f840d4b69641d4b2c19e7c |
|
MD5 | 6883c17418a6f472dec7021f43a71b7f |
|
BLAKE2b-256 | 61e466ed118e917bb7eb935b6b29ea481e4cc5f4fb0dc4999c13f65445b51c55 |