Skip to main content

📦 contextpack-md

Release Status Documentation PyPI version License

A dead-simple tool to extract high-quality Markdown from any URL or PDF, optimized for LLMs.

🚀 Quick Start

Extract clean, LLM-ready Markdown from any URL in seconds.

# Using uv (recommended)
uvx contextpack-md web https://docs.python.org/3/

# Download and convert PDF
uvx contextpack-md pdf https://arxiv.org/pdf/1706.03762.pdf

✨ Key Features

  • 🎯 LLM-Ready Output: Clean, readable Markdown with links, but no junk.
  • 📄 PDF Support: High-fidelity PDF-to-Markdown conversion (via marker-pdf).
  • 📂 Local Caching: Optional timestamped local storage in ~/.contextpack-md/.
  • ⚡ Fast & Lean: Built on top of trafilatura for superior extraction speed and quality.

🛠️ Installation

pip install contextpack-md

# For PDF support (requires PyTorch)
pip install "contextpack-md[pdf]"

📖 Documentation

Full documentation is available at https://theguega.github.io/contextpack-md/.

🤝 Contributing

Contributions are welcome! Please see CONTRIBUTING.md for more details.

⚖️ License

MIT License. See LICENSE for more information.

Metadata

Release files for contextpack-md 0.2.2

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

Source distribution (sdist)

Source distribution for contextpack-md 0.2.2
File Size Uploaded Provenance Actions
contextpack_md-0.2.2.tar.gz 4.6 kB Without provenance Details for contextpack_md-0.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for contextpack-md 0.2.2
File Interpreter ABI Platform Actions
contextpack_md-0.2.2-py3-none-any.whl Python 3 none any Details for contextpack_md-0.2.2-py3-none-any.whl

Total release size: 10.6 kB

Release files / contextpack_md-0.2.2.tar.gz

Download URL contextpack_md-0.2.2.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2d05585748bd08d6e8257ecc83d8076f534fdd52be0da3e00eaee5cb9a786e0e
BLAKE2b-256 checksum
How to use checksums
ed80e8aa635bf801857a65f7985a8e206b5790f0ad39cc48c3f3156274cc2ae5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / contextpack_md-0.2.2-py3-none-any.whl

Download URL contextpack_md-0.2.2-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
951b7bd1593304f88ede5692bae80edd23d857cf4e2706d01134625f7b784a7c
BLAKE2b-256 checksum
How to use checksums
47f22ef4b6525b565934a3374e043efc8a53aaba2cec4e711ab5c84b32405d29
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for contextpack-md 0.2.2

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.

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