Skip to content

Instantly share code, notes, and snippets.

@M0nica
Created September 4, 2017 23:12
Show Gist options
  • Save M0nica/92e41255730429ecf2a207cf54d04704 to your computer and use it in GitHub Desktop.
Save M0nica/92e41255730429ecf2a207cf54d04704 to your computer and use it in GitHub Desktop.
An example config.py to hide API keys in python.
# .gitignore should include reference to config.py
api_key = "YOUR_KEY"
api_secret = "YOUR_SECRET"
access_token = "YOUR_ACCESS_TOKEN"
token_secret = "YOUR_TOKEN_SECRET"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment