Skip to main content

Invenio Publisher Transpiler-Mate Plugin

PyPI - Version PyPI - Python Version

invenio-publish publishes the Schema.org metadata of a CWL document as an InvenioRDM record. It uses the dedicated invenio-rest-api-client for the record, draft, DOI, file-upload, versioning, and publication APIs. The same client and workflow are compatible with Zenodo.

  • Without s:identifier, the plugin creates a draft, reserves a DOI, uploads any attachments, and publishes a new record.
  • With an existing DOI in s:identifier, the plugin creates and publishes a new version of that record.

Install the plugin and the Transpiler-Mate runtime in the same environment:

python -m pip install invenio-publish transpiler-mate-runtime

Then publish to an InvenioRDM instance (Zenodo Sandbox is shown here):

export INVENIO_TOKEN="your-access-token"
transpiler-mate invenio-publish \
  --base-url https://sandbox.zenodo.org/ \
  --auth-token "$INVENIO_TOKEN" \
  --attach workflow.cwl \
  workflow.cwl

This command publishes the draft; use a sandbox instance while testing. See the documentation for a complete metadata example and the create/update workflow.

Documentation

Project documentation is published at: https://Transpiler-Mate.github.io/invenio-publish/

Contribute

Submit a Github issue if you have comments or suggestions.

Local quality checks

Install Hatch and Taskfiles then install the Git hook:

task quality:pre-commit:install

Every commit runs Ruff (including the configured McCabe complexity limit), Ruff formatting, strict mypy checks, and the pytest suite.

Run the complete hook explicitly with:

task quality:pre-commit:run

License

Apache License, Version 2.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

invenio_publish-0.1.0.tar.gz (17.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

invenio_publish-0.1.0-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

Details for the file invenio_publish-0.1.0.tar.gz.

File metadata

  • Download URL: invenio_publish-0.1.0.tar.gz
  • Upload date:
  • Size: 17.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for invenio_publish-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3300af9e82ed132e2775d8721ffb1a8822e98a9629a9c4a1567c66ff77729939
MD5 ccdc5d63d4b7d2c94762783686414ba5
BLAKE2b-256 ef3238de8eae51a1524fe3cdd3376112c2caab9b8f86fec610e46b14ad7dfd67

See more details on using hashes here.

Provenance

The following attestation bundles were made for invenio_publish-0.1.0.tar.gz:

Publisher: package.yaml on transpiler-mate/invenio-publish

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file invenio_publish-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for invenio_publish-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2327340354431787d6bf19a8f65c552e69f468d338f5db1f495c7e0b496a83c7
MD5 c33d5d66b32a9e141c8006b3d812420d
BLAKE2b-256 1439f516838db85db28627846652125e56f60ae141deaa9853ec1ba839c9bb6c

See more details on using hashes here.

Provenance

The following attestation bundles were made for invenio_publish-0.1.0-py3-none-any.whl:

Publisher: package.yaml on transpiler-mate/invenio-publish

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

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