anytomd¶
Any document to clean Markdown, for LLMs. The Python binding of anytomd-rs, a pure-Rust engine by developer0hye.
An EDamLabs binding: a Python binding of a third-party engine that keeps its upstream's syntax and follows its releases (EDamLabs families).
# Quarterly Report
## Summary
Revenue grew by **18 percent** and costs fell by *4 percent*.
| Region | Sales |
|---|---|
| EMEA | 1200 |
Three verbs, each with its async twin:
| Sync | Async | Does |
|---|---|---|
ad.convert(source) |
await ad.aconvert(source) |
Document → Markdown |
ad.detect(source) |
await ad.adetect(source) |
Which format is this? |
ad.describe(image) |
await ad.adescribe(image) |
Image → description, with a vision model |
Extras¶
The base package has no Python dependencies and already reads the text in images: the Rust OCR engine and its models
are inside the wheel (every platform but Intel macOS, which uses [ocr]). Extras add a capability, and once installed
they work on their own:
| Extra | Adds |
|---|---|
anytomd[pdf] |
PDF conversion |
anytomd[ocr] |
Tesseract and ocria-nano through liteparse: scanned PDFs, and image text on Intel macOS |
anytomd[vlm] |
Image descriptions from any OpenAI-compatible vision model, and describe |
anytomd[full] |
All of them |
Format by format → Formats · every call → API · what can fail → Errors
anytomd-rs
Conversion quality, format coverage and performance belong to anytomd-rs. Wrong Markdown is an upstream issue; anything about the Python API is ours.