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

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.1
File Size Uploaded Provenance Actions
hca_metadata_schema-0.3.1.tar.gz 34.2 kB With provenance Details for hca_metadata_schema-0.3.1.tar.gz

Built distribution (wheel)

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

Total release size: 68.3 kB

Release files / hca_metadata_schema-0.3.1.tar.gz

Download URL hca_metadata_schema-0.3.1.tar.gz
Size 34.2 kB
Tags Source
SHA-256 checksum
How to use checksums
19402817b73b39e073b2251086594e380871a43be7619406f0e0abd42615f1b4
BLAKE2b-256 checksum
How to use checksums
096c0d043290c49cede86825f0941ebca8a0d934a8c9f544bc7838571cda93ed
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 17, 2026.

Transparency log

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

Download URL hca_metadata_schema-0.3.1-py3-none-any.whl
Size 34.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
99c74790aeebf4fc0a68972a92aba688d29c71148bb5b920e9678b3fcc2a7911
BLAKE2b-256 checksum
How to use checksums
9e5517b5ba6600c7e1eb50d8d3733cdac22a0f34e9993417c66b02d915b1faf2
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 17, 2026.

Transparency log

Security for hca-metadata-schema 0.3.1

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.1.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 17, 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