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

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.0
File Size Uploaded Provenance Actions
hca_metadata_schema-0.3.0.tar.gz 33.1 kB With provenance Details for hca_metadata_schema-0.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 67.2 kB

Release files / hca_metadata_schema-0.3.0.tar.gz

Download URL hca_metadata_schema-0.3.0.tar.gz
Size 33.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b0a9e5a1b24cb8e4eb57f61d6ad2c8ee43d7f95d4f3583763d07fd52486807a0
BLAKE2b-256 checksum
How to use checksums
9ccd4f0c27930f3979e2a797afd3d0b0be8657035232137b6408349da5e4f0bb
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 11, 2026.

Transparency log

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

Download URL hca_metadata_schema-0.3.0-py3-none-any.whl
Size 34.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d5030d6835d6536df62eef8c0cab325b3dce456a6f2b09cd231759d0d2453b1b
BLAKE2b-256 checksum
How to use checksums
1641f1e24ec2d3f65da603dd20c773323694c804a911b56df87d71f29aaa04a5
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 11, 2026.

Transparency log

Security for hca-metadata-schema 0.3.0

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.0.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 11, 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