docling-slim


توضیحات

Modular version of the Docling package: SDK and CLI for parsing PDF, DOCX, HTML, and more, to a unified document representation for powering downstream workflows such as gen AI applications.
ویژگی مقدار
سیستم عامل POSIX :: Linux
نام فایل docling-slim-2.99.0
نام docling-slim
نسخه کتابخانه 2.99.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده -
ایمیل نویسنده Christoph Auer <cau@zurich.ibm.com>, Michele Dolfi <dol@zurich.ibm.com>, Maxim Lysak <mly@zurich.ibm.com>, Nikos Livathinos <nli@zurich.ibm.com>, Ahmed Nassar <ahn@zurich.ibm.com>, Panos Vagenas <pva@zurich.ibm.com>, Peter Staar <taa@zurich.ibm.com>
آدرس صفحه اصلی -
آدرس اینترنتی https://pypi.org/project/docling-slim/
مجوز -
# Docling Slim **Lightweight SDK for parsing documents with minimal dependencies and opt-in extras** Docling Slim is a minimal-dependency version of Docling that allows you to install only the components you need. It provides the core document processing functionality with ~50MB of base dependencies, and you can add specific features through optional extras. ## When to Use Docling Slim - **Use `docling`** (recommended): If you want the full-featured experience with all standard capabilities - **Use `docling-slim`**: If you need fine-grained control over dependencies or want to minimize installation size ## For Most Users: Use the Main Docling Package We recommend most users install the full-featured `docling` package instead: ```bash pip install docling ``` The `docling` package includes all standard features, the CLI tools, and is the easiest way to get started. Visit the [main Docling documentation](https://docling-project.github.io/docling/) for complete guides and examples. ## Installation ### With Specific Features ```bash # PDF support with local models pip install docling-slim[format-pdf,models-local] # Office formats only pip install docling-slim[format-office] # PDF + CLI pip install docling-slim[format-pdf,cli] # Docling service client for using the Docling Serve API pip install docling-slim[service-client] ``` ## Available Extras ### Convenience Bundles | Extra | Description | Use Case | |-------|-------------|----------| | `standard` | All standard features (same as `docling` package) | Full-featured usage | | `all` | All available extras | Complete installation | ### CLI | Extra | Description | Use Case | |-------|-------------|----------| | `cli` | Command-line interface (typer, rich) | CLI tools (docling, docling-tools) | ### Core Components | Extra | Description | Use Case | |-------|-------------|----------| | `convert-core` | Core conversion components (numpy, pillow, scipy) | Basic document conversion | | `extract-core` | Structured information extraction | Data extraction from documents | ### Format Support #### PDF Formats | Extra | Description | Use Case | |-------|-------------|----------| | `format-pdf` | PDF parsing (pypdfium2 + docling-parse) | PDF documents | | `format-pdf-pypdfium2` | PDF rendering only | Lightweight PDF support | | `format-pdf-docling` | Advanced PDF parsing with docling-parse (independent of pypdfium2) | Complex PDF layouts | #### Office Formats (office = docx + pptx + xlsx) | Extra | Description | Use Case | |-------|-------------|----------| | `format-office` | All Office formats | Microsoft Office documents | | `format-docx` | Microsoft Word documents | .docx files | | `format-pptx` | Microsoft PowerPoint | .pptx files | | `format-xlsx` | Microsoft Excel | .xlsx files | #### Web Formats (web = html + markdown) | Extra | Description | Use Case | |-------|-------------|----------| | `format-web` | HTML and Markdown | Web content | | `format-html` | HTML parsing | Web pages and HTML files | | `format-markdown` | Markdown parsing | .md files | #### Other Formats | Extra | Description | Use Case | |-------|-------------|----------| | `format-latex` | LaTeX documents | .tex files | | `format-xml-xbrl` | XBRL financial reports | Financial documents | | `format-html-render` | HTML rendering with Playwright | Dynamic web content | | `format-audio` | Audio transcription (Whisper) | .wav, .mp3 files | ### OCR Engines | Extra | Description | Use Case | |-------|-------------|----------| | `feat-ocr-rapidocr` | RapidOCR (lightweight) | Fast OCR | | `feat-ocr-rapidocr-onnx` | RapidOCR with ONNX runtime | Optimized OCR | | `feat-ocr-easyocr` | EasyOCR | Multi-language OCR | | `feat-ocr-tesserocr` | Tesseract OCR | High-accuracy OCR | | `feat-ocr-mac` | macOS native OCR | macOS only | ### Models | Extra | Description | Use Case | |-------|-------------|----------| | `models-local` | Local PyTorch models | GPU/CPU inference | | `models-remote` | Remote model serving (Triton) | Production deployments | | `models-onnxruntime` | ONNX Runtime acceleration | Optimized inference | | `models-vlm-inline` | Vision Language Models | Image understanding, inline processing | ### Other features | Extra | Description | Use Case | |-------|-------------|----------| | `feat-chunking` | Document chunking | RAG applications | | `service-client` | Docling service client | Remote processing | ## License MIT License - See [LICENSE](https://github.com/docling-project/docling/blob/main/LICENSE)


نیازمندی

مقدار نام
- certifi>=2024.7.4
- docling-core<3.0.0,>=2.103.1
- filetype<2.0.0,>=1.2.0
- langcodes<4.0.0,>=3.5.0
- pluggy<2.0.0,>=1.0.0
- pydantic-settings<3.0.0,>=2.3.0
- pydantic<3.0.0,>=2.0.0
- requests<3.0.0,>=2.32.2
- tqdm<5.0.0,>=4.65.0
xtr accelerate<2,>=1.0.0;
xtr accelerate<2.0.0,>=1.2.1;
xtr arelle-release<3.0.0,>=2.38.17;
xtr beautifulsoup4<5.0.0,>=4.12.3;
xtr defusedxml<0.8.0,>=0.7.1;
xtr docling-core[chunking]<3.0.0,>=2.103.1;
xtr docling-ibm-models<5,>=4.0.2;
xtr docling-parse<8.0.0,>=7.22.2;
xtr easyocr<2.0,>=1.7;
xtr einops<1.0.0,>=0.8.1;
xtr httpx<1.0.0,>=0.28;
xtr huggingface-hub<3,>=0.23;
xtr lxml<7.0.0,>=4.0.0;
xtr mail-parser<5.0.0,>=4.1.4;
xtr marko<3.0.0,>=2.1.2;
python_versio mlx-vlm<1.0.0,>=0.7.0;
python_versio mlx-whisper>=0.4.3;
xtr numba>=0.63.0;
xtr numpy<3.0.0,>=1.24.0;
ys_platfor ocrmac<2.0.0,>=1.0.0;
python_versio onnxruntime-gpu<1.24;
python_versio onnxruntime-gpu<2.0.0,>=1.24.1;
python_versio onnxruntime-gpu<2.0.0;
python_versio onnxruntime<1.24;
python_versio onnxruntime<2.0.0,>=1.24.1;
python_versio onnxruntime<2.0.0;
xtr open-clip-torch<4.0.0,>=3.2.0;
xtr openai-whisper>=20250625;
xtr openpyxl<4.0.0,>=3.1.5;
xtr pandas<4.0.0,>=2.1.4;
xtr peft>=0.18.1;
xtr pillow<14.0.0,>=10.0.0;
xtr playwright>=1.58.0;
xtr polyfactory>=2.22.2;
xtr pylatexenc<3.0,>=2.10;
xtr pypdfium2!=4.30.1,<6.0.0,>=4.30.0;
xtr python-docx<2.0.0,>=1.2.0;
xtr python-dotenv~=1.0;
xtr python-oxmsg<0.1.0,>=0.0.2;
xtr python-pptx<2.0.0,>=1.0.2;
xtr qwen-vl-utils>=0.0.11;
xtr rapidocr<4.0.0,>=3.9.1;
xtr rich>=13.0.0;
xtr rtree<2.0.0,>=1.3.0;
xtr scikit-image>=0.19;
xtr scipy<2.0.0,>=1.9.0;
xtr tesserocr<3.0.0,>=2.7.1;
xtr timm<2.0.0,>=1.0.22;
xtr torch<3.0.0,>=2.2.2;
xtr torchvision<1,>=0;
ys_platfor transformers!=5.0.*,!=5.1.*,!=5.10.*,!=5.11.*,!=5.12.*,!=5.13.*,!=5.14.*,!=5.15.*,!=5.2.*,!=5.3.*,!=5.9.*,<6.0.0,>=4.42.0;
ys_platfor transformers!=5.0.*,!=5.1.*,!=5.13.0,!=5.2.*,!=5.3.*,<6.0.0,>=4.42.0;
xtr tritonclient[grpc]<3.0.0,>=2.65.0;
xtr typer<0.28.0,>=0.19.0;
xtr websockets<18.0,>=14.0;
sys_platfor whisper-s2t-reborn<2.0.0,>=1.8.0;
xtr python-dotenv~=1.0;
xtr rich>=13.0.0;
xtr typer<0.28.0,>=0.19.0;
xtr numpy<3.0.0,>=1.24.0;
xtr pillow<14.0.0,>=10.0.0;
xtr rtree<2.0.0,>=1.3.0;
xtr scipy<2.0.0,>=1.9.0;
xtr numpy<3.0.0,>=1.24.0;
xtr pillow<14.0.0,>=10.0.0;
xtr polyfactory>=2.22.2;
xtr rtree<2.0.0,>=1.3.0;
xtr scipy<2.0.0,>=1.9.0;
python_versio mlx-whisper>=0.4.3;
xtr numba>=0.63.0;
xtr openai-whisper>=20250625;
xtr torchaudio<3.0.0,>=2.2.2;
xtr transformers<6.0.0,>=5.16.0;
sys_platfor whisper-s2t-reborn<2.0.0,>=1.8.0;
xtr docling-core[chunking]<3.0.0,>=2.103.1;
xtr easyocr<2.0,>=1.7;
xtr scikit-image>=0.19;
ys_platfor ocrmac<2.0.0,>=1.0.0;
python_versio nemotron-ocr>=2.0.0;
xtr rapidocr<4.0.0,>=3.9.1;
ython_versio onnxruntime<1.24,>=1.7.0;
ython_versio onnxruntime<2.0.0,>=1.24.1;
python_versio onnxruntime<2.0.0,>=1.7.0;
xtr rapidocr<4.0.0,>=3.9.1;
xtr pandas<4.0.0,>=2.1.4;
xtr tesserocr<3.0.0,>=2.7.1;
python_versio mlx-whisper>=0.4.3;
xtr numba>=0.63.0;
xtr openai-whisper>=20250625;
xtr python-dotenv~=1.0;
sys_platfor whisper-s2t-reborn<2.0.0,>=1.8.0;
xtr python-docx<2.0.0,>=1.2.0;
xtr beautifulsoup4<5.0.0,>=4.12.3;
xtr mail-parser<5.0.0,>=4.1.4;
xtr python-oxmsg<0.1.0,>=0.0.2;
xtr beautifulsoup4<5.0.0,>=4.12.3;
xtr playwright>=1.58.0;
xtr defusedxml<0.8.0,>=0.7.1;
xtr pylatexenc<3.0,>=2.10;
xtr marko<3.0.0,>=2.1.2;
xtr openpyxl<4.0.0,>=3.1.5;
xtr pylatexenc<3.0,>=2.10;
xtr python-docx<2.0.0,>=1.2.0;
xtr python-pptx<2.0.0,>=1.0.2;
xtr odfdo<4.0.0,>=3.22.0;
xtr docling-parse<8.0.0,>=7.22.2;
xtr pypdfium2!=4.30.1,<6.0.0,>=4.30.0;
xtr docling-parse<8.0.0,>=7.22.2;
xtr pypdfium2!=4.30.1,<6.0.0,>=4.30.0;
xtr pylatexenc<3.0,>=2.10;
xtr python-pptx<2.0.0,>=1.0.2;
xtr librosa<2.0.0,>=0.10.0;
python_versio mlx-whisper>=0.4.3;
xtr numba>=0.63.0;
xtr openai-whisper>=20250625;
xtr resemblyzer<0.2.0,>=0.1.4;
xtr scikit-learn<2.0.0,>=1.3.0;
xtr soundfile<1.0.0,>=0.12.1;
sys_platfor whisper-s2t-reborn<2.0.0,>=1.8.0;
xtr beautifulsoup4<5.0.0,>=4.12.3;
xtr marko<3.0.0,>=2.1.2;
xtr openpyxl<4.0.0,>=3.1.5;
xtr beautifulsoup4<5.0.0,>=4.12.3;
xtr lxml<7.0.0,>=4.0.0;
xtr beautifulsoup4<5.0.0,>=4.12.3;
xtr defusedxml<0.8.0,>=0.7.1;
xtr arelle-release<3.0.0,>=2.38.17;
xtr accelerate<2,>=1.0.0;
xtr defusedxml<0.8.0,>=0.7.1;
xtr docling-ibm-models<5,>=4.0.2;
xtr huggingface-hub<3,>=0.23;
xtr torch<3.0.0,>=2.2.2;
xtr torchvision<1,>=0;
python_versio onnxruntime-gpu<1.24;
python_versio onnxruntime-gpu<2.0.0,>=1.24.1;
python_versio onnxruntime-gpu<2.0.0;
python_versio onnxruntime<1.24;
python_versio onnxruntime<2.0.0,>=1.24.1;
python_versio onnxruntime<2.0.0;
xtr tritonclient[grpc]<3.0.0,>=2.65.0;
xtr accelerate<2.0.0,>=1.2.1;
xtr einops<1.0.0,>=0.8.1;
python_versio mlx-vlm<1.0.0,>=0.7.0;
xtr open-clip-torch<4.0.0,>=3.2.0;
xtr peft>=0.18.1;
xtr qwen-vl-utils>=0.0.11;
xtr timm<2.0.0,>=1.0.22;
ys_platfor transformers!=5.0.*,!=5.1.*,!=5.10.*,!=5.11.*,!=5.12.*,!=5.13.*,!=5.14.*,!=5.15.*,!=5.2.*,!=5.3.*,!=5.9.*,<6.0.0,>=4.42.0;
ys_platfor transformers!=5.0.*,!=5.1.*,!=5.13.0,!=5.2.*,!=5.3.*,<6.0.0,>=4.42.0;
xtr httpx<1.0.0,>=0.28;
xtr rich>=13.0.0;
xtr typer<0.28.0,>=0.19.0;
xtr websockets<18.0,>=14.0;
xtr accelerate<2,>=1.0.0;
xtr beautifulsoup4<5.0.0,>=4.12.3;
xtr defusedxml<0.8.0,>=0.7.1;
xtr docling-core[chunking]<3.0.0,>=2.103.1;
xtr docling-ibm-models<5,>=4.0.2;
xtr docling-parse<8.0.0,>=7.22.2;
xtr httpx<1.0.0,>=0.28;
xtr huggingface-hub<3,>=0.23;
xtr mail-parser<5.0.0,>=4.1.4;
xtr marko<3.0.0,>=2.1.2;
xtr numpy<3.0.0,>=1.24.0;
xtr openpyxl<4.0.0,>=3.1.5;
xtr pillow<14.0.0,>=10.0.0;
xtr polyfactory>=2.22.2;
xtr pylatexenc<3.0,>=2.10;
xtr pypdfium2!=4.30.1,<6.0.0,>=4.30.0;
xtr python-docx<2.0.0,>=1.2.0;
xtr python-dotenv~=1.0;
xtr python-oxmsg<0.1.0,>=0.0.2;
xtr python-pptx<2.0.0,>=1.0.2;
xtr rapidocr<4.0.0,>=3.9.1;
xtr rich>=13.0.0;
xtr rtree<2.0.0,>=1.3.0;
xtr scipy<2.0.0,>=1.9.0;
xtr torch<3.0.0,>=2.2.2;
xtr torchvision<1,>=0;
xtr typer<0.28.0,>=0.19.0;
xtr websockets<18.0,>=14.0;


زبان مورد نیاز

مقدار نام
<4.0,>=3.10 Python


نحوه نصب


نصب پکیج whl docling-slim-2.99.0:

    pip install docling-slim.whl


نصب پکیج tar.gz docling-slim-2.99.0:

    pip install docling-slim.tar.gz