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
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 1.928s · 44.1MB
glibcpy 3.10–3.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
✓ from grobid_client.grobid_client import GrobidClient
✗ from grobid_client import GrobidClient
GrobidClient is in grobid_client module, not top-level package
GrobidClient
✓ from grobid_client import GrobidClient
✗ import grobid_client
Importing grobid_client alone does not expose GrobidClient; must import explicitly
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")
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'grobid_client'
The package is installed as 'grobid-client-python', but the import path uses underscore. Mistaking package name for import name.
fixInstall with 'pip install grobid-client-python', then import correctly: from grobid_client.grobid_client import GrobidClient
AttributeError: module 'grobid_client' has no attribute 'GrobidClient'
Trying to import GrobidClient from the top-level grobid_client package without specifying the submodule.
fixUse: from grobid_client.grobid_client import GrobidClient
ConnectionError: HTTPConnectionPool(host='localhost', port=8070): Max retries exceeded
No GROBID server running at the default URL.
fixStart GROBID server or provide a different grobid_server URL pointing to a running instance.
ValueError: The 'input' parameter must be a file path or a directory.
Passing a non-existent path or invalid file type (not PDF or XML).
fixEnsure input exists and is a valid PDF or TEI XML file, or include a directory containing such files.
Upgrade
Version history
0.1.4latest on PyPI · released Jan 9, 2026
Audit
Dependencies
No dependency data recorded yet.