Created
November 6, 2014 05:21
-
-
Save Amit-PivotalLabs/8108cb97152e1a565ddf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export PYTHONPATH=/tmp | |
out=$(python -c "import test; test.update_db($1=$2)") | |
echo $out |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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