Skip to main content

A generic api for oauth2

Project description

PyPi Build Status Codecov Requirements Status PyUP Python versions License

adactivexlsx2html

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

ported from xlsx2html with some changes, like bulma on css, and adding carousel on the rows.

Install

pip install adactivexlsx2html

Usage

Simple usage

from adactivexlsx2html import xlsx2html

out_stream = xlsx2html('path/to/example.xlsx')
out_stream.seek(0)
print(out_stream.read())

or pass filepath

from adactivexlsx2html import xlsx2html

xlsx2html('path/to/example.xlsx', 'path/to/output.html')

or use file like objects

import io
from adactivexlsx2html 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 adactivexlsx2html path/to/example.xlsx path/to/output.html

Project details


Download files

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

Source Distribution

adactivexlsx2html-0.0.31.tar.gz (16.0 kB view hashes)

Uploaded Source

Built Distribution

adactivexlsx2html-0.0.31-py2.py3-none-any.whl (17.8 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page