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.0.2.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

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

treeconfigparser-1.0.2-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file treeconfigparser-1.0.2.tar.gz.

File metadata

  • Download URL: treeconfigparser-1.0.2.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8

File hashes

Hashes for treeconfigparser-1.0.2.tar.gz
Algorithm Hash digest
SHA256 9471326dfb3c76fb78f835f856e7f5cfed5f7c93f6737068380be1e4a43308c9
MD5 a076a8099da5d81a63c3a930cb48e63f
BLAKE2b-256 946914f5d999e52b2c9188be54798c65be9855716419af10d7b4214ec5fc42f3

See more details on using hashes here.

File details

Details for the file treeconfigparser-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: treeconfigparser-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8

File hashes

Hashes for treeconfigparser-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c18ac5edd77029f14f8e4e146a511d5864ab083e4c7a6ef8c9d19ac86115060b
MD5 0a45bf61aa7496d35b5c40d85dd7e661
BLAKE2b-256 d02bd754d68ae9697e512e7b5de2c783a33e3cfea2112807613f8a858a818ef9

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