You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP

xlsx2html

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xlsx2html

A simple export from xlsx format to html tables with keep cell formatting

0.6.2
Maintainers
1

PyPi Build Status Codecov Requirements Status PyUP Python versions License

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

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts