Skip to main content

fast-h2m

Python bindings for fast_h2m, a high-performance HTML to Markdown converter.

import fast_h2m

markdown = fast_h2m.convert_to_markdown("<h1>Hello</h1><p>World</p>")
result = fast_h2m.convert("<h1>Hello</h1>", {"include_document_structure": True})

For throughput-oriented conversion of common HTML, opt into the lean DOM path:

markdown = fast_h2m.convert_to_markdown(
    html,
    {"tier_strategy": "fast_dom"},
)

fast_dom skips the richer metadata, structure, visitor, selector, and repair machinery used by the full converter.

On supported Linux and Windows wheels, choose the parser backend at runtime:

markdown = fast_h2m.convert_to_markdown(
    html,
    {"tier_strategy": "tier2", "parser_backend": "asm_tl"},
)

rustedbytes_tl remains the default. Selecting asm_tl in a build that does not include or support it raises a configuration error.

For mdream-backed lean conversion:

markdown = fast_h2m.convert_to_markdown(
    html,
    {"tier_strategy": "mdream"},
)

For chunked streaming conversion:

stream = fast_h2m.MarkdownStreamProcessor()
markdown = ""
markdown += stream.process_chunk("<h1>Hello</h1>")
markdown += stream.process_chunk("<p>World</p>")
markdown += stream.finish()

The package targets Python 3.8+ and exposes the Rust converter through PyO3.

Metadata

Release files for fast-h2m 0.4.4

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

Source distribution (sdist)

Source distribution for fast-h2m 0.4.4
File Size Uploaded
fast_h2m-0.4.4.tar.gz 343.6 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for fast-h2m 0.4.4
File
fast_h2m-0.4.4-cp38-abi3-win_amd64.whl CPython 3.8 abi3 Windows x86-64 Details
fast_h2m-0.4.4-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.8 abi3 Linux glibc 2.17+ x86-64 Details
fast_h2m-0.4.4-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.8 abi3 Linux glibc 2.17+ ARM64 Details
fast_h2m-0.4.4-cp38-abi3-macosx_11_0_arm64.whl CPython 3.8 abi3 macOS 11.0+ ARM64 Details

Total release size: 4.7 MB

Release files / fast_h2m-0.4.4.tar.gz

Download URL fast_h2m-0.4.4.tar.gz
Size 343.6 kB
Tags Source
SHA-256 checksum
How to use checksums
7e735e068b5b6bca8f0f28b2d81a3431ba0ab33c2f05a5b084849943c32ba107
BLAKE2b-256 checksum
How to use checksums
8907c1881aac25a783cf09fd2655e815c337e529337ce5bdec87e7fed5c991b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 29, 2026.

Transparency log

Release files / fast_h2m-0.4.4-cp38-abi3-win_amd64.whl

Download URL fast_h2m-0.4.4-cp38-abi3-win_amd64.whl
Size 1.1 MB
Tags CPython 3.8 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
12208eebc57f951c05b26566577a7310026e745f7810ee3652fba64c468eb2e8
BLAKE2b-256 checksum
How to use checksums
ebaedf0da87465c9a2c67a6a189b55952df78679641253d6a43b0f0af8b29ccd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 29, 2026.

Transparency log

Release files / fast_h2m-0.4.4-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL fast_h2m-0.4.4-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.2 MB
Tags CPython 3.8 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
8e30c50d9b5b225444f35163567f4a181d8be66de12f890068ea9381845d8600
BLAKE2b-256 checksum
How to use checksums
3fcaf8cca337ddaf04347ae446e056c9eade05b6cbf7dea8541b03513248fe32
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 29, 2026.

Transparency log

Release files / fast_h2m-0.4.4-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL fast_h2m-0.4.4-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 1.1 MB
Tags CPython 3.8 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
12a7b81545bbf1cc6e6a419dc7dc2455cdc7d81e21ae86dd13ecf48437b42799
BLAKE2b-256 checksum
How to use checksums
9637af39210775d3b42962bc8839361f4fc70a9827351173c649e055b8713823
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 29, 2026.

Transparency log

Release files / fast_h2m-0.4.4-cp38-abi3-macosx_11_0_arm64.whl

Download URL fast_h2m-0.4.4-cp38-abi3-macosx_11_0_arm64.whl
Size 931.3 kB
Tags CPython 3.8 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
db080d9059137df966dc4511e4cd39a63c00b2097528122eb9e142a0c094da7a
BLAKE2b-256 checksum
How to use checksums
03303fc65747fc7b68e707a21ed013010e42cf17286fb492cce9fc2f977b013e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 29, 2026.

Transparency log

Release history Release notifications | RSS feed

0.4.5

13 release files

This release

0.4.4 This release

5 release files

0.4.2

5 release files

0.4.1

5 release files

0.4.0

5 release files

0.3.1

5 release files

0.3.0

5 release files

0.2.0

5 release files

0.1.0

5 release files

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