Given the following format (.properties or .ini):
propertyName1=propertyValue1 propertyName2=propertyValue2 ... propertyNam
i have used this, this library is very useful
from pyjavaproperties import Properties p = Properties() p.load(open('test.properties')) p.list() print(p) print(p.items()) print(p['name3']) p['name3'] = 'changed = value'