A generic api for oauth2
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
Contributors
pip install -r requirements.txt
pytest # run tests
tox # run test matrix
Shift version
python setup.py bumpversion
publish
python setup.py publish
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.2.1.tar.gz
(12.8 kB
view hashes)
Built Distribution
Close
Hashes for xlsx2html-0.2.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c8c4117c4377aaf2c923d4af3cb9a6daf77b5c0dbacf328cd49e37c3d09a61a |
|
MD5 | aa1e1a70025c0d92b7e6ae1d7f4cce9b |
|
BLAKE2b-256 | feb74200bf2be0fb1580269b0c43db3967decfdfb71f3bdd6b7b8f4ea175ae99 |