Created
August 26, 2013 06:14
-
-
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.
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
| 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