pgx-docling-parser-serve 0.0.0.dev0__tar.gz → 0.1.10__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pgx-docling-parser-serve might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pgx-docling-parser-serve
3
- Version: 0.0.0.dev0
3
+ Version: 0.1.10
4
4
  Summary: Docling-serve remote converter for pgx-docling-parser
5
5
  Author: T-Eberle
6
6
  License-Expression: MIT
@@ -18,12 +18,14 @@ This package provides a remote document converter that uses the docling-serve AP
18
18
 
19
19
  ## Installation
20
20
 
21
- This package is automatically installed when you install the main package with the `docling-serve` extra:
21
+ Install this package directly from PyPI:
22
22
 
23
23
  ```bash
24
- pip install pgx-docling-parser[docling-serve]
24
+ pip install pgx-docling-parser-serve
25
25
  ```
26
26
 
27
+ This will automatically install `pgx-docling-parser-core` as a dependency.
28
+
27
29
  ## Configuration
28
30
 
29
31
  Configure the converter using environment variables:
@@ -6,12 +6,14 @@ This package provides a remote document converter that uses the docling-serve AP
6
6
 
7
7
  ## Installation
8
8
 
9
- This package is automatically installed when you install the main package with the `docling-serve` extra:
9
+ Install this package directly from PyPI:
10
10
 
11
11
  ```bash
12
- pip install pgx-docling-parser[docling-serve]
12
+ pip install pgx-docling-parser-serve
13
13
  ```
14
14
 
15
+ This will automatically install `pgx-docling-parser-core` as a dependency.
16
+
15
17
  ## Configuration
16
18
 
17
19
  Configure the converter using environment variables:
@@ -1,15 +1,10 @@
1
1
  [build-system]
2
- requires = ["hatchling>=1.24", "hatch-vcs>=0.3.0"]
2
+ requires = ["hatchling>=1.24"]
3
3
  build-backend = "hatchling.build"
4
4
 
5
- [tool.hatch.version]
6
- source = "vcs"
7
- root = "../.."
8
- fallback-version = "0.0.0.dev0"
9
-
10
5
  [project]
11
6
  name = "pgx-docling-parser-serve"
12
- dynamic = ["version"]
7
+ version = "0.1.10"
13
8
  description = "Docling-serve remote converter for pgx-docling-parser"
14
9
  readme = "README.md"
15
10
  requires-python = ">=3.10,<3.14"
@@ -25,13 +20,16 @@ dependencies = [
25
20
  "tenacity>=8.2.0",
26
21
  ]
27
22
 
23
+ [project.entry-points."paperless_ngx.parsers"]
24
+ docling = "pgx_docling_serve.parsers:DoclingRemoteParser"
25
+
28
26
  [tool.uv.sources]
29
27
  pgx-docling-parser-core = { path = "../core", editable = true }
30
28
 
31
29
  [tool.hatch.build.targets.wheel]
32
- packages = ["src/docling_serve"]
30
+ packages = ["src/pgx_docling_serve"]
33
31
 
34
32
  [tool.hatch.build.targets.sdist]
35
33
  include = [
36
34
  "src/",
37
- ]
35
+ ]
@@ -0,0 +1,8 @@
1
+ from pgx_docling_serve.serve import DoclingRemoteConverter
2
+ from pgx_docling.parsers import DoclingParser
3
+
4
+
5
+ class DoclingRemoteParser(DoclingParser):
6
+
7
+ def __init__(self) -> None:
8
+ super().__init__(converter=DoclingRemoteConverter())
@@ -6,7 +6,7 @@ from typing import Dict, Any
6
6
  import httpx
7
7
  from docling_core.types.doc.document import DoclingDocument
8
8
 
9
- from core import BaseDoclingConverter, get_pdf_conversion_mode
9
+ from pgx_docling import BaseDoclingConverter, get_pdf_conversion_mode
10
10
 
11
11
  # Configure logging
12
12
  logger = logging.getLogger(__name__)