Skip to main content

Custom configuration parser based on a tree

Project description

treeconfigparser

PyPI Anaconda-Server Badge

Custom configuration parser based on a tree.

Documentation

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)

Uploaded Source

Built Distribution

treeconfigparser-1.1.0-py3-none-any.whl (7.9 kB view hashes)

Uploaded Python 3

Supported by

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