Skip to main content

onetable

Once defined, multiple ways to export table.

Install

 pip install onetable

Useage

from onetable import DefualtTable, HtmlRender, XlsRender, XlsxRender, PdfRender, CSVRender

table = DefualtTable({'fontSize': 10, 'color': 'red'})
table.setStyles(
    ('x', {'fontSize': 14}),
    ('red', {'color': 'red'}),
    ('title', {'color': 'black', 'font': u'宋体', 'fontSize': 16, 'align': 'center'})
)
table.writeNextRowCols([('Title1', 3, 'title')])
table.pushStatus()
table.popStatus()
table.writeNextRowCols([1, 2, 3])
table.writeNextRowCols([3, 2, 1, 1], style='red')
with open('test.xls', 'wb') as out:
    XlsRender().save(tab=table, out=out)

CHANGES

0.0.1

  • first version

0.0.2

  • add usage

0.0.5

  • add background for xlsx

Download files

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

Source Distribution

onetable-0.0.5.tar.gz (7.9 kB view details)

Uploaded Source

File details

Details for the file onetable-0.0.5.tar.gz.

File metadata

  • Download URL: onetable-0.0.5.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.8.2 requests/2.27.1 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/2.7.16

File hashes

Hashes for onetable-0.0.5.tar.gz
Algorithm Hash digest
SHA256 b979cd0a6e982945ff9ae8c9af6a2f0adceff920a8e8da7802686680e87e8a14
MD5 e4e8c9643bd0b42befe47822b2c546fc
BLAKE2b-256 05d8fc9e670c7bcc6aece43b7f9b61d619381ec7dff4b1f4ea330ae5392d96cf

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.5 This release

1 file

0.0.4

1 file

0.0.2

1 file

0.0.1

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page