IQSS / dv-api-test

Currently "Scratch" code to use the dataverse api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OLD Tests - "Scratch" code not currently working


dv-api-test

Currently "Scratch" code to use the dataverse api

Setup

Via pip install
cd dv-api-test
pip install -r requirements/base.txt
Recommended
I don't want to install pip
I don't want to install virtualenv using sudo

Create test dataverses

cd ~/dv-api-test/scripts
# This uses the dv names listed in ~/dv-api-test/data_in/vdc.csv
python add_vdc.py

Delete the test dataverses

  • Edit the bottom of the scripts/add_vdc.py file
  • Comment out "add_dataverses(1, 700)"
  • Uncomment "delete_dataverses(3,700)"
if __name__=='__main__':
   #add_dataverses(1, 700)
   delete_dataverses(3,700)

About

Currently "Scratch" code to use the dataverse api


Languages

Language:Python 94.8%Language:Shell 5.2%