3. Load configΒΆ
You can load configuration from file:
from configrw import Config
config = Config.from_file('./path/to/file')
or load config from string:
config = Config.from_str("""
[section1]
option1 = 100
option2 = 200
[section2]
option1 = 300
""")
or create new empty config:
config = Config()