Metadata-Version: 2.1
Name: config-onion
Version: 0.0.1
Summary: config_onion -  layered configuration, because configs are like ogres
Home-page: https://github.com/darviarush/python-config-onion
Author: Kosmina O. Yaroslav
Author-email: darviarush@mail.ru
License: MIT
Description: # NAME
        
        config_onion -  layered configuration, because configs are like ogres
        
        # VERSION
        
        0.0.1
        
        # DESCRIPTION
        
        ```py
        @@ config.yml
        
        config:
          value:
            connections:
              rabbitmq:
                default:
                  - rabbitmq
                  - user: guest
                    password: guest
        
        events:
          - amounts:
        	  connection:
        		$ref: config
        		$path: /connections/rabbitmq/default
        
        @@ .config.yml
        config:
          value:
            connections:
              rabbitmq:
                default:
        		  - rabbitmq1
                  - user: root
                    password: 123
        
        
        @@ my.py
        
        from config_onion import read
        
        config = read(['config.yml', '.config.yml'])
        
        print(config_onion)        # -> { ... 'connection': ['rabbitmq1', {'user': 'root', 'password: 123'}] ... }
        ```
        
        # SYNOPSIS
        
        Склеивает конфиги. Так же разыменовывает ссылки вида:
        
        ```yml
        $ref: ...
        $path: ...
        ```
        
        Такая система используется в swagger-е. В perl есть аналогичный модуль `Config::Onion`.
        
        # FUNCTIONS
        
        ## read
        
        ### ARGUMENTS
        
        * `configs` - список файловых путей к конфигам. Обязательный
        
        ### RETURNS
        
        Any
        
        # INSTALL
        
        ```sh
        $ pip install config_onion
        ```
        
        # REQUIREMENTS
        
        Нет
        
        # LICENSE
        
        Copyright (C) Kosmina O. Yaroslav.
        
        This library is free software; you can redistribute it and/or modify
        it under the same terms as Python itself.
        
        # AUTHOR
        
        Kosmina O. Yaroslav <darviarush@mail.ru>
        
        # LICENSE
        
        MIT License
        
        Copyright (c) 2020 Kosmina O. Yaroslav
        
        
Platform: any
Classifier: Development Status :: 4 - Beta
Classifier: Topic :: Text Processing
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Requires-Python: >=3.6
Description-Content-Type: text/markdown
