I want to open an open source python project on Github, but it contains an API key that should not be distributed.
I think there is something better than deleting a key every time a push is attached to a repo.
Imagine a simplified one foomodule.py:
import urllib2
API_KEY = 'XXXXXXXXX'
urllib2.urlopen("http://example.com/foo?id=123%s" % API_KEY ).read()
I think:
Do you know a good software way to handle this scenario?
source
share