This is release 7.0.0 of a Python package named LCONF.
Author: | peter1000 |
---|---|
Github: | https://github.com/peter1000 |
LCONF stands for L(ight) CONF(iguration) a light - human-friendly, simple readable data serialization format for dynamic configuration.
Note
This package contains also the original python3/cython LCONF implementation
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
SeeAlso
LCONF-Specification docs:
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).
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 |