Skip to main content

grass-html

Extract Markdown and structured metadata from HTML.

Install

pip install grass-html

Usage

from grass_html import extract, to_markdown, to_json

result = extract(html_string)
print(result.markdown)
print(result.degraded)   # True when extraction coverage is low
print(result.coverage)   # ratio vs full-page markdown

md = to_markdown(html_string)
doc = to_json(html_string)

Features

  • Single extraction profile: Markdown body + metadata
  • Links and images always preserved
  • Degradation detection via coverage threshold
  • Structural verification utilities (structural_report, boilerplate_probes)

CLI

grass-html path/to/file.html

Status

Early stage. API may change between minor releases.

Metadata

Release files for grass-html 0.2.0

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

Source distribution (sdist)

Source distribution for grass-html 0.2.0
File Size Uploaded
grass_html-0.2.0.tar.gz 5.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for grass-html 0.2.0
File Interpreter ABI Platform
grass_html-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 12.2 kB

Release files / grass_html-0.2.0.tar.gz

Download URL grass_html-0.2.0.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
82639a027958bb75a6116c31c513e140d0398aee39c27bc0131a6e9bd248f818
BLAKE2b-256 checksum
How to use checksums
8e7f3ba97feb4c2c9b1ad8a7790e9bc41b6064606ad1831108b0d534461849bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / grass_html-0.2.0-py3-none-any.whl

Download URL grass_html-0.2.0-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8f0fb720378f390f895cfe3df431f4f18bd3d67854d28396ef9796df7ec7c2f6
BLAKE2b-256 checksum
How to use checksums
7f3e80f8b418bc2659751ceb869f000cbd066a5409b45741a45f6fe2a94458a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 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