Skip to main content

iBridges Dataverse

Python package

This package provides a Dataverse plugin for the iBridges CLI and GUI.
It allows you to create Dataverse datasets and upload iRODS data objects.

Dependencies

  • Python 3.9+
  • HTTPX
  • PyDataverse
  • iBridges and iBridges GUI (ibridges, ibridgesgui)

All dependencies are installable via pip.

Highlights

  • Automatic checksum verification during upload
  • Git‑like workflow: stage files first, upload later
  • Shared state between CLI and GUI — switch freely without losing progress

⚠️ Important Notes

  • Only files smaller than 9 GB are transferred.

  • All iRODS data is downloaded locally before being uploaded to Dataverse.

    Files are downloaded one by one into a temporary directory, uploaded to Dataverse, and then deleted.
    You therefore need at least 9 GB of free disk space.
    If an upload fails, the temporary file is not deleted, so files may accumulate.

Installation

Install from PyPI

pip install ibridgesdvn

Install the CLI from GitHub

pip install git+https://github.com/iBridges-for-iRODS/ibridges-plugin-dataverse.git

Install both GUI and CLI

pip install git+https://github.com/iBridges-for-iRODS/ibridges-plugin-dataverse.git
pip install "ibridgesdvn[gui]"

This installs the Python package ibridgesdvn.

CLI Commands

Starting the iBridges CLI (ibridges -h) shows the additional Dataverse commands:

ibridgesdvn commands:
    dv-add-file        Stage iRODS files for upload.
    dv-cleanup         Clean up local Dataverse logs.
    dv-create-ds       Create a new Dataverse dataset.
    dv-draft           Show or delete draft datasets.
    dv-init            Store a Dataverse API token.
    dv-push            Upload staged files.
    dv-rm-file         Remove staged files.
    dv-setup           Manage Dataverse configurations.
    dv-status          Show pending uploads and drafts.
    dv-switch          Switch Dataverse configuration.

If you use the iBridges GUI, a Dataverse view becomes available.

The Dataverse View

  1. Configure your Dataverse connection
    Add or remove Dataverse configurations.

  2. Select a Dataverse collection
    If you don’t have a dataset yet, click Create New Dataset to generate one and obtain its DOI.

  3. Select iRODS data objects
    Use the right-hand browser to select files.
    Click << to stage them for upload.
    You may remove entries at any time.

When ready, click Upload to Dataverse.
After upload, open the dataset in your browser to finalize publication.

Dataverse Commands

Configuring a Dataverse Instance

List or create Dataverse configurations:

ibridges dv-setup dvnl-demo https://demo.dataverse.nl

Activate a configuration and store an API token:

ibridges dv-init dvnl-demo
Your Dataverse token for dvnl-demo :
  demo -> https://demo.dataverse.org
* dvnl-demo -> https://demo.dataverse.nl

Switch between configurations:

ibridges dv-switch https://demo.dataverse.org
* demo -> https://demo.dataverse.org
  dvnl-demo -> https://demo.dataverse.nl

You may use URLs or aliases interchangeably.

Note: These setup commands are available only in the CLI, not in the shell.
All other commands work in both.

Creating a Dataset

You can create a dataset using a Dataverse dataset.json:

ibridges shell
ibshell:research-christine> dv-create-ds UUscience --metajson ibridgescontrib/ibridgesdvn/dataset.json
Dataset with pid 'doi:10.80227/PDVNL/RZQRAK' created.

Save the dataset identifier (e.g., 10.80227/PDVNL/RZQRAK) — you will need it for staging and uploading files.

Alternatively, create minimal metadata interactively:

ibshell:research-christine> dv-create-ds UUscience

This opens a short questionnaire for the required fields.

Browsing Files and Staging Them

Browse iRODS collections:

ibshell:research-christine> ls my_books

Stage files for upload:

ibshell:research-christine> dv-add-file 10.80227/PDVNL/RZQRAK irods:my_books/AdventuresSherlockHolmes.txt irods:my_books/DonQuixote.txt

All iRODS paths must be prefixed with irods:.
Relative paths are supported.

View the staging summary:

{'https://demo.dataverse.nl': {'add_file': [...]}}

Remove staged files:

ibshell:research-christine> dv-rm-file 10.80227/PDVNL/RZQRAK irods:my_books/DonQuixote.txt

Check status:

ibshell:research-christine> dv-status

Check opened drafts:

ibshell:research-christine> dv-draft

Uploading Data

Upload staged files:

ibshell:research-christine> dv-push 10.80227/PDVNL/RZQRAK

Files are downloaded to a temporary directory, uploaded to Dataverse, and removed locally if successful.

After upload, the status becomes empty:

ibshell:research-christine> dv-status

Metadata

Release files for ibridgesdvn 1.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ibridgesdvn 1.0.7
File Size Uploaded Provenance Actions
ibridgesdvn-1.0.7.tar.gz 775.6 kB Without provenance Details for ibridgesdvn-1.0.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ibridgesdvn 1.0.7
File Interpreter ABI Platform Actions
ibridgesdvn-1.0.7-py3-none-any.whl Python 3 none any Details for ibridgesdvn-1.0.7-py3-none-any.whl

Total release size: 847.4 kB

Release files / ibridgesdvn-1.0.7.tar.gz

Download URL ibridgesdvn-1.0.7.tar.gz
Size 775.6 kB
Tags Source
SHA-256 checksum
How to use checksums
71a33115aa6952eaddc4899c56ab8fe41dce17d495ff2f15514d7794fdfd1753
BLAKE2b-256 checksum
How to use checksums
62fa1139bdb7d303f079f7d1976a3a96160706c5836665fb7f0698f2e8f1321d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.8

Release files / ibridgesdvn-1.0.7-py3-none-any.whl

Download URL ibridgesdvn-1.0.7-py3-none-any.whl
Size 71.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ae4cf5d8a42e4eca4b888f141e569c80911df66ba3d5fc7272faac48bbc905a1
BLAKE2b-256 checksum
How to use checksums
9317d9a6af58f96543be72cfbc7919f48308421c68a4fc86969f3c4271f2f7bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.8

Security for ibridgesdvn 1.0.7

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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