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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django-excel-storage-1.0.3.tar.gz.
File metadata
- Download URL: django-excel-storage-1.0.3.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0011cbfffb1bbd5b438251b20934c237c9829f3c4aae4b01a8c7e8e558b8d426
|
|
| MD5 |
6b6734666e433a1bf935e08d24dc2f3b
|
|
| BLAKE2b-256 |
c7037d6b3045fe1f2bc19d8a3efbab044f1c6a8751ebf1a437213bc57b92fe31
|
File details
Details for the file django_excel_storage-1.0.3-py2.py3-none-any.whl.
File metadata
- Download URL: django_excel_storage-1.0.3-py2.py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8a459fa8d3b260ffb3d7e257bc56509a92897a1daeda4e012fe5e999c675ae8
|
|
| MD5 |
05c3a7c705c25ab12fe097b83b50cfb4
|
|
| BLAKE2b-256 |
bd9c88d97b71f7e16310b586e34d6d1269331d9cdf42c7ed2997461cd1281500
|