Skip to main content

Seanchaí

Seanchaí extracts Diameter command ABNFs and AVP definitions from 3GPP specifications, RFCs and a few other documents into one plain-text format, .dad. It gives you a parser and a resolved model over the result, so generating your stack's dictionary, or checking it against the specifications, takes a short script.

Each .dad file records what its source document says, mistakes included. The only edits are declared patches and corrections, each with its reason. The linter reports contradictions, and the Wireshark oracle compares the corpus with Wireshark's dictionary.

Browse the corpus online at seanchai-explorer.

Installing

Seanchaí needs Python 3.12 or newer.

pip install "seanchai[corpus]"   # the library and the corpus
pip install "seanchai[extract]"  # also rebuild the corpus from source documents

The library (seanchai) and the data (seanchai-corpus) are separate packages with separate versions (what the version covers).

from seanchai.model import Model

model = Model.installed()
model.resolve("TS29.229", "Public-Identity")

Commands

Read the installed corpus, with no checkout and no downloads:

seanchai show NAME_OR_IDENTITY [--json] # one AVP and its other readings
seanchai commands [REF | --application ID] [--json]
seanchai dictionary -o OUT.json         # the corpus as JSON, to generate from
seanchai export -o DIR                  # the corpus as JSON for the static site
seanchai export -o DIR --include-pdfs --specifications specifications
seanchai wireshark-plugin -o FILE.lua   # a Wireshark plugin checking traffic

Check and rewrite .dad files, the corpus's or your own sidecars:

seanchai lint [--corpus DIR | --no-corpus] [--show-accepted] [FILE.dad | DIR]...
seanchai format [--check] [FILE.dad | DIR]...  # canonical form, ;; comments kept

Maintain the corpus, from the root of a checkout:

seanchai corpus download                    # fetch the catalog into specifications/
seanchai corpus download --no-convert       # without LibreOffice; .doc unread
seanchai corpus download --only wireshark   # one source, keeping the others
seanchai corpus download --only transcribed # the hand transcriptions' PDFs
seanchai corpus download --spec SPECREF --version X.Y.Z   # an older version
seanchai corpus regenerate [--add SPECREF]  # rebuild the corpus from the downloads
seanchai corpus regenerate --expand-ranges  # also widen stale declaration ranges
seanchai corpus extract DOCX --pdf PDF --link URL [--corrections DIR] -o OUT.dad
seanchai corpus extract-rfc RFC.txt --link URL [--corrections DIR] -o OUT.dad
seanchai corpus correct RAW.dad --corrections DIR -o OUT.dad
seanchai corpus crosscheck [FILE.dad | DIR]...  # against Wireshark's dictionary

Commands exit 1 on an error or a finding and 2 on a usage error. corpus crosscheck exits 0 on findings.

Documentation

License

MIT, see LICENSE. The corpus contains text from 3GPP, ETSI, 3GPP2, OMA, oneM2M and IETF documents, which stay under their publishers' terms.

Metadata

Release files for seanchai 0.2.0

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

Source distribution (sdist)

Source distribution for seanchai 0.2.0
File Size Uploaded Provenance Actions
seanchai-0.2.0.tar.gz 326.0 kB With provenance Details for seanchai-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 687.9 kB

Release files / seanchai-0.2.0.tar.gz

Download URL seanchai-0.2.0.tar.gz
Size 326.0 kB
Tags Source
SHA-256 checksum
How to use checksums
afb92fe31e5dbba05fd0e557a929dd364df83493763083f58622f657f2a405b6
BLAKE2b-256 checksum
How to use checksums
91300c099b9e55402af0178fb51c78f84e99dbbaf9ce0505bdff71ba68daa365
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 12, 2026.

Transparency log

Release files / seanchai-0.2.0-py3-none-any.whl

Download URL seanchai-0.2.0-py3-none-any.whl
Size 361.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
55240ce12212298ae34b955526f5b92f2ca3fd159159abf20c5f7e6768b3eed6
BLAKE2b-256 checksum
How to use checksums
3feb6650e262f92b873c4c603a4fc81d896c75ac81f38cb781a89f73a397df0e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 12, 2026.

Transparency log

Security for seanchai 0.2.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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for seanchai-0.2.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 Nov 12, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files Full provenance

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