Skip to main content

Create xlsx-tables from html-tables

Project description


Create xlsx-tables from html-tables


Given html table str

When render html to xlsx

Then result xlsx has table values

from jinja2xlsx import render_xlsx
from openpyxl import Workbook

html_str = """<!DOCTYPE html>
<html lang="en">
        <meta charset="UTF-8">
        <title>Simple table</title>

workbook: Workbook = render_xlsx(html_str)
assert tuple( == ((1, 2), (3, 4))


pip install jinja2xlsx

For images support:

pip install jinja2xlsx[pil]


Install dependencies:

poetry install

For images support:

poetry install -E pil

Run tests and linting:

pre-commit run -a

Install pre-commit hooks:

pre-commit install


Publish to PyPI

poetry publish --build

Project details

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
jinja2xlsx-0.3.0-py3-none-any.whl (20.2 kB) Copy SHA256 hash SHA256 Wheel py3
jinja2xlsx-0.3.0.tar.gz (6.8 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page