_images/LCONFMain350_220.png

Documentation

This is release 7.0.0 of a Python package named LCONF.

Author:peter1000
Github:https://github.com/peter1000

Welcome

LCONF stands for L(ight) CONF(iguration) a light - human-friendly, simple readable data serialization format for dynamic configuration.

  • in many situations LCONF is a suitable replacement for YAML
  • LCONF can be used to replace JSON in many cases

Note

  • LCONF python library is much faster than PyYAML 3.11
  • LCONF python library emits much faster than the python included json (c extension) defaults
  • LCONF python library parses a little bit faster than the python included json (c extension) using an OrderedDict
  • LCONF python library parses still much slower than the python included json (c extension) defaults

  • This package contains also the original python3/cython LCONF implementation

  • There exists a simple pygments lexer for LCONF: to highlight code

    LconfPygmentsLexer

  • There is also a sphinx theme which has an admonition for LCONF Example code.

    PSphinxTheme

Below is an example using the PSphinxTheme lconf-example admonition which uses LconfPygmentsLexer to highlight code.

LCONF-Example

This is a LCONF example using the PSphinxTheme lconf-admonition to highlight code

___SECTION :: A short example with a number of features

# Comment-Line: `List-Of-Tuples`
- people_list |name|height_cm|weight_kg|
   Tim,  178,  86
   John, 166,  67

# Comment-Line: `Repeated-Block-Identifier`
* Persons_BLK
   person1
      first :: Tim
      last :: Doe
      age :: 39
      registered :: true
      salary :: 70000
      sex :: M
      # Comment-Line: `Key :: Value-List`
      - interests :: Reading,Mountain Biking,Hacking
      # Comment-Line: `Key-Value-List`
      - sports
         tennis
         football
         soccer
      # Comment-Line: `Key-Value-Mapping`
      . favorites
         food :: Spaghetti
         sport :: Soccer
         color :: Blue
   person2
      first :: John
      last :: Doe
      age :: 29
      registered :: true
      salary :: 45000
      sex :: M
      # Comment-Line: empty `Key :: Value-List`
      - interests ::
      # Comment-Line: empty `Key-Value-List`
      - sports
      # Comment-Line: `Key-Value-Mapping`
      . favorites
         food :: Pizza
         sport :: None
         color :: Orange
___END

Content Summary

Introductory Materials

Installation Instructions
requirements and installations instructions

LCONF-Specification docs:

Release History
history of current and past releases

Code & Usage Examples

LCONF-Default-Template-Structure Usage Example

For more examples see any files in the LCONF source (not all projects might have all of these folders).

  • SOURCE/Examples
  • SOURCE/Tests
  • SOURCE/SpeedIT

Online Resources

Homepage: https://github.com/peter1000/LCONF
Online Docs: http://packages.python.org/LCONF
Download & PyPI: http://pypi.python.org/pypi/LCONF
Source: https://github.com/peter1000/LCONF

Projects using LCONF

Known projects which make use of: LCONF

  • PyNHEP

    PyNHEP: The N(utrition) and H(ealthy) E(ating) P(lanner).

This Page