Skip to main content

hca-metadata-schema

The HCA metadata schema: the LinkML YAML definitions and the Pydantic models generated from them.

Installation

pip install hca-metadata-schema

Usage

from hca_metadata_schema import CORE_SCHEMA_PATH, __version__
from hca_metadata_schema.generated.core import Cell, Dataset, Donor, Sample

# The Pydantic models validate a record against the schema
Donor(...)

# The LinkML source, for tools that read the schema itself (e.g. linkml-runtime's SchemaView)
CORE_SCHEMA_PATH  # .../hca_metadata_schema/core.yaml

The package depends only on pydantic. Reading the YAML with SchemaView needs linkml-runtime, which you install yourself.

Versioning

The schema has one version, in core.yaml, and the package version is the same number. What each bump means is set out in docs/schema-version-contract.md.

Development

make gen-schema       # regenerate generated/core.py from the YAML
make validate-schema  # check every YAML file compiles
uv run pytest tests/ -v

After editing the YAML, regenerate the models and the data dictionary (make -C shared gen-schema generate-data-dictionary from the repo root) and commit the result. CI's generated-schema job fails if either is stale, and the opt-in pre-commit hook schema-generated regenerates them when a schema YAML file is committed.

Metadata

Release files for hca-metadata-schema 0.3.2

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

Source distribution (sdist)

Source distribution for hca-metadata-schema 0.3.2
File Size Uploaded Provenance Actions
hca_metadata_schema-0.3.2.tar.gz 34.5 kB With provenance Details for hca_metadata_schema-0.3.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hca-metadata-schema 0.3.2
File Interpreter ABI Platform Actions
hca_metadata_schema-0.3.2-py3-none-any.whl Python 3 none any Details for hca_metadata_schema-0.3.2-py3-none-any.whl

Total release size: 68.7 kB

Release files / hca_metadata_schema-0.3.2.tar.gz

Download URL hca_metadata_schema-0.3.2.tar.gz
Size 34.5 kB
Tags Source
SHA-256 checksum
How to use checksums
086e20a8d41295f9eeb100e1235dda2d87ac9c7e65d4ce819390881a70be6d19
BLAKE2b-256 checksum
How to use checksums
eb6d6f1c9a42d7a5b9604ae3702ed1c51034e2187bc74023720494248b4392cc
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 Nov 18, 2026.

Transparency log

Release files / hca_metadata_schema-0.3.2-py3-none-any.whl

Download URL hca_metadata_schema-0.3.2-py3-none-any.whl
Size 34.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c01c24d087689b24c07586a08f6851d5b42c2767ffb4b60c818c298502f829f8
BLAKE2b-256 checksum
How to use checksums
939470e9907286e3154f2cc25d0390ebde782923c0226c1cfa63c56f28347d82
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 Nov 18, 2026.

Transparency log

Security for hca-metadata-schema 0.3.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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for hca_metadata_schema-0.3.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 Nov 18, 2026.

Transparency log

A 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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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