Skip to main content

Tablichka

Tablichka converts HTML into XLSX.

Install

pip install tablichka
uv add tablichka

Example

from pathlib import Path

from openpyxl.styles import Border, Font, PatternFill, Side

from tablichka import Style, convert

line = Side(style="thin", color="808080")
border = Border(left=line, right=line, top=line, bottom=line)

styles = {
    "title": Style(font=Font(name="Times New Roman", size=18, bold=True)),
    "header": Style(
        font=Font(name="Times New Roman", size=12, bold=True),
        fill=PatternFill(fill_type="solid", fgColor="D9EAF7"),
    ),
    "bordered": Style(border=border),
}

html = """
<h1 class="title">Sales report</h1>
<p>October 2026</p>
<table>
    <tr>
        <th class="bordered header" rowspan="2">Product</th>
        <th class="bordered header" colspan="2">Sales</th>
    </tr>
    <tr>
        <th class="bordered header">Quantity</th>
        <th class="bordered header">Price</th>
    </tr>
    <tr>
        <td class="bordered">Monitor</td>
        <td class="bordered">5</td>
        <td class="bordered">15000</td>
    </tr>
    <tr>
        <td class="bordered">Keyboard</td>
        <td class="bordered">10</td>
        <td class="bordered">2000</td>
    </tr>
</table>
"""

if __name__ == "__main__":
    project = Path(__file__).resolve().parents[1]
    convert(html, project / "test_html.xlsx", styles=styles)

Supported HTML tags

  • h1 headings and p paragraphs.
  • Tables with tr rows and th or td cells, including thead, tbody, and tfoot sections.
  • Cell merges with positive integer rowspan and colspan values.

Metadata

Release files for tablichka 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tablichka 0.1.1
File Size Uploaded Provenance Actions
tablichka-0.1.1.tar.gz 5.4 kB Without provenance Details for tablichka-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tablichka 0.1.1
File Interpreter ABI Platform Actions
tablichka-0.1.1-py3-none-any.whl Python 3 none any Details for tablichka-0.1.1-py3-none-any.whl

Total release size: 13.5 kB

Release files / tablichka-0.1.1.tar.gz

Download URL tablichka-0.1.1.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
52636435e97ab72f733ffc153922ecdb792550a3536eb2cf22fc042604935e1a
BLAKE2b-256 checksum
How to use checksums
b4b09879c34d71f23dd835bef3621f9b9e2a16ef63f98448b393e51701eed16a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.15 {"installer":{"name":"uv","version":"0.12.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / tablichka-0.1.1-py3-none-any.whl

Download URL tablichka-0.1.1-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
35f16aa6c478a947d0f00547e0f1e5dd4ff0fec6ee51415841b6880444c70836
BLAKE2b-256 checksum
How to use checksums
1a14cc887398a961674a6d68ba4ccdd0889649b5ace8e0c5faeee6ea1981f5a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.15 {"installer":{"name":"uv","version":"0.12.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for tablichka 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page