Metadata-Version: 2.5
Name: dnd5e-srd-data
Version: 0.8.2
Summary: Nat20 dataset: the D&D 5e SRD 5.2 as typed Python models (monsters, spells, items, classes, feats). CC-BY-4.0.
Project-URL: Homepage, https://github.com/tapestria/nat20
Project-URL: Documentation, https://tapestria.github.io/nat20/
Project-URL: Repository, https://github.com/tapestria/nat20
Project-URL: Issues, https://github.com/tapestria/nat20/issues
Project-URL: Changelog, https://github.com/tapestria/nat20/releases
License: CC-BY-4.0
License-File: LICENSE
License-File: NOTICE
Keywords: 5e,dataset,dnd,dnd5e,monsters,nat20,spells,srd,srd-5.2,tabletop-rpg,ttrpg
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Games/Entertainment :: Role-Playing
Classifier: Typing :: Typed
Requires-Python: >=3.12
Requires-Dist: pydantic>=2.7
Provides-Extra: dev
Requires-Dist: bandit>=1.8.0; extra == 'dev'
Requires-Dist: mypy>=1.10; extra == 'dev'
Requires-Dist: pytest-asyncio>=0.23; extra == 'dev'
Requires-Dist: pytest-cov>=6.0.0; extra == 'dev'
Requires-Dist: pytest>=8.0; extra == 'dev'
Requires-Dist: pyyaml>=6.0; extra == 'dev'
Requires-Dist: ruff>=0.5; extra == 'dev'
Description-Content-Type: text/markdown

# dnd5e-srd-data

The dataset of [Nat20](https://github.com/tapestria/nat20): the D&D 5e SRD 5.2
(CC-BY-4.0) as typed Python models, shipped inside the package. No network, no database.
The [dnd5e-engine](https://pypi.org/project/dnd5e-engine/) rules engine resolves combat
against it, and it works on its own as a typed SRD lookup.

```bash
pip install dnd5e-srd-data
```

## Usage

```python
from dnd5e_srd_data import BundledAssetLoader

loader = BundledAssetLoader()
aboleth = loader.get_monster("aboleth")
print(aboleth.hp)  # 135
```

## License

Dataset content is CC-BY-4.0. See `NOTICE` for attribution chain.
Schema and tooling code is MIT-aligned and lives in the same package
for distribution convenience.

## Regenerating canonical data

```bash
make refresh-upstream    # pulls vendored Foundry + open5e snapshots
make regen               # translates + audits + writes canonical/*.json
```

The pinned upstream sources are recorded in `raw_sources/PINS.json` and
`raw_sources/README.md`; the raw snapshots are regenerated locally, not distributed.
