biodata-models
Installation
biodata-models provides controlled vocabulary and registry models for biodata-schema. You shouldn't generally install this package in isolation.
Contributing
Install the dev dependencies:
pip install -e .[dev]
How to add a new model class
tl;dr
Add new classes to the _generators/models/*.csv files or create new files containing Enum-derived classes directly in the src folder.
Run ./run_all.sh in the top-level folder to rebuild models from their CSV files.
Details
The model class files, brain_atlas.py etc, are auto-generated. You should never need to modify the class files directly.
Instead, take a look at the jinja2 templates in the folder _generators/templates. The filename of the template is used to pull the corresponding .csv file and populate the data DataFrame. In the template you can pull data from the various columns and use them to populate each of the fields in your class.
To re-build all the models, run the run_all.sh bash script in the root folder, which loops through the template files and runs them through the generate_code function.
There are a few special cases, e.g. if data are missing in columns they will show up as float: nan. See the organizations.txt template for examples of how to handle this.
Documentation
Internal registries need to be enumerated in the aind-data-schema file src/aind_data_schema/utils/docs/registries_generator.py in the variable registries. This list controls what classes will have documentation automatically generated and cross-referenced correctly.
If you add a new external registry, you need to write the documentation manually in the aind-data-schema file docs/source/biodata_models/external.md.
Metadata
Release files for biodata-models 2.0.2
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 | |
|---|---|---|---|---|
| biodata_models-2.0.2.tar.gz | 146.6 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| biodata_models-2.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 259.9 kB
Release files / biodata_models-2.0.2.tar.gz
| Download URL | biodata_models-2.0.2.tar.gz |
|---|---|
| Size | 146.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
babdf2da0552e23ae702e08584ceec28b74b1396335ba53feb0df5112a41e8b6
|
|
BLAKE2b-256 checksum How to use checksums |
c44ae31189ed13493fcaf98ce69980005637182a64e0d12c6735bb68367564a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 2, 2026.
Transparency logRelease files / biodata_models-2.0.2-py3-none-any.whl
| Download URL | biodata_models-2.0.2-py3-none-any.whl |
|---|---|
| Size | 113.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d38fc817ed6e3b361f6279a65c8c5bcde136bd20b46848366f166fe2efba95ce
|
|
BLAKE2b-256 checksum How to use checksums |
7f18ea6e82474610af0804df44f1c4971562f4fea595498d8c0c5761f487db40
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 2, 2026.
Transparency logSecurity for biodata-models 2.0.2
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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for biodata_models-2.0.2.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 Oct 2, 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.