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
Metadata
Release files for onetable 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| onetable-0.0.5.tar.gz | 7.9 kB | Without provenance | Details |
Release files / onetable-0.0.5.tar.gz
| Download URL | onetable-0.0.5.tar.gz |
|---|---|
| Size | 7.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b979cd0a6e982945ff9ae8c9af6a2f0adceff920a8e8da7802686680e87e8a14
|
|
BLAKE2b-256 checksum How to use checksums |
05d8fc9e670c7bcc6aece43b7f9b61d619381ec7dff4b1f4ea330ae5392d96cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for onetable 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.