mirror of
https://github.com/p2p-ld/numpydantic.git
synced 2024-11-12 17:54:29 +00:00
Type and shape validation and serialization for numpy arrays in pydantic models
.github/workflows | ||
docs | ||
numpydantic | ||
tests | ||
.gitignore | ||
.readthedocs.yaml | ||
LICENSE | ||
poetry.lock | ||
pyproject.toml | ||
README.md |
numpydantic
Type and shape validation and serialization for numpy arrays in pydantic models
This package was picked out of nwb-linkml, a translation of the NWB schema language and data format to linkML and pydantic models.
It does two primary things:
- Provide types - Annotations (based on npytyping) for specifying numpy arrays in pydantic models, and
- Generate models from LinkML - extend the LinkML pydantic generator to create models that that use the linkml-arrays syntax