Metadata-Version: 2.4
Name: seanchai-corpus
Version: 2026.11.11
Summary: Diameter command ABNFs and AVP definitions as .dad files
Keywords: diameter,3gpp,avp,abnf,rfc6733
Author: sliva0
Author-email: sliva0 <sliva0mk@gmail.com>
License-Expression: MIT
License-File: LICENSE
License-File: NOTICE
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Telecommunications Industry
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Communications :: Telephony
Classifier: Topic :: System :: Networking
Classifier: Typing :: Typed
Requires-Python: >=3.10
Project-URL: Homepage, https://github.com/sliva0/seanchai
Project-URL: Docs, https://github.com/sliva0/seanchai/blob/main/docs/dad-format.md
Project-URL: Issues, https://github.com/sliva0/seanchai/issues
Description-Content-Type: text/markdown

# seanchai-corpus

The data of [Seanchaí](https://github.com/sliva0/seanchai): Diameter command
ABNFs and AVP definitions from 3GPP specifications, RFCs and a few other
documents, as `.dad` files. It holds:

- the corrected files and their raw mirror;
- the record of known holes and of each correction's reason;
- `corpus.toml`: the corpus's format, and the rules for which version of a
  document a citation means, each with its evidence.

It has no dependencies and needs Python 3.10 or newer. The
[`seanchai`](https://pypi.org/project/seanchai/) library that reads it needs
Python 3.12 or newer.

```sh
pip install seanchai-corpus
```

```python
import seanchai_corpus

seanchai_corpus.CORPUS_DIR  # a pathlib.Path: 3gpp/, raw/, corpus.toml, ...
seanchai_corpus.__version__  # the date the corpus was regenerated
```

`seanchai` finds it with no path:

```python
from seanchai.model import Model

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

The version is the date the corpus was regenerated, as `YEAR.MONTH.DAY` with
no leading zeros. `format` in `corpus.toml` names the generation of the
grammar and layout the files use. A `seanchai` that cannot read that format
refuses the corpus and says which package to upgrade. The
[format](https://github.com/sliva0/seanchai/blob/main/docs/dad-format.md) and
[grammar](https://github.com/sliva0/seanchai/blob/main/docs/grammar.md) are
documented in the repository.

## License

MIT, see
[LICENSE](https://github.com/sliva0/seanchai/blob/main/packages/seanchai-corpus/LICENSE).
The definitions come from 3GPP, ETSI, 3GPP2, OMA, oneM2M and IETF documents,
which stay under their publishers' terms, as
[NOTICE](https://github.com/sliva0/seanchai/blob/main/packages/seanchai-corpus/NOTICE)
says.
