When our team(Development team) use a db access with a source code, our member seals secure information with import and gitignore(example below). However, I cannot sure that this is the best case to seal and deliver secure code with peers. Is there any idea or standard way to hide secure information any sensitive code? Any kind of keyword will be helpful.
actor.py
import secure
_ip = secure.ip_address_of_A
_id = secure.id_of_A
_pwd = secure.pwd_of_A
cursor = DataBase(ip=_ip, port=5432, id=_id, pwd=_pwd).cursor()
cursor.query('select * from ... ')
secure.py
ip_address_of_A = '100.100.100.1'
id_of_A = 'john doe'
pwd_of_A = '1234*'
.gitignore
secure.py