oxedi
A fast, lossless parser and writer for X12 EDI 835 files (electronic remittance advice). The core is written in Rust and is available from Python and from DuckDB.
- Lossless. Every byte of the file is kept. Nothing is silently dropped, and the file can be written back exactly as it was read.
- Ready-made tables. Payments, claims, service lines and adjustments come out as typed tables that open in Polars, pandas, pyarrow or DuckDB.
- Problems are reported, not raised. Questionable data still parses. Each issue is a diagnostic that names the rule, the position and the value.
Documentation: https://javillegas.dev/oxedi/latest/. New here? Start with the five-minute tutorial, or try it in your browser: drop a file on the page and see its tables and problems. Nothing is uploaded.
Install
pip install oxedi # no Python dependencies
pip install "oxedi[polars]" # or [pandas], [pyx12], [edi-835-parser]
Requires Python 3.11 or later. For DuckDB:
INSTALL oxedi FROM community;
LOAD oxedi;
INSTALL gives extension 0.1.x, which reads files. Writing with COPY needs 0.2.0, which is
not in the community repository yet. See DuckDB.
Read
import oxedi
result = oxedi.parse_file("remittance.835") # or oxedi.parse(data) from bytes
claims = result.tables["claims"].to_polars() # or .to_pandas()
print(result.count_claims(), result.sum_payments()) # sum_payments() is a Decimal
print(result.payer["name"], result.payee["name"])
for diagnostic in result.diagnostics: # problems come back as data
print(diagnostic)
A file that is not an 835 raises oxedi.ParseError; anything else parses. oxedi.stream
yields one transaction at a time for large files.
Write
Parse, change a value, write:
import datetime
import polars as pl
frames = result.tables.to_polars() # {table name: polars frame}
frames["payments"] = frames["payments"].with_columns(trace_number=pl.lit("CHK100235"))
envelope = oxedi.Envelope(
sender_id="ACMEPAYER",
receiver_id="SUNRISECLINIC",
date=datetime.date(2024, 1, 10),
time=datetime.time(9, 0),
)
data = oxedi.write(frames, envelope, spec=result.spec) # bytes, one interchange
The writer is strict: if the money does not balance or the file would not read back clean, it
raises oxedi.WriteError and writes nothing.
DuckDB
FROM read_835('remits/*.835', table_name := 'services', filename := true);
-- the findings of the parse, one row each
FROM read_835('remits/*.835', table_name := 'diagnostics', ignore_errors := true);
Documentation
| Page | What is in it |
|---|---|
| Get started | A five-minute tutorial on an example file |
| The 835 in five minutes | What a remittance holds and how it maps to the tables |
| Reading | Tables in depth, large files, diagnostics |
| Writing | The envelope, your own tables, when the writer refuses |
| DuckDB | read_835 parameters, COPY options, limits |
| The spec | Spec versions (5010, 4010) and patches |
| Validating with pyx12 | What validate reports and where |
| Recipes | A Parquet lakehouse, Polars analytics, pipelines |
| Tables and columns | Every column, its type and its source element; a glossary |
| API reference | Every public function and class |
| Migrating from edi-835-parser | Change the import, or move to the native API |
| Roadmap | What is available, what comes next, what is being considered |
Versioning, contributing, license
Semantic versioning; while the version is 0.x, a minor release may change the API. See
CHANGELOG.md, CONTRIBUTING.md and
ARCHITECTURE.md. MIT license, see LICENSE and THIRD_PARTY_NOTICES.
Metadata
Release files for oxedi 0.6.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 |
|---|---|---|---|---|
| oxedi-0.6.0.tar.gz | 376.9 kB | With provenance | Details for oxedi-0.6.0.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| oxedi-0.6.0-cp311-abi3-win_amd64.whl | CPython 3.11 | abi3 | Windows x86-64 | Details for oxedi-0.6.0-cp311-abi3-win_amd64.whl |
| oxedi-0.6.0-cp311-abi3-musllinux_1_2_x86_64.whl | CPython 3.11 | abi3 | Linux musl 1.2+ x86-64 | Details for oxedi-0.6.0-cp311-abi3-musllinux_1_2_x86_64.whl |
| oxedi-0.6.0-cp311-abi3-manylinux_2_28_x86_64.whl | CPython 3.11 | abi3 | Linux glibc 2.28+ x86-64 | Details for oxedi-0.6.0-cp311-abi3-manylinux_2_28_x86_64.whl |
| oxedi-0.6.0-cp311-abi3-manylinux_2_28_aarch64.whl | CPython 3.11 | abi3 | Linux glibc 2.28+ ARM64 | Details for oxedi-0.6.0-cp311-abi3-manylinux_2_28_aarch64.whl |
| oxedi-0.6.0-cp311-abi3-macosx_11_0_arm64.whl | CPython 3.11 | abi3 | macOS 11.0+ ARM64 | Details for oxedi-0.6.0-cp311-abi3-macosx_11_0_arm64.whl |
| oxedi-0.6.0-cp311-abi3-macosx_10_12_x86_64.whl | CPython 3.11 | abi3 | macOS 10.12+ x86-64 | Details for oxedi-0.6.0-cp311-abi3-macosx_10_12_x86_64.whl |
Total release size: 8.5 MB
Release files / oxedi-0.6.0.tar.gz
| Download URL | oxedi-0.6.0.tar.gz |
|---|---|
| Size | 376.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
30140e10df50a53309414877e6f09dff883834210d65c42d273fddc7708f72a9
|
|
BLAKE2b-256 checksum How to use checksums |
33335912e10006e43563f3824d2e2ba73ac6e1c6c2843280991a8bcd590f24a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 18, 2026.
Transparency logRelease files / oxedi-0.6.0-cp311-abi3-win_amd64.whl
| Download URL | oxedi-0.6.0-cp311-abi3-win_amd64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.11 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
73f71e32424c38eee86809c3832e93d08b6cec5a5c2ae80b585f6849671ea93c
|
|
BLAKE2b-256 checksum How to use checksums |
1f4ec0b33d5ecafdc470bf0e061ddc8b0f752c33d3a0079c54f783dbeecadbc0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 18, 2026.
Transparency logRelease files / oxedi-0.6.0-cp311-abi3-musllinux_1_2_x86_64.whl
| Download URL | oxedi-0.6.0-cp311-abi3-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.11 Linux musl 1.2+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
32964895703ea6c1fdd7dece9ddd10fa9808926b64c90277d212d5d3fbdbecec
|
|
BLAKE2b-256 checksum How to use checksums |
fe53922d2e36b90abc780933da855a13b92881dec35aef8456a3b89e95346aa9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 18, 2026.
Transparency logRelease files / oxedi-0.6.0-cp311-abi3-manylinux_2_28_x86_64.whl
| Download URL | oxedi-0.6.0-cp311-abi3-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.11 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
7a6db72355686062241a5a0339b4f748b10f7386a46f9d6c789ccf67f91cc55b
|
|
BLAKE2b-256 checksum How to use checksums |
359a83fec958a2d24ee7178ccdc849dc2aaab38105725f98f8b387d69037af86
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 18, 2026.
Transparency logRelease files / oxedi-0.6.0-cp311-abi3-manylinux_2_28_aarch64.whl
| Download URL | oxedi-0.6.0-cp311-abi3-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.11 Linux glibc 2.28+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
eccc127a247b0d4e5ad7efbbd329009e3c6591374e3acc27bc1913be45911957
|
|
BLAKE2b-256 checksum How to use checksums |
da7e8136f8226ead606c98afde8de2c3742f2191e0dc4e8ec31a212c9232abc8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 18, 2026.
Transparency logRelease files / oxedi-0.6.0-cp311-abi3-macosx_11_0_arm64.whl
| Download URL | oxedi-0.6.0-cp311-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.11 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
db258566754f06225b06995f6668b43c506cb459bad30e96b6817544095b7e0e
|
|
BLAKE2b-256 checksum How to use checksums |
4f98f06b0b8376434b889d51d5ee98c11a3878e0118aaf8658b071597747e758
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 18, 2026.
Transparency logRelease files / oxedi-0.6.0-cp311-abi3-macosx_10_12_x86_64.whl
| Download URL | oxedi-0.6.0-cp311-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.11 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
ae270b084fd08bbd542c2c0d23024fc8d798b444f680f44da0d31dd3da08ddb9
|
|
BLAKE2b-256 checksum How to use checksums |
66f9e20c141c4ae9a1c1de46c777ed1ecdd5af6ce4420860afe92555f23501af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 18, 2026.
Transparency logSecurity for oxedi 0.6.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 7 files in this release have been uploaded with provenance metadata.
Attestation for oxedi-0.6.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 Oct 18, 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.