Metadata-Version: 2.1
Name: simple_config
Version: 1.0
Summary: билиотека для чтения и записи простых конфигураций `SimpleConfig`
Author: Ярыкин Евгений
License: The zlib License
        
        Copyright (c) 2024 Ярыкин Евгений и другие авторы (https://github.com/pypi-zedzhen/simple_config/graphs/contributors)
        
        This software is provided 'as-is', without any express or implied warranty. In
        no event will the authors be held liable for any damages arising from the use of
        this software.
        
        Permission is granted to anyone to use this software for any purpose, including
        commercial applications, and to alter it and redistribute it freely, subject to
        the following restrictions:
        
        1.  The origin of this software must not be misrepresented; you must not claim
            that you wrote the original software. If you use this software in a product,
            an acknowledgment in the product documentation would be appreciated but is
            not required.
        
        2.  Altered source versions must be plainly marked as such, and must not be
            misrepresented as being the original software.
        
        3.  This notice may not be removed or altered from any source distribution.
        
Project-URL: Homepage, https://github.com/pypi-zedzhen/simple_config
Project-URL: Documentation, https://simple-config.readthedocs.io/ru/latest/
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE

# SimpleConfig

## установка

`pip install simple_config -U -i https://pypi.zedzhen.ru/simple/`

## simple_config.SimpleConfig

Основной класс \
`SimpleConfig(file, strict=StrictMode.NORMAL)` \
file - путь до файла \
strict - Использует строгий режим (вместо предупреждений выдаются ошибки) \
`SimpleConfig().load(strict=None)` \
загружает конфигурацию \
strict - При передаче переопределяет strict указанное при создании объекта \
`SimpleConfig().dump()` \
записывает конфигурацию в файл **Комментарии теряются** \
`SimpleConfig().data` \
словарь конфигурации

## simple_config.ConfigError

Класс для всех синтаксических ошибок (потомок SyntaxError)

## simple_config.StrictMode

`NORMAL` - предупреждения \
`DUPLICATE_NAME` - ошибка при повторе имени \
`NOT_RECOMMENDED_CHAR` - ошибка при не рекомендованных символах \
`ALL` - ошибка в обоих случаях
