Config (Properties)

Sample

from ConfigParser import ConfigParser
parser = ConfigParser()
parser.read('database.properties')
parser.get('letherens', 'server')
>>> 'sql.hatherleigh'

Note: The sample is reading this database.properties file:

[letherens]
server=sql.hatherleigh
port=8000

Note: Don’t miss the sample in the links (see above).