LongParser core is licensed under the MIT License.
Some optional backends and integrations use different licenses. These packages are never loaded by default — they are only imported when you explicitly install them and select them in your configuration.
| Package | License | Install Command | When Loaded |
|---|---|---|---|
pymupdf4llm |
AGPL-3.0 or Artifex Commercial | pip install "longparser[pymupdf]" |
Only when you set backend="pymupdf" |
marker-pdf |
GPL-3.0-or-later | pip install "longparser[marker]" |
Only when you set backend="marker" (future) |
surya-ocr |
GPL-3.0-or-later | pip install "longparser[surya]" |
Only when explicitly imported (future) |
| Package | License | Purpose |
|---|---|---|
pydantic |
MIT | Schema validation |
docling |
MIT | Default PDF extraction engine |
docling-core |
MIT | Docling data models |
fast-langdetect |
Apache-2.0 | Document language detection |
-
If you only use
pip install longparser— everything is MIT or Apache-2.0. You can use LongParser in any project (commercial, proprietary, open source). -
If you install
longparser[pymupdf]— thepymupdf4llmlibrary is AGPL-3.0 licensed. You must comply with AGPL terms for the PyMuPDF component, OR purchase a commercial license from Artifex. LongParser core code remains MIT. -
If you install
longparser[marker](future) — themarker-pdflibrary is GPL-3.0 licensed. You must comply with GPL terms for the Marker component. LongParser core code remains MIT.
LongParser uses lazy imports to ensure GPL/AGPL packages are never loaded unless explicitly requested. The following guarantees hold:
import longparserdoes NOT import any GPL/AGPL packagefrom longparser import DocumentPipelinedoes NOT import any GPL/AGPL packageDocumentPipeline().process_file("doc.pdf")does NOT import any GPL/AGPL package (uses Docling, which is MIT)- GPL/AGPL code is only loaded when you explicitly set
backend="pymupdf"orbackend="marker"inProcessingConfig