Skip to main content

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

Project description

PyPi ci Codecov 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

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

xlsx2html-0.6.3.tar.gz (19.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xlsx2html-0.6.3-py2.py3-none-any.whl (17.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file xlsx2html-0.6.3.tar.gz.

File metadata

  • Download URL: xlsx2html-0.6.3.tar.gz
  • Upload date:
  • Size: 19.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for xlsx2html-0.6.3.tar.gz
Algorithm Hash digest
SHA256 92ffad81144365afa152a6299655e37af80a2abbbddbc98f46c248c26cd38371
MD5 76edf80ea15f3dbd13717b098a48f92c
BLAKE2b-256 c3ed05988143a959eb6c3ad908a55d5e8f3de9093b356a8ccede1194682ad86c

See more details on using hashes here.

File details

Details for the file xlsx2html-0.6.3-py2.py3-none-any.whl.

File metadata

  • Download URL: xlsx2html-0.6.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 17.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for xlsx2html-0.6.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c5af39bc1351c8d79e5129465a340c2ec2611d97cb1ed289742faf3069840fac
MD5 f2ce76d399cbfa02fc9dbd7f51917cf3
BLAKE2b-256 9e03de4595728241aad641aa2a7ef438ec92c3c14f8e177426776c28c710e3d0

See more details on using hashes here.

Supported by

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