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.1.tar.gz (336.6 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.1-cp38-abi3-win_amd64.whl (806.2 kB view details)

Uploaded CPython 3.8+Windows x86-64

fast_h2m-0.3.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (903.0 kB view details)

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

fast_h2m-0.3.1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (861.0 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

fast_h2m-0.3.1-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.1.tar.gz.

File metadata

  • Download URL: fast_h2m-0.3.1.tar.gz
  • Upload date:
  • Size: 336.6 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.1.tar.gz
Algorithm Hash digest
SHA256 113de316ba8b343dd76897eb84ba02b0f7d25351b273bc1f6dd78f93ff3fd87c
MD5 8a003bab5e19b2149f0edad04d454330
BLAKE2b-256 db69c120349669cd1f6e8362dcadfff5ba3ab5d0b13bbadbf06ae8b9fc26ef55

See more details on using hashes here.

Provenance

The following attestation bundles were made for fast_h2m-0.3.1.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.1-cp38-abi3-win_amd64.whl.

File metadata

  • Download URL: fast_h2m-0.3.1-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 806.2 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.1-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 0e5c267591ef1380cf1ae59d999750b7ec7c931521cfa2afef1e048cdf048733
MD5 bc68380e24d150210505502a00b7f8c7
BLAKE2b-256 ea10fab7647970527fa605322b5523a276e50f4a194bb1e9322f7f02dc7703ca

See more details on using hashes here.

Provenance

The following attestation bundles were made for fast_h2m-0.3.1-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.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for fast_h2m-0.3.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e70e1098e2d49644fca472755bc84a1bcd87ea3a72d031a3dc48e95cc93f8f16
MD5 a7b6ed134cfad5622aeb87220fda03a7
BLAKE2b-256 254b8eba42c06c9e30c3b8023a81c64616345e8e98ec3d8ebf1df65fef105c83

See more details on using hashes here.

Provenance

The following attestation bundles were made for fast_h2m-0.3.1-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.1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for fast_h2m-0.3.1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 b68b5040585f78446954e3768384b0bdccbb4127811a45394ce6b1f9c91d6a4f
MD5 e4968523360ca9d025ed75ae4ecd2951
BLAKE2b-256 b6ac36bff7b3775d2a8fa86c97970840fc0b104d40394ee544801c96cb31cfe7

See more details on using hashes here.

Provenance

The following attestation bundles were made for fast_h2m-0.3.1-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.1-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for fast_h2m-0.3.1-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 45e176866153e1649b5eade6fdbc529f0dc427de63701fa8694c7af8604c202b
MD5 c8ad39bc31c43bd5f6585f5c86f9a3af
BLAKE2b-256 31a132858bf10cd44202820c9d14f48ceb979c3a282968e18f9670d17e3b8450

See more details on using hashes here.

Provenance

The following attestation bundles were made for fast_h2m-0.3.1-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