Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-excel-storage-1.0.0.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

django_excel_storage-1.0.0-py2.py3-none-any.whl (5.5 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page