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
Metadata
Release files for xlsx2html-bugfix 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| xlsx2html_bugfix-0.0.1.tar.gz | 17.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| xlsx2html_bugfix-0.0.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 34.7 kB
Release files / xlsx2html_bugfix-0.0.1.tar.gz
| Download URL | xlsx2html_bugfix-0.0.1.tar.gz |
|---|---|
| Size | 17.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
045b87b16311814da4814275b384d2ea2bc4c3c0c3606171e3f4a46689713c3b
|
|
BLAKE2b-256 checksum How to use checksums |
273d9588155700c03022cf13dee91b1b579c8531721f93fc2cd75eb8e758e2ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.17
|
Release files / xlsx2html_bugfix-0.0.1-py2.py3-none-any.whl
| Download URL | xlsx2html_bugfix-0.0.1-py2.py3-none-any.whl |
|---|---|
| Size | 17.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
73d753c09bafb57b377c110d682b9504170bac852c187b4c5a6910c33beb4611
|
|
BLAKE2b-256 checksum How to use checksums |
cb6452ce5ac30178940a73776efaa09ae4dd42047713892e68301e55dc3a9cf7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.17
|