The Plasmic Configuration System

Plasmic parses a very Python-like mini-language to produce a dictionary. This allows Python programs to be configured using a Python-like language.

Here is a sample configuration:

{section1:
  {key1: "value1",
   key2: 2},
 section2:
  {key1: "othervalue",
   key3: 3.0
   subsection1:
    {key4: (1, 2, 3)
     key5: {"foo": "meta",
            "bar": "syntactic"}
    }
  }
}

The Plasmic language consists of dictionaries, tuples, and literal values. Plasmic dictionary keys must be literal values. Plasmic dictionary values can be literal values and, nested when desired, tuples and plasmic dictionaries.

Plasmic also does interpolation. This allows values to be designated once and used in multiple places within a configuration. Plasmic replaces reference to configuration keys with the key’s value.

The recommended suffix for files written in the Plasmic language is: .pcf

Indices and tables