#config.py CONFIG = { 'key1': 'value1', 'key2': 'value2' } #script.py import config print config.CONFIG['key1'] # Add config.py to your.gitignore