Files
galaxy/scripts/api/create.py
T
Nicola Soranzo 21b44bf348 Fix all E201 and E202 style errors
using the following command:
```
autopep8 -i -r --exclude $(sed -e 's|^|./|' -e 's|/$||' .ci/flake8_blacklist.txt | paste -sd,) --select E201,E202 .
```
2017-08-17 11:35:39 +01:00

16 lines
265 B
Python

#!/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)