Skip to main content

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

Project description

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.

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

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

fast_h2m-0.3.0.tar.gz (335.8 kB view details)

Uploaded Source

Built Distributions

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

fast_h2m-0.3.0-cp38-abi3-win_amd64.whl (805.6 kB view details)

Uploaded CPython 3.8+Windows x86-64

fast_h2m-0.3.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (902.9 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ x86-64

fast_h2m-0.3.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (860.8 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

fast_h2m-0.3.0-cp38-abi3-macosx_11_0_arm64.whl (808.8 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

File details

Details for the file fast_h2m-0.3.0.tar.gz.

File metadata

  • Download URL: fast_h2m-0.3.0.tar.gz
  • Upload date:
  • Size: 335.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for fast_h2m-0.3.0.tar.gz
Algorithm Hash digest
SHA256 7a98fde3d0237ec9daf27a571ecda0c734883fd6a40e35cce4d0312163799188
MD5 4d8e167a9d41168afae66bcae8e0ba0c
BLAKE2b-256 e71c2aaa547f05558bc7a23b834364bf0b10369b4a898b07c438d09f51d3c0f1

See more details on using hashes here.

Provenance

The following attestation bundles were made for fast_h2m-0.3.0.tar.gz:

Publisher: release.yml on RustedBytes/fast-h2m

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fast_h2m-0.3.0-cp38-abi3-win_amd64.whl.

File metadata

  • Download URL: fast_h2m-0.3.0-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 805.6 kB
  • Tags: CPython 3.8+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for fast_h2m-0.3.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 b7352484e655d86cb12f3efb3b71084ddf053fa7347180f2f3ca5494b475c46a
MD5 a70e5b46952a38b006885eb605cf217d
BLAKE2b-256 b6ac798329e7737daee35d2a0eedde5467513fca3fd3bcbee0c7bb04a572ec42

See more details on using hashes here.

Provenance

The following attestation bundles were made for fast_h2m-0.3.0-cp38-abi3-win_amd64.whl:

Publisher: release.yml on RustedBytes/fast-h2m

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fast_h2m-0.3.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for fast_h2m-0.3.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c96a46d4a4cf1cda79aa64919d939b528d78fe861193ebf099cd576e963585fd
MD5 a9fe97451e132c13c74a54f108d3ce55
BLAKE2b-256 237f8581f749b62703b488488edf958c255dce14f032b2d605b516ac44bd8221

See more details on using hashes here.

Provenance

The following attestation bundles were made for fast_h2m-0.3.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yml on RustedBytes/fast-h2m

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fast_h2m-0.3.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for fast_h2m-0.3.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d9b3a5ee008f2561709c8771e0335102b03217b10c7babb9a153ccc9cc9d3281
MD5 738412489236f3ff61946850222dfe07
BLAKE2b-256 10be61f3b5b66cd05d3aecbe8d225c842b4bd25dda8f6ea17002b005d77bc13b

See more details on using hashes here.

Provenance

The following attestation bundles were made for fast_h2m-0.3.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: release.yml on RustedBytes/fast-h2m

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fast_h2m-0.3.0-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for fast_h2m-0.3.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 df6570fb6c43a8ec9e5d7826356f33347f9c7e1c6a4baf98f7379c7e97166467
MD5 8f54f6f518d8199264afebcdc15109ce
BLAKE2b-256 c822090ccf938e5dfeb42f2f3b7b2172578937399389f489d73aa07cf82e0dee

See more details on using hashes here.

Provenance

The following attestation bundles were made for fast_h2m-0.3.0-cp38-abi3-macosx_11_0_arm64.whl:

Publisher: release.yml on RustedBytes/fast-h2m

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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