Custom configuration parser based on a tree
Project description
treeconfigparser
Custom configuration parser based on a tree.
Installation
Install using pip:
$ pip install treeconfigparser
or using conda:
$ conda install -c alfarchi treeconfigparser
Main usage
>>> import treeconfigparser as tcp
>>> config = tcp.TreeConfigParser()
>>> config.read_file(file_name)
>>> config.get(['sec1', 'subsec11', 'opt1'])
'val1'
Features
- Arbitrary configuration tree are possible.
- Can read and parse configuration file. Two different and intuitive file formats are supported.
- Configuration files can include comments and cross-references between options.
- Alternatively, the configuration can be manipulated using the class methods.
- The access to options is simple and supports customised type conversions.
- The configuration can also be written to a file to be re-used later on.
More details can be found in the documentation.
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
treeconfigparser-1.1.0.tar.gz
(8.6 kB
view hashes)
Built Distribution
Close
Hashes for treeconfigparser-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bed635764edaf5141301adeb745d4137631a18eed2a56692350a817f892663a1 |
|
MD5 | 24fafc725fc1ce636b6e8699c90b9d8c |
|
BLAKE2b-256 | 72e38161b698af1a837289f4f76de87b55ccc1e4cea620e9e9b14d30a5e98029 |