Metadata-Version: 2.1
Name: toml-config
Version: 0.1.2
Summary: Python library that simplifies parsing and creating Toml configuration files.
Home-page: https://github.com/SemenovAV/toml_config
Author: SemenovAV
Author-email: 7.on.off@bk.ru
License: MIT
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
Requires-Dist: toml

# toml_config
Python library that simplifies parsing and creating Toml configuration files.
Wrapper on [toml](https://github.com/uiri/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```:
```python
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```:
```toml
[app]
key = "value"
other_key = [ 1, 2, 3,]
```


