semvec/pypi-packages huggingface dataset:
pymupdf4llm-mcp 0.0.4
MCP Server for pymupdf4llm
Requires Python: <4.0,>=3.10
Keywords: python

# pymupdf4llm-mcp

[![Release](https://img.shields.io/github/v/release/pymupdf/pymupdf4llm-mcp)](https://img.shields.io/github/v/release/pymupdf/pymupdf4llm-mcp)
[![Build status](https://img.shields.io/github/actions/workflow/status/pymupdf/pymupdf4llm-mcp/main.yml?branch=main)](https://github.com/pymupdf/pymupdf4llm-mcp/actions/workflows/main.yml?query=branch%3Amain)
[![Commit activity](https://img.shields.io/github/commit-activity/m/pymupdf/pymupdf4llm-mcp)](https://img.shields.io/github/commit-activity/m/pymupdf/pymupdf4llm-mcp)
[![License](https://img.shields.io/github/license/pymupdf/pymupdf4llm-mcp)](https://img.shields.io/github/license/pymupdf/pymupdf4llm-mcp)

MCP Server for pymupdf4llm, best for export PDF to markdown for LLM.

## Quick Start

Run the following command to run the MCP server:

```bash
uvx pymupdf4llm-mcp@latest stdio # stdio mode
# or
uvx pymupdf4llm-mcp@latest sse # sse mode
```

Configure your cursor/windsurf/... and other MCP client to this server:

```json
{
  "mcpServers": {
    "pymupdf4llm-mcp": {
      "command": "uvx",
      "args": [
        "pymupdf4llm-mcp@latest",
        "stdio"
      ],
      "env": {}
    }
  }
}
```
hat-splitter 0.1.10
HAT splitter
Requires Python: >=3.8

# hat-splitter

The `hat-splitter` package implements the splitting rule described in the
[Hierarchical Autoregressive Transformers
paper](https://arxiv.org/abs/2501.10322v2). You can use this to implement
training and inference of HAT models.

## Installation

```bash
pip install hat-splitter
```

## Usage

```python
from hat_splitter import HATSplitter

my_hat_splitter = HATSplitter()
words: list[str] = my_hat_splitter.split("Hello, world!")
assert words == ["Hello,", " world!"]

words: list[bytes] = my_hat_splitter.split_with_limit("Hello, world!", 4)
assert words == [b'Hell', b'o,', b' wor', b'ld!']
```
expand-latex-macros 2.0.0
Removes all user-defined macros in a .tex file and substitutes their definitions back in.
Keywords: latex, LaTeX, macros, \def, \newcommand

Provides the function expand_latex_macros(latex_source). Removes all user-defined macros in latex_source -- which should be a latex.tex file read into python using open(latex_source_path).read() -- and substitutes back in their definitions. Helpful for pre-processing LaTeX source to train NLP models.