Skip to main content

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:

  1. Chunks the text deterministically (markdown structure → sentence punctuation → character windows — single-line inputs included).
  2. 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.
  3. Fans out one specialist per unit — per item for long repeated sections, whole-array for short ones — under xtremeflow's scheduler.
  4. Self-corrects: validates the merged result with your validator, routes issues back to the failing specialists, and re-runs only them — asking for a JSON Patch (RFC 6902) against their previous result, so untouched entries cannot collapse in a rewrite. Router repairs diff the model's own previous answer the same way.

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 validator callable returning error-level Issue objects (anything with path/code/message/ expected/got conforms, zero adapter code).
  • Agent contract — you adapt an AgentRunner to 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), 200+ deterministic tests, zero LLM required for the suite.

Metadata

Release files for xtremeparse 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xtremeparse 0.1.1
File Size Uploaded Provenance Actions
xtremeparse-0.1.1.tar.gz 116.2 kB Without provenance Details for xtremeparse-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for xtremeparse 0.1.1
File Interpreter ABI Platform Actions
xtremeparse-0.1.1-py3-none-any.whl Python 3 none any Details for xtremeparse-0.1.1-py3-none-any.whl

Total release size: 195.5 kB

Release files / xtremeparse-0.1.1.tar.gz

Download URL xtremeparse-0.1.1.tar.gz
Size 116.2 kB
Tags Source
SHA-256 checksum
How to use checksums
41f4677b20a4f086f32c55954e44bfc9b1942aede1c56eb63f0556dcac13f650
BLAKE2b-256 checksum
How to use checksums
5e9d0486807db541823cc766549ce9401730daba27b73fb9b3951837479affb2
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.1-py3-none-any.whl

Download URL xtremeparse-0.1.1-py3-none-any.whl
Size 79.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
32e8c311ba7a4d233f305dbd533a4c86b0a02d02fc30c729b0c1c928e737bb7c
BLAKE2b-256 checksum
How to use checksums
6c5f5ddd7a4806be3d3f43cd83d4f3e16efd8978d81dde1585d8e5e4acc7fb28
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.1

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page