PageRenderTime 11ms CodeModel.GetById 2ms app.highlight 5ms RepoModel.GetById 2ms app.codeStats 0ms

/scripts/api/delete.py

https://bitbucket.org/cistrome/cistrome-harvard/
Python | 16 lines | 7 code | 3 blank | 6 comment | 4 complexity | c9bbd08257e17169bd3353014291cfb4 MD5 | raw file
 1#!/usr/bin/env python
 2"""
 3Generic DELETE/delete script
 4
 5usage: delete.py key url
 6"""
 7
 8import os, sys
 9sys.path.insert( 0, os.path.dirname( __file__ ) )
10from common import delete
11
12data = {}
13for k, v in [ kwarg.split('=', 1) for kwarg in sys.argv[3:]]:
14    data[k] = v
15
16delete( sys.argv[1], sys.argv[2], data )