Skip to main content

Listract

Listract = List + Extract. Structural list extraction from raw HTML: decide whether the page is a list, identify the main list container, and return cleaned entries as one shared JSON model.

The Python package bundles the extraction model. No separate model download is required.

Install

pip install listract

Requires Python 3.9 or newer.

Quickstart

from listract import ListExtractor

extractor = ListExtractor()
result = extractor.extract_html(html)

print(result["status"])       # list / no_list
print(result["action"])       # e.g. fast_list
print(result["entries"])      # cleaned list entries

ListExtractor() loads the bundled model from inside the wheel. Set LIST_EXTRACT_MODEL_DIR only when overriding it with a custom model.

What it returns

Listract returns a shared JSON contract covering:

  • page-level status (list / no_list)
  • production action
  • the selected list container
  • cleaned entries and their links
  • manifest and verification helpers

License

MIT

Metadata

Release files for listract 0.1.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 listract 0.1.0
File Size Uploaded Provenance Actions
listract-0.1.0.tar.gz 1.8 MB Without provenance Details for listract-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for listract 0.1.0
File Interpreter ABI Platform Actions
listract-0.1.0-py3-none-any.whl Python 3 none any Details for listract-0.1.0-py3-none-any.whl

Total release size: 3.8 MB

Release files / listract-0.1.0.tar.gz

Download URL listract-0.1.0.tar.gz
Size 1.8 MB
Tags Source
SHA-256 checksum
How to use checksums
f0976b57b73f24aa3c5e5548c610503bfd871ab757fa23aa7ddccd834075d2b0
BLAKE2b-256 checksum
How to use checksums
69bbd785bc188717816de0b89728dbf457695a42df12562bd9dcea6c0e12e384
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / listract-0.1.0-py3-none-any.whl

Download URL listract-0.1.0-py3-none-any.whl
Size 2.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
4d642ee162a9aa18aa069d1b00027a76c40d04c47a28f436592d06c25748a995
BLAKE2b-256 checksum
How to use checksums
14f448875f8f49c3b9ae11873b82c3f8bcbf0749a9b7326e93e24d5b5283776c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for listract 0.1.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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