Skip to main content

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.

Metadata

Release files for treeconfigparser 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for treeconfigparser 1.1.0
File Size Uploaded
treeconfigparser-1.1.0.tar.gz 8.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for treeconfigparser 1.1.0
File Interpreter ABI Platform
treeconfigparser-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 16.5 kB

Release files / treeconfigparser-1.1.0.tar.gz

Download URL treeconfigparser-1.1.0.tar.gz
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
58d90d89ce49ea9569016483c8e32a6523798db9bf943a7853863e77f978afdc
BLAKE2b-256 checksum
How to use checksums
e5793e7e8e09a37d10bc944ec839f39aacbfe8029445a4f02a293cd2f2224d9d
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / treeconfigparser-1.1.0-py3-none-any.whl

Download URL treeconfigparser-1.1.0-py3-none-any.whl
Size 7.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bed635764edaf5141301adeb745d4137631a18eed2a56692350a817f892663a1
BLAKE2b-256 checksum
How to use checksums
72e38161b698af1a837289f4f76de87b55ccc1e4cea620e9e9b14d30a5e98029
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page