Simple python client for GROBID REST services
This Python client is used to process a single PDF document by the GROBID service. Results are returned in an XML format.
Build and run
You need first to install and start the grobid service, latest stable version, see the documentation. The default server host is localhost and port is 8080. The GrobidClient can be configure via host and port.
Requirements
This client has been developed and tested with Python 3.7.
Install
pip install pygrobid
Usage and options
You can take a quick test via python tests.py pdf_file -h host -p port
In your code:
from grobid.client import GrobidClient
client = GrobidClient(host, port)
rsp = client.serve(service_name, pdf_file)
rsp = client.serve(service_name, pdf_file, consolidate_header=1)
upgrade history
- 0.1.6: support coordinates
Acknoledgement
This project is based on grobid-python-client by Patrice Lopez (patrice.lopez@science-miner.com)
Metadata
Release files for pygrobid 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pygrobid-0.1.6.tar.gz | 3.8 kB | Without provenance | Details for pygrobid-0.1.6.tar.gz |
Release files / pygrobid-0.1.6.tar.gz
| Download URL | pygrobid-0.1.6.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3857f6b6556101d32f1eaec06767e8f94697d5d3dc4476edf7f315f2ce766e1b
|
|
BLAKE2b-256 checksum How to use checksums |
32befb9b6ab9dfc14091ce915814863864d054d356d79502a97bc76f1271016d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.2
|
Security for pygrobid 0.1.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.