Skip to content

Python library that simplifies parsing and creating Toml configuration files.

License

Notifications You must be signed in to change notification settings

SemenovAV/toml_config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

toml_config

Python library that simplifies parsing and creating Toml configuration files. Wrapper on toml

Installation

To install a module run the command:

pip install toml_config

Using

To get started, import the module. Create an instance of the Config class by passing as a parameter the path to an existing file or the path where this file will be created.And then you can read parameters from the file and write parameters to the file.

Example. Creating a file and writing values.

main.py:

from toml_config.core import Config

my_config = Config('app.config.toml')
my_config.add_section('app').set(key='value',other_key=[1,2,3])

app.config.toml:

[app]
key = "value"
other_key = [ 1, 2, 3,]

About

Python library that simplifies parsing and creating Toml configuration files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages