A simple export from xlsx format to html tables with keep cell formatting
Project description
xlsx2html
A simple export from xlsx format to html tables with keep cell formatting
Install
pip install xlsx2html
Usage
Simple usage
from xlsx2html import xlsx2html
out_stream = xlsx2html('path/to/example.xlsx')
out_stream.seek(0)
print(out_stream.read())
or pass filepath
from xlsx2html import xlsx2html
xlsx2html('path/to/example.xlsx', 'path/to/output.html')
or use file like objects
import io
from xlsx2html import xlsx2html
# must be binary mode
xlsx_file = open('path/to/example.xlsx', 'rb')
out_file = io.StringIO()
xlsx2html(xlsx_file, out_file, locale='en')
out_file.seek(0)
result_html = out_file.read()
or from shell
python -m xlsx2html path/to/example.xlsx path/to/output.html
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
xlsx2html-0.4.4.tar.gz
(17.0 kB
view hashes)
Built Distribution
Close
Hashes for xlsx2html-0.4.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa0445e30c7c70afe8c7838f543d8746af1225366e9a4e6a1579316cb8979d36 |
|
MD5 | 0a3d4d791f7a8dc48a68e97f701769c4 |
|
BLAKE2b-256 | 3d924d5c60c1439d57e49dd75d475c1548a7182110e1d3920ad115e8b0d22c65 |