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.4.tar.gz
(19.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file xlsx2html-0.6.4.tar.gz.
File metadata
- Download URL: xlsx2html-0.6.4.tar.gz
- Upload date:
- Size: 19.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
010cf660f9c00eb00cc58b6c7a7e7c3394d3a2fd16965cdfdda6b9ad004e947f
|
|
| MD5 |
4ff9e37f33f9d8f003c6d4c961c02050
|
|
| BLAKE2b-256 |
5bda9fec19508ef8213c20b585cf2bb483df08a7b7e6b60c05380023937f9909
|
File details
Details for the file xlsx2html-0.6.4-py2.py3-none-any.whl.
File metadata
- Download URL: xlsx2html-0.6.4-py2.py3-none-any.whl
- Upload date:
- Size: 17.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7df35d09ee77752143c37de00606cf816ea8887d490562a2c8efdc448c51af4b
|
|
| MD5 |
907e941d5c62c97e945f3a1dcc6375b6
|
|
| BLAKE2b-256 |
3713877688876510de733ac97537caa7bad382a34340931a2933c981f6a71a34
|