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.
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
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
- Using the model, the CLI's JSON and the corpus
- The site export
- The
.dadformat - Extraction and corrections
- Checking traffic with a Wireshark plugin
- Development
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.1.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 |
|---|---|---|---|---|
| seanchai-0.1.0.tar.gz | 294.4 kB | With provenance | Details for seanchai-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| seanchai-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for seanchai-0.1.0-py3-none-any.whl |
Total release size: 622.4 kB
Release files / seanchai-0.1.0.tar.gz
| Download URL | seanchai-0.1.0.tar.gz |
|---|---|
| Size | 294.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eeaf7180cc962dc677ef740bc61ee90de0cc66949872867671482a3c9a62b8a0
|
|
BLAKE2b-256 checksum How to use checksums |
0e4c20bcc380738a2bff0d3939060819ac2ca65b34fb2bc6847e01a5650dc625
|
| 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 11, 2026.
Transparency logRelease files / seanchai-0.1.0-py3-none-any.whl
| Download URL | seanchai-0.1.0-py3-none-any.whl |
|---|---|
| Size | 328.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6e9d9ddd13439219702ec5f4d9641da2221a7b19158caf830b0122bd98018a97
|
|
BLAKE2b-256 checksum How to use checksums |
0e39c14385ec74257587a9546f30e57e8452b6125caa2edd62269948dc7034f8
|
| 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 11, 2026.
Transparency logSecurity for seanchai 0.1.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.
Attestation for seanchai-0.1.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 11, 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.