XtremeParse
"Feed it text and a schema. Get structure back — fast."
XtremeParse is an extreme-concurrency structured-extraction engine for LLM pipelines. Given plain text and a JSON Schema, it:
- Chunks the text deterministically (markdown structure → sentence punctuation → character windows — single-line inputs included).
- Routes chunks to extraction units via one light agent call that outputs only an index map (minimal output tokens, maximal speed) and itemizes repeated content for fan-out.
- Fans out one specialist per unit — per item for long repeated sections, whole-array for short ones — under xtremeflow's scheduler.
- Self-corrects: validates the merged result with your validator, routes issues back to the failing specialists, and re-runs only them with the errors appended to their conversation history.
The full-text prefix is shared across all calls to maximize provider-side KV-cache hits; the router runs first and warms the cache for the fleet behind it.
Quick start
from xtremeparse import Extractor
class MyRunner: # adapt your agent framework (PydanticAI, ...)
async def run(self, *, instructions, result_schema, content,
scope=None, tools=None, history=None, feedback=None): ...
extractor = Extractor(MyRunner())
result = await extractor.extract(text, json_schema, validator)
result.data # best-effort schema-shaped dict
result.issues # unresolved error-level issues (lenient, never raises)
result.trace # chunks, router index map, specialist calls, correction rounds
Neutral by design
The library has zero vendor dependencies beyond xtremeflow. It never
imports your schema tool, your agent framework, or your validator:
- Structure contract — JSON Schema dict in, schema-conforming dict out.
- Validation contract — you inject a
validatorcallable returning error-levelIssueobjects (anything withpath/code/message/expected/gotconforms, zero adapter code). - Agent contract — you adapt an
AgentRunnerto your framework (PydanticAI, or whatever comes next).
Extraction never raises on imperfect data: ExtractionResult.data is the
best effort and .issues tells the truth. Strictness is your policy.
Tuning knobs (constructor): unit_strategy={'path': 'per-item' | 'whole'}
prior knowledge for array units, output_budgets={'path': n | [n, ...]}
to override the router's own @<n> arrangements, max_rounds for the
correction budget, max_chars for chunk size, max_concurrency for the
scheduler. The three pipeline prompts are replaceable too —
router_instructions / recount_instructions / specialist_instructions
(see docs/prompting.md; the routing DSL they elicit
is a public contract, docs/dsl.md).
Trace contract
result.trace is eval-facing API — stable keys, populated by the
pipeline stages:
| key | shape |
|---|---|
chunks |
the chunk list the router saw |
router |
{'counts': {path: n}, 'assignments': [{'unit', 'item', 'chunks'}], 'budgets': {path: n | [n, ...]}} |
groups |
one per specialist call: {'unit', 'kind', 'item', 'strategy', 'chunk_ids', 'budget', 'batch'} |
corrections |
one per re-run: {'unit_path', 'item', 'issue_paths'} |
prompts |
per prompt slot: 'default' or #<sha1-8> of a host override |
Eval support: xtremeparse.evalkit (zero-dep) reads budgets and router
invariants back out of a trace; xtremeparse.judging runs one rubric
call through the same AgentRunner neutrality (bring your own judge —
a model other than the extraction fleet's and temperature 0 both read
better, measured); pip install xtremeparse[evals] adds pydantic-evals
adapters (RouterOverlap, BudgetFit, RubricJudge) over those
mechanisms for hosts building regression suites.
Status
Pipeline complete (chunk → route → fan out → merge → correct), 160+
deterministic tests, zero LLM required for the suite. See
apps/cvspectra/docs/ in the cohirerx monorepo for the governing design
and implementation plan.
Metadata
Release files for xtremeparse 0.1.0
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 |
|---|---|---|---|---|
| xtremeparse-0.1.0.tar.gz | 52.2 kB | Without provenance | Details for xtremeparse-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| xtremeparse-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for xtremeparse-0.1.0-py3-none-any.whl |
Total release size: 90.1 kB
Release files / xtremeparse-0.1.0.tar.gz
| Download URL | xtremeparse-0.1.0.tar.gz |
|---|---|
| Size | 52.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0a1cc39d463b36a133230ae68ba0f38b56c874390aeb84ffcfcd293f36167d35
|
|
BLAKE2b-256 checksum How to use checksums |
ee8f14c8c2288f7976fb4cfc6edbf7c618eeb75a67c28f14134f3135876b496a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / xtremeparse-0.1.0-py3-none-any.whl
| Download URL | xtremeparse-0.1.0-py3-none-any.whl |
|---|---|
| Size | 37.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
03d9d197e87aaeffbdd7dd46c2de4de877e53cf991ac434f01a716fb6dcf9ef9
|
|
BLAKE2b-256 checksum How to use checksums |
3d21c85248bb5ddf3434c1d3dc6b56be11fd600e99411c88c80ca77ab6f60ecc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for xtremeparse 0.1.0
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.