Parser for properties file, which is a simple key-value file, comments is also supported.
import properties
string = """
FULL NAME: John Doe
AGE: 42
TIME: 12:00
"""
print(properties.loads(string))
{
"FULL NAME": "John Doe",
"AGE": "42",
"TIME": "12:00"
}
import properties
props = {
"FULL NAME": "John Doe",
"AGE": "42",
"TIME": "12:00"
}
print(properties.dumps(props))
FULL NAME: John Doe
AGE: 42
TIME: 12:00