Properties

Inheritance diagram of Properties
class Properties(props=None)[source]

Bases: object

A Python replacement for java.util.Properties

escape(value)[source]
getProperty(key)[source]

Return a property for the given key

getPropertyDict()[source]
list(out=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='UTF-8'>)[source]

Prints a listing of the properties to the stream ‘out’ which defaults to the standard output

load(stream)[source]

Load properties from an open file stream

processPair(key, value)[source]

Process a (key, value) pair

propertyNames()[source]

Return an iterator over all the keys of the property dictionary, i.e the names of the properties

setProperty(key, value)[source]

Set the property for the given key

store(out, header='')[source]

Write the properties list to the stream ‘out’ along with the optional ‘header’

unescape(value)[source]