Registry / data / grobid-client-python

grobid-client-python

JSON →
library0.1.4pypypi✓ verified 34d ago

Simple Python client for GROBID REST services. Current version: 0.1.4. Release cadence: irregular, with several fixes in 2024-2025.

datahttp-networkingai-ml
Install & Compatibility
Where this runs
tested against v0.1.4 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 1.928s · 44.1MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 4.0s · import 1.784s · 45MB
43MB installed
● package 43MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

GrobidClient is in grobid_client module, not top-level package

from grobid_client.grobid_client import GrobidClient

Importing grobid_client alone does not expose GrobidClient; must import explicitly

from grobid_client import GrobidClient

Initialize client with default config and process a PDF.

from grobid_client.grobid_client import GrobidClient client = GrobidClient(config_path=None, grobid_server='http://localhost:8070') client.process("processFulltextDocument", "input.pdf", output="output/") print("Done")
Debug
Known footguns
gotchaThe client expects a running GROBID server at the specified URL. Without it, all API calls will raise ConnectionError.
breakingVersion 0.1.0 changed the default output format to JSON and Markdown. The process() method now returns dicts and writes files differently. Old code expecting raw TEI XML may break.
gotchaThe batch size default changed to 10 in v0.0.17 to avoid unexpected behaviors. Large batches may cause server timeouts.
gotchaThe client uses synchronous requests. Processing many PDFs can block the calling thread for a long time.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
23 hits · last 30 days
gptbot
4
amazonbot
4
ahrefsbot
3
claudebot
3
script
1
bingbot
1
Resources