Skip to content
Snippets Groups Projects

scripts pyDataverse

Several Python scripts using py Dataverse (https://pydataverse.readthedocs.io/en/latest/) Written under v.3.10 but any python3 should work.

Prerequisites

pyDataverse must be installed. https://pydataverse.readthedocs.io/en/latest/

Scripts

  • get_single_dataset_metadata.py : outputs a JSON export of a single dataset (not really useful, just here as reference)
  • get_batch_dataset_metadata_with_subcollections.py : gets every DOI from a Dataverse collection, including subcollections up to 4 sublevels, and outputs a JSON export of all of them.
  • generate_citation.py : generates a text file with citations formatted as recommended by Dataverse, from the JSON file generated by the previous script (default file name same as default out : export_json.json)

TODO

  • make all scripts accept arguments from the command line