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.0.tar.gz
(12.8 kB
view details)
File details
Details for the file xlsx2html-0.2.0.tar.gz
.
File metadata
- Download URL: xlsx2html-0.2.0.tar.gz
- Upload date:
- Size: 12.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.0.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89343d062fe0c0016107d9b178e85d2dc7d0362dc8eefefc1a35c9ff742f47d2 |
|
MD5 | 41858685e9d3a0819f359fbcf6972d77 |
|
BLAKE2b-256 | 9c01762947a0d0ced23f8342a54ac586d2d582043d764d58ed185de787ee16c3 |