Skip to main content

codemeta-drift

PyPI Python versions python license DOI

codemeta-drift shows where CodeMeta's crosswalk cells for citation and package formats work as written and where they don't: see every cell. It also checks CodeMeta's own files against each other, and exports a reviewed JSON field mapping for tools such as citesync.

codemeta-drift is not part of the CodeMeta project and proposes no edits to CodeMeta's files. Its identifier column means the software's DOI, a narrower reading than CodeMeta's "any kind of identifier", so a cell that holds a package id or a UUID counts as scope (right by CodeMeta's definition, read more narrowly here), not as a CodeMeta error.

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.

At CodeMeta commit e62eb75, line 46 of the property list changed from position to maintainer, while the crosswalks kept position. Joining the tables by row number attaches a field to the wrong term. codemeta-drift compares names and reports the mismatch.

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

What it found

At CodeMeta 4.0 I reviewed 36 of its 46 crosswalks, from CFF, Zenodo and DataCite to Maven, SPDX, Wikidata and GitLab, for the 18 terms citation tools need. That gives 648 cells, one per crosswalk and term:

  • 123 can be used as written.
  • 79 name the right field in a form a tool can't use as a path, such as another case, no prefix or XPath.
  • 42 are right by CodeMeta's definition, but codemeta-drift reads the term more narrowly, such as identifier as the software's DOI and swhid as a term of its own, or also reads another field, such as a fallback or a newer one. The reviewed mapping gives the path, or says the format has none.
  • 82 are wrong, ambiguous or prose. 19 of them name a field the format doesn't have.
  • 110 are blank although the format has the field.
  • 212 are for a term the format has no field for.

The matrix also has a resourceType column, which has no CodeMeta property, so no crosswalk has a cell for it, and a column for each reviewed citation field. CodeMeta has no crosswalk at all for pyproject.toml, typst.toml, Quarto extensions, Composer, RIS, EndNote, RO-Crate, Croissant, the Crossref and arXiv APIs, or a CFF preferred citation.

The coverage page gives the reason for each correction and checks CodeMeta's main branch each week. It also lists the 10 crosswalks I haven't reviewed, and why. The same matrix is in Markdown for 4.0 and 3.1.

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, run uv tool install codemeta-drift.

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

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

A check with no findings prints nothing. The command exits 1 when the files disagree. The checks reference lists the finding codes, the other exit codes and the --json output.

Export the mapping

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

The export gives the field paths for terms in 48 formats, with the reason for each cell I corrected by hand. It does not convert values. Only 3.1 and 4.0 have reviewed mappings. The mapping export guide holds the contract, and the committed example shows the output.

Documentation

The pages below are also a searchable site at https://simonvanlierde.com/codemeta-drift/docs/.

Development

From a codemeta-drift checkout, with uv, just and Node (its built-in test runner, no packages) installed:

uv sync
just check

The development guide covers hooks, fixture updates and mutation testing. CONTRIBUTING.md has 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.10.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.10.0
File Size Uploaded Provenance Actions
codemeta_drift-0.10.0.tar.gz 137.9 kB With provenance Details for codemeta_drift-0.10.0.tar.gz

Built distribution (wheel)

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

Total release size: 278.1 kB

Release files / codemeta_drift-0.10.0.tar.gz

Download URL codemeta_drift-0.10.0.tar.gz
Size 137.9 kB
Tags Source
SHA-256 checksum
How to use checksums
7945f6934c5aed952f741cec472ae981cb7966df7cde48b7ad8bc417d5550d35
BLAKE2b-256 checksum
How to use checksums
11e1d7fe74f7edf6f293efb250e09d380ec2fd21318848c412ee4d1f6cbf1383
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 30, 2026.

Transparency log

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

Download URL codemeta_drift-0.10.0-py3-none-any.whl
Size 140.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
94149b22a9b8afdcb4c5480da56e15609a6ac1f4a9f96af4ac29af0dedf1fd2e
BLAKE2b-256 checksum
How to use checksums
f98b934ae4aba59f084cbe45e35ae9c03d6619d7828d94e1fe7775a0a825b718
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 30, 2026.

Transparency log

Security for codemeta-drift 0.10.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.10.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 30, 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