DataONEorg/d1LocalCopy

Name: d1LocalCopy

Owner: DataONE

Description: A python script that creates a local copy of content from DataONE

Created: 2015-08-18 15:52:08.0

Updated: 2015-09-25 06:58:09.0

Pushed: 2015-08-19 18:44:25.0

Homepage: null

Size: 140

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

d1LocalCopy

A command line python script that creates a local copy of content from DataONE

Output is a folder with structure:

  cache/
    meta.json: Basic metadata about the content in the cache
    index.json: An index to entries in the cache. Downlaods are renamed using a
                hash of the identifier as the identifier is not file system safe
    0/
    .
    .
    f/

Note that this process runs as a single thread and so will take quite a while to complete.

Note also that the libraries used emit error messages that may be more appropriately handled in logic. As a result the output from this script is quite verbose, though seems to work effecively.

Dependencies:

  pip install -U dataone.libclient 
  # should install downstream dependencies

Use:

  python d1_local_copy.py

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.