Skip to main content

Mergeable configuration parser

Project description

m-conf

m-conf project probides a ini-like configuration parser intended to generate a final configuration dict resulting from merging multiple ini-like configuration files.

License

m-conf is distributed under MIT License. Please see the LICENSE file for details on copying and distribution.

Basic usage

Given two configuration files:

  • config1.cfg:

    # This is a comment
    
    [section]
    key1 = value1
    
  • config2.cfg

    [section]
    key1 += 'another value'
    key2 = value2
    

By calling:

m_conf.load(Path(config1.cfg), Path(config2.cfg))

A resulting dict will be returned:

{
    'section': {
        'key1': ['value1', 'another value'],
        'key2': ['value2']
    }
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

m_conf-0.1.2.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

m_conf-0.1.2-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file m_conf-0.1.2.tar.gz.

File metadata

  • Download URL: m_conf-0.1.2.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.2

File hashes

Hashes for m_conf-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e7d23b7a6c89fa44f0892336f1b95437ac18e458a0da7f098335457788a99f5a
MD5 9794e13cad53a7d4af691600d0932862
BLAKE2b-256 05fb670f99b5b0e01c3d6a021ed3aa60bbcc133aceb95b824bd7736935570672

See more details on using hashes here.

File details

Details for the file m_conf-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: m_conf-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.2

File hashes

Hashes for m_conf-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 127eacd7b259168cddfdbbd527942fbdb39576c98177886855d4bba3c65a4b6d
MD5 3ad9f7ba74bffa93a8b88c326270e7b2
BLAKE2b-256 144b2c1af54ec8bf4ce2da4b1ba32ba98e0ed49c9c369a2d0f7e07461f80b438

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page