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.6.1.tar.gz
(17.9 kB
view details)
Built Distribution
File details
Details for the file xlsx2html-0.6.1.tar.gz
.
File metadata
- Download URL: xlsx2html-0.6.1.tar.gz
- Upload date:
- Size: 17.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6572bf482200a93b7d27878b53d36b197a3374b52ef1b8d05acbf0f708c0404d |
|
MD5 | 6fa86680177241a6e5b11259a865f89d |
|
BLAKE2b-256 | 47322c1bfa2d54d6b6264ac04521752553adae2a3f17ad3db80f54672b864b6b |
File details
Details for the file xlsx2html-0.6.1-py2.py3-none-any.whl
.
File metadata
- Download URL: xlsx2html-0.6.1-py2.py3-none-any.whl
- Upload date:
- Size: 17.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05ccd662b82de3c907bb88e00a0617276a41b705b0e141829ffdeb419e0706a1 |
|
MD5 | ccded4a5962fe1b63ecfeba3535c2fa2 |
|
BLAKE2b-256 | a07df3aeff9bd009dbc5bfc6c96732af8423c3938f007b5799281b3b44d7030c |