Skip to main content

Docling-serve remote converter for pgx-docling-parser

Project description

pgx-docling-parser-serve

Remote converter for pgx-docling-parser using docling-serve API.

This package provides a remote document converter that uses the docling-serve API for document processing.

Installation

Install this package directly from PyPI:

pip install pgx-docling-parser-serve

This will automatically install pgx-docling-parser-core as a dependency.

Configuration

Configure the converter using environment variables:

  • PAPERLESS_DOCLING_SERVE_URL: URL of the docling-serve instance (default: http://docling-serve:5000)
  • PAPERLESS_DOCLING_SERVE_TIMEOUT: Request timeout in seconds (default: 300.0)
  • PAPERLESS_DOCLING_POLL_MAX_ATTEMPTS: Maximum number of polling attempts (default: 60)
  • PAPERLESS_DOCLING_POLL_INTERVAL: Polling interval in seconds (default: 5.0)
  • PAPERLESS_DOCLING_PDF_CONVERSION_MODE: Conversion mode - easyocr, tesseract, or granite_docling (default: easyocr)

How It Works

The converter uses a simple 3-step workflow:

  1. Create Task: POST to /v1/convert/file/async to create an async conversion task
  2. Poll Status: Repeatedly GET /v1/status/poll/{task_id} until task completes (success/failure)
  3. Fetch Result: GET /v1/result/{task_id} to retrieve the converted document

The polling mechanism will retry up to PAPERLESS_DOCLING_POLL_MAX_ATTEMPTS times with PAPERLESS_DOCLING_POLL_INTERVAL seconds between attempts.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pgx_docling_parser_serve-0.1.18.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pgx_docling_parser_serve-0.1.18-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file pgx_docling_parser_serve-0.1.18.tar.gz.

File metadata

  • Download URL: pgx_docling_parser_serve-0.1.18.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pgx_docling_parser_serve-0.1.18.tar.gz
Algorithm Hash digest
SHA256 bc2db496e19fd1e8c3e0a7f7a4576e9b3811af8f8146708891142f987c9c1560
MD5 e4a607b664bfaeaf1c129a1dce931b10
BLAKE2b-256 6d6ec1bde4bc3819adbe0a86bb2801b97ac971c48b6e15ac724e99565f052fb3

See more details on using hashes here.

File details

Details for the file pgx_docling_parser_serve-0.1.18-py3-none-any.whl.

File metadata

  • Download URL: pgx_docling_parser_serve-0.1.18-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pgx_docling_parser_serve-0.1.18-py3-none-any.whl
Algorithm Hash digest
SHA256 4cd3939d6c0788f2adae232d549f0b19d8097aa47cd5f866fcadfe4b9a960df1
MD5 5f2aaa021960ff79611c6b877d1f15a4
BLAKE2b-256 4f1ae4dfe907bf288a06b4c048892b7af2292781450db862c460c44d17a27858

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page