KUSP Configuration File Lanauge

The KUSP configfile language is a generalization of our prior C based configuration language. The new language is entirely Python based using the PLY (python lex and Yacc) module in order to tokenize and parse a configuration file into a python dictionary with child items that are of any built-in python data type.

Contents:

pykusp.configutility Quick-Reference

Using pykusp.configutility is straight forward. It parses a configuraiton file that uses the KUSP configuriaton file lanuage into a Python Dictionary. To use it as a module:

import pykusp.configutility as config

config_options = config.parse_configfile("your-configfile.config")

# Now you can use the config_options dictionary
# to provide application specific functionality
# by accessing the key-value pairs.

Indices and tables

Table Of Contents

Next topic

Configuration Language

This Page