Skip to content

Instantly share code, notes, and snippets.

@Amit-PivotalLabs
Created November 6, 2014 05:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Amit-PivotalLabs/8108cb97152e1a565ddf to your computer and use it in GitHub Desktop.
Save Amit-PivotalLabs/8108cb97152e1a565ddf to your computer and use it in GitHub Desktop.
#!/bin/bash
export PYTHONPATH=/tmp
out=$(python -c "import test; test.update_db($1=$2)")
echo $out
def update_db(**kwargs):
for key, val in kwargs.iteritems():
print("key", key)
print("val", val)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment