Skip to content

Parser for properties file, which is a simple key-value file, comments is also supported.

License

Notifications You must be signed in to change notification settings

meirdev/properties

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parser for properties file, which is a simple key-value file, comments is also supported.

Load from string

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"
}

Dump to string

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

About

Parser for properties file, which is a simple key-value file, comments is also supported.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages