Permalink
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (11 sloc) 265 Bytes
#!/usr/bin/env python
"""
Generic POST/create script
usage: create.py key url [key=value ...]
"""
import sys
from common import submit
data = {}
for k, v in [kwarg.split('=', 1) for kwarg in sys.argv[3:]]:
data[k] = v
submit(sys.argv[1], sys.argv[2], data)