Skip to main content

A generic api for oauth2

Project description

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

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for xlsx2html, version 0.1.11
Filename, size File type Python version Upload date Hashes
Filename, size xlsx2html-0.1.11-py2.py3-none-any.whl (9.1 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size xlsx2html-0.1.11.tar.gz (9.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page