Mistral OCR plugin for Docling
Project description
docling-ocr-mistral
Mistral OCR plugin for Docling.
Install
pip install docling-ocr-mistral
Use
from docling.datamodel.base_models import InputFormat
from docling.datamodel.pipeline_options import PdfPipelineOptions
from docling.document_converter import DocumentConverter, PdfFormatOption
from docling_ocr_mistral import MistralOcrOptions
pipeline_options = PdfPipelineOptions(
allow_external_plugins=True,
ocr_options=MistralOcrOptions(),
)
converter = DocumentConverter(
format_options={
InputFormat.PDF: PdfFormatOption(pipeline_options=pipeline_options),
}
)
result = converter.convert("document.pdf")
Set MISTRAL_API_KEY or pass MistralOcrOptions(api_key="...").
CLI:
docling --allow-external-plugins --ocr-engine mistral_ocr document.pdf
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file docling_ocr_mistral-0.1.1.tar.gz.
File metadata
- Download URL: docling_ocr_mistral-0.1.1.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9591aac591376067af8af0835d1b5147132c47aef828d8d6f181dc99c13e766
|
|
| MD5 |
23a9fb77b776a4e68421359bdeec1555
|
|
| BLAKE2b-256 |
d135fa0d7873569929b26eba929951132675e21d661902e0fec8bc4ec32546b5
|
Provenance
The following attestation bundles were made for docling_ocr_mistral-0.1.1.tar.gz:
Publisher:
release.yml on geoHeil/docling-ocr-mistral
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
docling_ocr_mistral-0.1.1.tar.gz -
Subject digest:
e9591aac591376067af8af0835d1b5147132c47aef828d8d6f181dc99c13e766 - Sigstore transparency entry: 2024369189
- Sigstore integration time:
-
Permalink:
geoHeil/docling-ocr-mistral@c37cc86cc15e3f32736581a409487e27209ee409 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/geoHeil
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@c37cc86cc15e3f32736581a409487e27209ee409 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file docling_ocr_mistral-0.1.1-py3-none-any.whl.
File metadata
- Download URL: docling_ocr_mistral-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e3d95eff52a07194265d26689aa29066bd3b72f6e74fb95c7b97458c5d87bda1
|
|
| MD5 |
bceecea75fd8c0953ab4c793f99cefb9
|
|
| BLAKE2b-256 |
56cecf14718aa10d1c7393a9b603c1f3a295dfa3e9c7e51c65c1485765999828
|
Provenance
The following attestation bundles were made for docling_ocr_mistral-0.1.1-py3-none-any.whl:
Publisher:
release.yml on geoHeil/docling-ocr-mistral
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
docling_ocr_mistral-0.1.1-py3-none-any.whl -
Subject digest:
e3d95eff52a07194265d26689aa29066bd3b72f6e74fb95c7b97458c5d87bda1 - Sigstore transparency entry: 2024369306
- Sigstore integration time:
-
Permalink:
geoHeil/docling-ocr-mistral@c37cc86cc15e3f32736581a409487e27209ee409 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/geoHeil
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@c37cc86cc15e3f32736581a409487e27209ee409 -
Trigger Event:
workflow_dispatch
-
Statement type: