ConfigParser is the much debated vanilla configuration parser for Python. However you can simply import config where config.py has python code whic
import config
config.py
"import config" is very simple, flexible and powerfull but, since it can do anything, it might be dangerous if the config.py is not in a safe place.