Skip to main content

codemeta-drift

python license DOI

Check where CodeMeta's vocabulary, definitions, examples and crosswalks disagree. Export reviewed field mappings for citation tools such as citesync.

Why this exists

CodeMeta describes software metadata: authors, licences, versions and repository URLs. Its crosswalks map fields in other formats to CodeMeta terms. For example, the Citation File Format (CFF) uses title where CodeMeta uses name.

These files need to agree. In one checked snapshot, the property list replaced position with maintainer, while the crosswalks kept position. Joining the tables by row number would attach a field to the wrong term. codemeta-drift compares names and reports the mismatch.

Use it to check the CodeMeta standard's own files. To keep a project's CITATION.cff, codemeta.json and package manifests in sync, use citesync.

Try it

You need Git and uv. Check a CodeMeta checkout:

git clone https://github.com/codemeta/codemeta
uvx codemeta-drift codemeta
uvx codemeta-drift codemeta --ref 4.0

The first check reads the working tree. --ref reads a release, branch or commit. To install the command for repeated use, run uv tool install codemeta-drift.

Each output line names the check, file, term and problem. For example, the 4.0 check reports:

EXAMPLE_NO_TERM examples/codemeta.json: softwareSuggestions: not a term of codemeta.jsonld

Exit codes are 0 when the checked files agree, 1 when they disagree, and 2 when the check cannot run. A check with no findings prints nothing; SKIPPED notices for optional files do not make it fail. Add --json for structured output. See finding codes, compared files and JSON output.

Mapping export

Export the reviewed mappings for CodeMeta 3.1:

uvx codemeta-drift export codemeta --tag 3.1 --out mapping-3.1.json

The export covers CFF, CodeMeta, Zenodo, Python (pyproject.toml), Cargo and npm metadata. It records the field path for each term, with a reason for each curated correction. It does not convert field values. The exporter reads the tag's commit and refuses rows it cannot resolve.

Read the export guide and contract, or inspect the committed example. Only tags with curated mappings can be exported; currently that is 3.1.

Documentation

Crosswalk hub

Derive field correspondences between two formats or write seven SSSOM spokes with codemeta-drift hub. Values still need each format's parser and normalization.

Schema watcher

Compare downloaded schemas and prepare issue drafts with the schema watcher. The weekly workflow polls public sources and also checks citesync's mapping pin. Publishing requires a configured token.

Development

From a codemeta-drift checkout, with uv and just installed:

uv sync
just check

The development guide covers hooks, fixture updates and mutation testing. CONTRIBUTING.md gives the commit and sign-off rules.

License

Apache-2.0. The CodeMeta test fixtures use the same licence; see NOTICE.

Metadata

Release files for codemeta-drift 0.4.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 codemeta-drift 0.4.0
File Size Uploaded Provenance Actions
codemeta_drift-0.4.0.tar.gz 30.7 kB With provenance Details for codemeta_drift-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for codemeta-drift 0.4.0
File Interpreter ABI Platform Actions
codemeta_drift-0.4.0-py3-none-any.whl Python 3 none any Details for codemeta_drift-0.4.0-py3-none-any.whl

Total release size: 65.0 kB

Release files / codemeta_drift-0.4.0.tar.gz

Download URL codemeta_drift-0.4.0.tar.gz
Size 30.7 kB
Tags Source
SHA-256 checksum
How to use checksums
ec5fc240d0767223e76cfcf0e47ec025728f0515cbd9881cc12e9a35c029a8e7
BLAKE2b-256 checksum
How to use checksums
e32a7aa283e634f901c5f1a69cdc19bb916d44bff7901824567b6394c17f3bbc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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

Transparency log

Release files / codemeta_drift-0.4.0-py3-none-any.whl

Download URL codemeta_drift-0.4.0-py3-none-any.whl
Size 34.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4e925ab96ef1e4188c0c313f3e1090ed91bad27d789587be9003050cbc0a4b3c
BLAKE2b-256 checksum
How to use checksums
1f91de47e8766e66120ed4206d9d4e3f81fb62db17e4e4160b62922708f0bf07
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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

Transparency log

Security for codemeta-drift 0.4.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 codemeta_drift-0.4.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 1, 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