demystify-extract
Python client SDK for dmstfy-extract — schema-first document extraction with generated Pydantic v2 models for the starter schema library (invoice, bank statement, resume, contract, email).
Not yet published to PyPI. Until then, use it via the monorepo (see the module README's "Use as your own repo" section) or an editable/path install.
pip install demystify-extract # once published — httpx + pydantic v2
What you get
- Generated Pydantic models for each library schema version (
InvoiceV1, …) that validate the API result shape, including the{raw, value}normalization envelope. - Envelope accessors —
field_value/field_raw/is_normalized_field.
The normalization envelope
Fields whose schema carries x-demystify-normalize: date|amount|name come back
as {"raw": ..., "value": ...}. raw is the text exactly as printed; value
is canonical (ISO 8601 date / integer minor units / cleaned name). Amount
envelopes add currency (ISO 4217 or None) and exponent (minor-unit scale —
INR/USD 2, JPY 0, BHD 3), so ¥1234 →
{"raw": "¥1234", "value": 1234, "currency": "JPY", "exponent": 0}.
from demystify_extract.generated import InvoiceV1
from demystify_extract import field_value
invoice = InvoiceV1.model_validate(result["data"])
field_value(invoice.total_amount) # integer minor units
Results carry a top-level result_format: "normalized@1" version tag.
See the module README for the full API, offline quickstart, and architecture.
License
MIT
Metadata
Release files for demystify-extract 0.3.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 |
|---|---|---|---|---|
| demystify_extract-0.3.0.tar.gz | 40.3 kB | With provenance | Details for demystify_extract-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| demystify_extract-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for demystify_extract-0.3.0-py3-none-any.whl |
Total release size: 53.5 kB
Release files / demystify_extract-0.3.0.tar.gz
| Download URL | demystify_extract-0.3.0.tar.gz |
|---|---|
| Size | 40.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ee1dbacc3b427638e8da62535efaa684c10c948159fcac1fc9e179cd525ae377
|
|
BLAKE2b-256 checksum How to use checksums |
bf5a5d3da65e05914f8e33a47463d96180592ee7a2579d0b02dd0f0066bdf10b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 17, 2026.
Transparency logRelease files / demystify_extract-0.3.0-py3-none-any.whl
| Download URL | demystify_extract-0.3.0-py3-none-any.whl |
|---|---|
| Size | 13.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ed090f2ebb9c03469284f8e5d20fe493e9a9c49d4030b4ddc63661808b29429a
|
|
BLAKE2b-256 checksum How to use checksums |
e29b5d085587373e1860aedc14547458e3d3f7497ebdc7acf3ec31f0c1c258d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 17, 2026.
Transparency logSecurity for demystify-extract 0.3.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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for demystify_extract-0.3.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 17, 2026.
Transparency logA 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.