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,
                  prompt_parts=None, cache_blocks=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); 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.3

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.3
File Size Uploaded Provenance Actions
xtremeparse-0.1.3.tar.gz 156.8 kB Without provenance Details for xtremeparse-0.1.3.tar.gz

Built distribution (wheel)

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

Total release size: 258.2 kB

Release files / xtremeparse-0.1.3.tar.gz

Download URL xtremeparse-0.1.3.tar.gz
Size 156.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a0e1c53a05bd071a34b2ae4113ea6d3a6b1d4b64893e26bc4fbdcc62513d46bc
BLAKE2b-256 checksum
How to use checksums
6effb83726a5668e80dc85f92aeecf0b611918e4e7a66f32a8eac11ee135a5b8
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.3-py3-none-any.whl

Download URL xtremeparse-0.1.3-py3-none-any.whl
Size 101.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ce2fac24741d11e459adb730be02a3fcf17d9196df5965ab252b3ccd8c7422b5
BLAKE2b-256 checksum
How to use checksums
5a511f2e046cf7bef2d9dd48625c658b28ab8d6137f74cd7073e7db5583de60a
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.3

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