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.19.tar.gz (4.7 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.19-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pgx_docling_parser_serve-0.1.19.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","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.19.tar.gz
Algorithm Hash digest
SHA256 834eabccfa53015c70c46834d965fd9905771d41bbd262096484633d9a03396a
MD5 6eed5c3cb07b5f132b731d4004292d72
BLAKE2b-256 9d80162c8f7db303fdde8b3e86b5d6715ea5cfdb7ac20c508f2ae9cb0fb57637

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pgx_docling_parser_serve-0.1.19-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","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.19-py3-none-any.whl
Algorithm Hash digest
SHA256 060baa6db6e4043e9eb02ad1290503c89cf3b6943552e452f2fec8c4fa0492bd
MD5 15123c6e97419f084d975ded64425ac0
BLAKE2b-256 f298e3e1d191117af352c1fbfed808abc85c7105dfe4d4148581267f274c639e

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