Skip to main content

biodata-models

License Code Style semantic-release: angular Interrogate Coverage Python

Installation

biodata-models provides the reusable data models used by downstream schema packages.

Install it directly with:

pip install biodata-models

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.

Release files for biodata-models 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for biodata-models 0.0.5
File Size Uploaded
biodata_models-0.0.5.tar.gz 386.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for biodata-models 0.0.5
File Interpreter ABI Platform
biodata_models-0.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 745.7 kB

Release files / biodata_models-0.0.5.tar.gz

Download URL biodata_models-0.0.5.tar.gz
Size 386.2 kB
Tags Source
SHA-256 checksum
How to use checksums
0c8a0ce55736c31ba1e7ccd8a59db46646f3c94b0ff0d1c3648b5e28636a6b31
BLAKE2b-256 checksum
How to use checksums
53bae00b21fc78c012f2285183ec35fe007fa012783bb387c5eaea7a4f9c90e5
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 Aug 31, 2026.

Transparency log

Release files / biodata_models-0.0.5-py3-none-any.whl

Download URL biodata_models-0.0.5-py3-none-any.whl
Size 359.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eab100db707eeb47c5fa7cb28fb28a480bf585a282851292aa9376e22d1e3544
BLAKE2b-256 checksum
How to use checksums
31d54886ebd9b6d77f02cc7448e8d0d80238a0030d9fffbfcd95d7d82b628aa9
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 Aug 31, 2026.

Transparency log

Release history Release notifications | RSS feed

1.2.0

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

This release

0.0.5 This release

2 release files

0.0.4

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page