mineru-vl-utils
Utilities for MinerU Vision-Language models
What it is and what it does
mineru-vl-utils is a client library for the MinerU Vision-Language Model, a multimodal AI system that detects document layout and recognizes text, tables, equations, and images from visual input. It abstracts away the complexity of model serving and inference by providing a unified MinerUClient interface that works across seven different deployment modes: http-client (remote server), transformers (HuggingFace), mlx-engine (Apple Silicon), lmdeploy-engine, vllm-engine (synchronous), vllm-async-engine (asynchronous), and llama-cpp-engine (in-process). The model outputs structured ContentBlock objects containing block type, bounding box, rotation angle, and recognized content (text as strings, tables as HTML, equations as LaTeX).
You use it by instantiating a MinerUClient with your chosen backend, then calling two_step_extract() on images to get back a list of detected and recognized content blocks. The package handles all the marshalling between your code and the underlying model, whether that model runs locally via transformers, on Apple Silicon via mlx-engine, in a remote HTTP service, or in-process via llama-cpp-engine. Installation is modular: the base package includes http-client support, and optional extras pull in backend-specific dependencies.
Use it for:
- Extract structured text, tables, and equations from scanned documents or PDFs for downstream processing.
- Detect and localize text regions in document images for document layout analysis.
- Convert document images to structured HTML or LaTeX for archival or republishing workflows.
- Run document understanding on Apple Silicon Macs without external servers using the mlx-engine backend.
- Build a document processing service using the http-client backend to call a centralized model server.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides a lightweight Python wrapper to interact with the MinerU Vision-Language Model, supporting multiple deployment backends for document layout detection and content recognition.
Yes. The package is actively maintained (released one day ago), has low install friction, carries a permissive Apache-2.0 license, and offers a clean abstraction over a capable multimodal model with flexible deployment options. Choose it if you need to extract structured content from documents and want to avoid managing model serving yourself; the http-client backend requires an external server, but other backends let you run inference locally.
Install
mineru-vl-utils on PyPI
pip
pip install mineru-vl-utilsuv
uv add mineru-vl-utilspoetry
poetry add mineru-vl-utilsInstalling mineru-vl-utils
Before you install
Low friction: pure Python wheel with seven common runtime dependencies. Actively maintained with a release one day ago. Requires Python 3.10 or later.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions, making it safe for most projects.
Quickstart
pip install mineru-vl-utils
from mineru_vl_utils import MinerUClient
client = MinerUClient(backend="http-client", server_url="http://127.0.0.1:8000")
extracted_blocks = client.two_step_extract(image)
For http-client backend, you must have a separate vllm or LLM deployment tool serving the MinerU model as an HTTP server on the specified URL.
Verify before relying
- Whether the package supports async operations across all seven backends or only specific ones.
- Performance characteristics and latency expectations for each backend type.
- Whether the http-client backend requires network connectivity or can work offline once the model is cached.
- Specific model size and memory requirements for each backend deployment mode.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (<3.14,>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 7 — httpx, httpx-retries, aiofiles, pillow, pydantic, loguru, tqdm |
| Maintenance | actively maintained — 1 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 198,484/month — #9,729 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: mineru_vl_utils-1.2.1-py3-none-any.whl
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
mineruConverts PDF, DOCX, PPTX, XLSX, images, and web…
unclear · top 15,000 on PyPI
sgl-kernelsgl-kernel provides optimized CUDA compute…
permissive · top 15,000 on PyPI
simple-lama-inpaintingPerforms image inpainting using the LaMa model,…
unclear · top 15,000 on PyPI
vllmvLLM is a high-throughput inference and serving…
permissive · top 5,000 on PyPI
llmcompressorllmcompressor optimizes large language models…
permissive · top 15,000 on PyPI
lm-evalUnified framework for evaluating generative…
permissive · top 5,000 on PyPI
ell-aiell-ai is a functional prompt engineering…
permissive · top 15,000 on PyPI
pytorch-tokenizersProvides C++ implementations of multiple…
permissive · top 15,000 on PyPI
unstructured.pytesseractPython wrapper for Google's Tesseract OCR…
permissive · top 15,000 on PyPI
mlx-lmMLX LM loads, generates text with, fine-tunes,…
permissive · top 5,000 on PyPI