PageRenderTime 81ms CodeModel.GetById 74ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/scripts/api/import_library_dataset_to_history.py

https://bitbucket.org/cistrome/cistrome-harvard/
Python | 16 lines | 12 code | 3 blank | 1 comment | 0 complexity | e1bc178eda5511c7509295d585a722b3 MD5 | raw file
 1#!/usr/bin/env python
 2
 3import os, sys
 4sys.path.insert( 0, os.path.dirname( __file__ ) )
 5from common import submit
 6
 7try:
 8    assert sys.argv[3]
 9    data = {}
10    data['from_ld_id'] = sys.argv[3]
11except IndexError:
12    print 'usage: %s key url library_file_id' % os.path.basename( sys.argv[0] )
13    print '    library_file_id is from /api/libraries/<library_id>/contents/<library_file_id>'
14    sys.exit( 1 )
15
16submit( sys.argv[1], sys.argv[2], data )