Skip to content

Instantly share code, notes, and snippets.

@troyscott
Created August 26, 2013 06:14
Show Gist options
  • Select an option

  • Save troyscott/6338498 to your computer and use it in GitHub Desktop.

Select an option

Save troyscott/6338498 to your computer and use it in GitHub Desktop.
Simple python config for storing passwords and api keys. Useful when you don't want to store sensitive information in source control, Similar to the local_setttings.py for django.
MYSQL_PSWD = ''
# MASTER - [email protected]
TWILIO_ACCOUNT_SID = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
TWILIO_AUTH_TOKEN = "ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ"
TWILIO_SUBACCOUNTS = {
'cust1':{'sid':'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
'token':'YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY'},
'cust2':{'sid':'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
'token':'YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY'},
}
# Test Dictionary Config
for k in TWILIO_SUBACCOUNTS.keys():
print k
print TWILIO_SUBACCOUNTS[k]['sid']
print TWILIO_SUBACCOUNTS[k]['sid']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment