invenio-subjects-mesh-lite
MeSH topical subject terms without qualifiers for InvenioRDM
Install this extension to get Medical Subject Headings topics without qualifiers into your instance.
If you are looking for a larger MeSH vocabulary with qualifiers, use invenio-subjects-mesh instead.
Installation
From your instance directory:
uv add invenio-subjects-mesh-lite
Versions
From 2025.1.15.2 onwards
This package follows the following format for versions: YYYY.mm.dd.patch where
YYYY.mm.ddis the date of retrieval of the MeSH terms withmmandddNOT being 0-prefixed.patchis the patch number (0-indexed) so that multiple releases can be done on the same day (bug/security fixes) and non-subject related releases can be done as well.
This follows calendar versioning (for year, month, and day) and adds a patch number at the end. The package is typically updated on a quarterly basis. The following are illustrative (fictitious) examples of how to understand the versioning of this distribution package:
| Last MeSH update included | patch number | version of this project |
|---|---|---|
| 2025-06-31 | 2 | 2025.6.31.2 |
| 2025-12-01 | 0 | 2025.12.1.0 |
Prior to 2025.1.15.2
This repository follows calendar versioning for year and month. It does a "best effort" attempt at tracking the MeSH updates in an up-to-and-including version date manner. The following are illustrative cases of how to understand the versioning of this distribution package:
| Last MeSH update included | version of this project | date of release of this project |
|---|---|---|
| 2024-01-31 | 2024.1.X | any time after 2024-01-31 |
| 2023-12-31 | 2023.12.X | any time after 2023-12-31 |
2021.06.18 is both a valid semantic version and an indicator of the year-month corresponding to the loaded terms.
18 here is a patch number (not a day).
Usage
There are 2 types of users for this package. Instance operators and package maintainers.
Instance operators
For instance operators, after you have installed the extension as per the steps above, you will want to reload your instance's fixtures: pipenv run invenio rdm-records fixtures. This will install the new terms in your instance.
Alternatively, or if you want to update your already loaded subjects to a new listing (e.g. from one year's list to another), you can update your instance's MeSH subjects as per below. Updating subjects this way takes care of everything for you: the subjects themselves and the records/drafts using those subjects. WARNING This operation can remove subjects.
# In your instance's project
# Download up-to-date listings
uv run invenio galter_subjects mesh download -d /path/to/downloads/storage/ -y YEAR
# Generate file containg deltas to transition your instance to the downloaded listing
# /path/to/replacement/file is the file provided by MeSH (e.g., replace2026.txt)
uv run invenio galter_subjects mesh deltas -r /path/to/replacement/file -o deltas_mesh.csv
# Update your instance - *this operation will modify your instance*
uv run invenio galter_subjects update deltas_mesh.csv
A specific subject file can be passed to galter_subjects mesh deltas via --subjects-file /path/to/mesh/file instead of using the shipped MeSH file (the default).
Look at the help text for these commands to see additional options that can be passed.
In particular, options for galter_subjects update allow you to store renamed, replaced or removed subjects on records according to a template of your choice.
Maintainers
When a new list of MeSH term comes out, this package should be updated. Here we show how.
Pre-requisite/Context
Install the distribution package for development before you do anything.
Commands
Once you have it installed, you can run the following commands in the isolated virtualenv:
# In this project
# Download up-to-date listings
uv run invenio galter_subjects mesh download -d /path/to/downloads/storage/ -y YEAR
# Generate file containing initial listing
uv run invenio galter_subjects mesh file -d /path/to/downloads/storage/ -y YEAR -f topic -o invenio_subjects_mesh_lite/vocabularies/subjects_mesh.csv
Sorting the resulting csv is a nice touch for humans to better parse the changes between versions.
When you are happy with the list, bump the version in pyproject.toml and release it.
Development
Install the project in editable mode with dev dependencies in an isolated virtualenv:
uv pip install -e .[dev]
Run tests:
uv run inv test
Test compatibility with the pre-release version of InvenioRDM (invenio-app-rdm):
uv run --extra dev_pre --prerelease=allow inv test
Clean out artefacts:
uv run inv clean
Metadata
Release files for invenio-subjects-mesh-lite 2026.11.24.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| invenio_subjects_mesh_lite-2026.11.24.1.tar.gz | 348.0 kB | With provenance | Details for invenio_subjects_mesh_lite-2026.11.24.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| invenio_subjects_mesh_lite-2026.11.24.1-py3-none-any.whl | Python 3 | none | any | Details for invenio_subjects_mesh_lite-2026.11.24.1-py3-none-any.whl |
Total release size: 703.1 kB
Release files / invenio_subjects_mesh_lite-2026.11.24.1.tar.gz
| Download URL | invenio_subjects_mesh_lite-2026.11.24.1.tar.gz |
|---|---|
| Size | 348.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
55a87ea2c75647bac41b0e4645bf4a2f9a107443e3abd89bb3f1e4a388e67b4e
|
|
BLAKE2b-256 checksum How to use checksums |
994967ded6676b1cc2cc28e23712cb9d86c901be46d13a0f05deddf17992a105
|
| 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 24, 2026.
Transparency logRelease files / invenio_subjects_mesh_lite-2026.11.24.1-py3-none-any.whl
| Download URL | invenio_subjects_mesh_lite-2026.11.24.1-py3-none-any.whl |
|---|---|
| Size | 355.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b7c0cd845dbe6cc80e5169b5f12be6fb230f63dc02e82be2dc868ab97d9ad9d7
|
|
BLAKE2b-256 checksum How to use checksums |
aad2d56e63fc99e78c636f4cbf0518e96127dce1e226c92b2ef611dae612cf3b
|
| 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 24, 2026.
Transparency logSecurity for invenio-subjects-mesh-lite 2026.11.24.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.
Attestation for invenio_subjects_mesh_lite-2026.11.24.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 24, 2026.
Transparency logA 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.