Thin, dependency-free client for the paperparse scientific-PDF extraction service.
Project description
paperparse-client
A thin, dependency-free Python client for the paperparse service — turn a scientific-paper PDF into structured output (figures + captions + sub-panels, tables, equations, body markdown) from any backend, without pulling in paperparse's heavy dependencies or source.
pip install paperparse-client
from paperparse_client import PaperparseClient
pp = PaperparseClient(
api_key="denario_live_...", # a denario-web key (issue at denario-web.vercel.app)
client_ref="skepthical:run_abc123", # opaque per-run id — REQUIRED for B2B keys
)
res = pp.parse("paper.pdf", out_dir="run/") # uploads, parses, downloads artifacts
print(res["title"], res["n_figures"], res["cost"]["cost_usd"])
for f in res["figures"]:
print(f["label"], f["path"], f["caption"][:60]) # f["path"] = local PNG (out_dir set)
- Stdlib only. No
requests, no paperparse code — just an HTTP wrapper. client_refis required. An opaque identifier the caller generates (a run id or a user hash). It's used only for attribution (stamped on the service's trace); paperparse never inspects it. B2B API keys reject calls that omit it.- Async + robust. Uses the service's job flow (upload → run → poll), so a long parse survives a dropped connection.
out_dirdownloads everything locally —document.md,figures.json, and each crop — and adds a localpathto every figure/panel/table/equation in the result.
The result shape is documented in the paperparse repo's CONTRACT.md (versioned via
schema_version). Upload is subject to the service's 32 MB request cap (papers are
virtually always under it).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file paperparse_client-0.1.2.tar.gz.
File metadata
- Download URL: paperparse_client-0.1.2.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
927f2a9ce440dd2cf298790ab52f3db8ad0a6b094ac75375c63497c2434433fd
|
|
| MD5 |
7f2df0779f7c1fbb62912e3208a2e609
|
|
| BLAKE2b-256 |
253f55f28fba443f69739c9cc0d3aafd0740b4f5399a02c134c7ad7122338eba
|
Provenance
The following attestation bundles were made for paperparse_client-0.1.2.tar.gz:
Publisher:
publish-client.yml on borisbolliet/paperparse
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
paperparse_client-0.1.2.tar.gz -
Subject digest:
927f2a9ce440dd2cf298790ab52f3db8ad0a6b094ac75375c63497c2434433fd - Sigstore transparency entry: 2153703292
- Sigstore integration time:
-
Permalink:
borisbolliet/paperparse@eaa21d5d820646d3afdbc3d2840f243410da0aa6 -
Branch / Tag:
refs/tags/client-v0.1.2 - Owner: https://github.com/borisbolliet
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-client.yml@eaa21d5d820646d3afdbc3d2840f243410da0aa6 -
Trigger Event:
push
-
Statement type:
File details
Details for the file paperparse_client-0.1.2-py3-none-any.whl.
File metadata
- Download URL: paperparse_client-0.1.2-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
774857f0daa5fdfa21db3a5bec3cdf44cfdbd33abd00929ae324158da53f970f
|
|
| MD5 |
41645910b646117526b6c157a0d328cb
|
|
| BLAKE2b-256 |
3d4daf15ab7a69571053ad17471d60833c4a67335d7901da890cd7ac74ed7b7b
|
Provenance
The following attestation bundles were made for paperparse_client-0.1.2-py3-none-any.whl:
Publisher:
publish-client.yml on borisbolliet/paperparse
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
paperparse_client-0.1.2-py3-none-any.whl -
Subject digest:
774857f0daa5fdfa21db3a5bec3cdf44cfdbd33abd00929ae324158da53f970f - Sigstore transparency entry: 2153703502
- Sigstore integration time:
-
Permalink:
borisbolliet/paperparse@eaa21d5d820646d3afdbc3d2840f243410da0aa6 -
Branch / Tag:
refs/tags/client-v0.1.2 - Owner: https://github.com/borisbolliet
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-client.yml@eaa21d5d820646d3afdbc3d2840f243410da0aa6 -
Trigger Event:
push
-
Statement type: