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.9+ and exposes the Rust converter through PyO3. CPython wheels use the stable abi3 ABI, while version-specific wheels are published for PyPy 3.11 and 3.12.

When building locally with PyPy, disable the CPython-only abi3 feature:

maturin build --release --no-default-features --features extension-module,asm-tl

Metadata

Release files for fast-h2m 0.4.5

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.5
File Size Uploaded
fast_h2m-0.4.5.tar.gz 343.3 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for fast-h2m 0.4.5
File
fast_h2m-0.4.5-pp312-pypy312_pp80-win_amd64.whl PyPy 3.12 PyPy 3.12 8.0 Windows x86-64 Details
fast_h2m-0.4.5-pp312-pypy312_pp80-manylinux_2_28_x86_64.whl PyPy 3.12 PyPy 3.12 8.0 Linux glibc 2.28+ x86-64 Details
fast_h2m-0.4.5-pp312-pypy312_pp80-manylinux_2_28_aarch64.whl PyPy 3.12 PyPy 3.12 8.0 Linux glibc 2.28+ ARM64 Details
fast_h2m-0.4.5-pp312-pypy312_pp80-macosx_11_0_arm64.whl PyPy 3.12 PyPy 3.12 8.0 macOS 11.0+ ARM64 Details
fast_h2m-0.4.5-pp311-pypy311_pp80-win_amd64.whl PyPy 3.11 PyPy 3.11 8.0 Windows x86-64 Details
fast_h2m-0.4.5-pp311-pypy311_pp80-manylinux_2_28_x86_64.whl PyPy 3.11 PyPy 3.11 8.0 Linux glibc 2.28+ x86-64 Details
fast_h2m-0.4.5-pp311-pypy311_pp80-manylinux_2_28_aarch64.whl PyPy 3.11 PyPy 3.11 8.0 Linux glibc 2.28+ ARM64 Details
fast_h2m-0.4.5-pp311-pypy311_pp80-macosx_11_0_arm64.whl PyPy 3.11 PyPy 3.11 8.0 macOS 11.0+ ARM64 Details
fast_h2m-0.4.5-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details
fast_h2m-0.4.5-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 abi3 Linux glibc 2.17+ x86-64 Details
fast_h2m-0.4.5-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.9 abi3 Linux glibc 2.17+ ARM64 Details
fast_h2m-0.4.5-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details

Total release size: 13.6 MB

Release files / fast_h2m-0.4.5.tar.gz

Download URL fast_h2m-0.4.5.tar.gz
Size 343.3 kB
Tags Source
SHA-256 checksum
How to use checksums
de075f0063eda59cc38f566e3e4f8fd7f82ff1c818a0fc744603b140b096701f
BLAKE2b-256 checksum
How to use checksums
0accd57836a366f7b22db9069da732de658039df183f778de856a0fd547197cd
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 Sep 28, 2026.

Transparency log

Release files / fast_h2m-0.4.5-pp312-pypy312_pp80-win_amd64.whl

Download URL fast_h2m-0.4.5-pp312-pypy312_pp80-win_amd64.whl
Size 1.1 MB
Tags PyPy 3.12 PyPy 3.12 8.0 Windows x86-64
SHA-256 checksum
How to use checksums
1ba5d575714efe92ff6b9a3f6effd243b6b179171339f72f4195002e6936ebe5
BLAKE2b-256 checksum
How to use checksums
347035534cb357c5e111f1263383094f0cbe8fcd6a7a5277f9f74e1880bd553b
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 Sep 28, 2026.

Transparency log

Release files / fast_h2m-0.4.5-pp312-pypy312_pp80-manylinux_2_28_x86_64.whl

Download URL fast_h2m-0.4.5-pp312-pypy312_pp80-manylinux_2_28_x86_64.whl
Size 1.2 MB
Tags Linux glibc 2.28+ x86-64 PyPy 3.12 PyPy 3.12 8.0
SHA-256 checksum
How to use checksums
1e77a1fad6c2de3d9e287c888c580b7489973d901130102156627d0bbb934fd0
BLAKE2b-256 checksum
How to use checksums
567b3a87e82416825b7992ccf03ba4b537ac42352b2d0bca1b13addd6c179198
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 Sep 28, 2026.

Transparency log

Release files / fast_h2m-0.4.5-pp312-pypy312_pp80-manylinux_2_28_aarch64.whl

Download URL fast_h2m-0.4.5-pp312-pypy312_pp80-manylinux_2_28_aarch64.whl
Size 1.1 MB
Tags Linux glibc 2.28+ ARM64 PyPy 3.12 PyPy 3.12 8.0
SHA-256 checksum
How to use checksums
290943d563de80aa737265b95c71217d56aae31b9a50cba007e86d7a8ed1a1f3
BLAKE2b-256 checksum
How to use checksums
a0aad6b591bc2165b261c3bde29b77accae5c5b2d1b1d3994e0eef472ec75959
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 Sep 28, 2026.

Transparency log

Release files / fast_h2m-0.4.5-pp312-pypy312_pp80-macosx_11_0_arm64.whl

Download URL fast_h2m-0.4.5-pp312-pypy312_pp80-macosx_11_0_arm64.whl
Size 938.6 kB
Tags PyPy 3.12 PyPy 3.12 8.0 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
24b6fe7b3ebd4a16199c3004f635aa692718a4a683a5fd87f1742fd100a52696
BLAKE2b-256 checksum
How to use checksums
9fffda85f5df48d9014a5330977719b74359db4aec6f356c8169575c101897ce
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 Sep 28, 2026.

Transparency log

Release files / fast_h2m-0.4.5-pp311-pypy311_pp80-win_amd64.whl

Download URL fast_h2m-0.4.5-pp311-pypy311_pp80-win_amd64.whl
Size 1.1 MB
Tags PyPy 3.11 PyPy 3.11 8.0 Windows x86-64
SHA-256 checksum
How to use checksums
a92c0d695b85753ffd97f756624a330147344e9ba54e71d56ae8bd9238d62122
BLAKE2b-256 checksum
How to use checksums
ad7de7838df805d5803df951649e9df4fab4a54dfbebbfa7e2b2a502b41a9259
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 Sep 28, 2026.

Transparency log

Release files / fast_h2m-0.4.5-pp311-pypy311_pp80-manylinux_2_28_x86_64.whl

Download URL fast_h2m-0.4.5-pp311-pypy311_pp80-manylinux_2_28_x86_64.whl
Size 1.2 MB
Tags Linux glibc 2.28+ x86-64 PyPy 3.11 PyPy 3.11 8.0
SHA-256 checksum
How to use checksums
1c0a8510a2c9422917fcb0a97ee9701c7436b166193b47e717a5b4a1cf85b4e2
BLAKE2b-256 checksum
How to use checksums
c2cce96922cd7b9648ea247e46ed097a4f7f9caebb0cdff9beaf70c4fe6416d8
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 Sep 28, 2026.

Transparency log

Release files / fast_h2m-0.4.5-pp311-pypy311_pp80-manylinux_2_28_aarch64.whl

Download URL fast_h2m-0.4.5-pp311-pypy311_pp80-manylinux_2_28_aarch64.whl
Size 1.1 MB
Tags Linux glibc 2.28+ ARM64 PyPy 3.11 PyPy 3.11 8.0
SHA-256 checksum
How to use checksums
6a6846534cd237e3e6465f5b585646b5156ba135a593769810bc3cefcc3181d4
BLAKE2b-256 checksum
How to use checksums
ae6167a555a35bba077be91b1a7d4591856862d4159cb1ebd7ab5c106dc92215
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 Sep 28, 2026.

Transparency log

Release files / fast_h2m-0.4.5-pp311-pypy311_pp80-macosx_11_0_arm64.whl

Download URL fast_h2m-0.4.5-pp311-pypy311_pp80-macosx_11_0_arm64.whl
Size 940.8 kB
Tags PyPy 3.11 PyPy 3.11 8.0 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
76d7d1e6e9d2301075f7cc18330adf1b66348798cb3f611f63a01528c8eb90f0
BLAKE2b-256 checksum
How to use checksums
d66bf0fe2d1006a5ae33046c272e40cd7545564cb7b9ffae737864b22ecf01ec
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 Sep 28, 2026.

Transparency log

Release files / fast_h2m-0.4.5-cp39-abi3-win_amd64.whl

Download URL fast_h2m-0.4.5-cp39-abi3-win_amd64.whl
Size 1.1 MB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
c25b94ff56f03ab794e9895db86c1cf9f772974d7c30804b56542272367ace3b
BLAKE2b-256 checksum
How to use checksums
8bbd359dee88a1b3eb80ba2565bef47ad43f220528b1557d06fb1a46939d164b
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 Sep 28, 2026.

Transparency log

Release files / fast_h2m-0.4.5-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL fast_h2m-0.4.5-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.2 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
c71cd7fabea82c02961146bbdf273f9706a652e96f06c5098375ba0e53704f5e
BLAKE2b-256 checksum
How to use checksums
3d64d023b9aa910678624075a701a9928716d9464c62105b8ad792716640f55d
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 Sep 28, 2026.

Transparency log

Release files / fast_h2m-0.4.5-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL fast_h2m-0.4.5-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 1.2 MB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
2be6ee703f9e5f8320ab58be12b750162b1dc3a3852d9754c9072c271f9935b2
BLAKE2b-256 checksum
How to use checksums
bee45ba65faea6cd19f54b3929b823e25310969cee89fb805e3f1a7ab2b9126f
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 Sep 28, 2026.

Transparency log

Release files / fast_h2m-0.4.5-cp39-abi3-macosx_11_0_arm64.whl

Download URL fast_h2m-0.4.5-cp39-abi3-macosx_11_0_arm64.whl
Size 947.0 kB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
98d155d56444e3fc29802802e876bd43f855cfa9e3f1aa4d215203c904d5a626
BLAKE2b-256 checksum
How to use checksums
e1223ffc316110349512278b5a4c318f167759a036979f321ae53522a19ae332
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 Sep 28, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.4.5 This release

13 release files

0.4.4

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