l(ight)conf(iguration):用于动态配置的一种简单的人类可读数据序列化格式。
LCONF的Python项目详细描述
关于
l conf代表l(igh)conf(iguration)一种轻量级的、易于理解的动态数据序列化格式 配置。
注意
- lconf python库比pyyaml 3.11快得多
- lconf python库比python包含的json(c扩展)默认值发出快得多
- lconf python库使用ordereddict的解析速度略快于python包含的json(c扩展)。
- lconf python库解析仍然比python包含的json(c扩展)默认值慢得多
最新的文档可以在http://packages.python.org/LCONF在线找到。
___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
要求
请参阅文档中的:所需软件或:
{SOURCE}/docs/RequiredSoftware.rst
安装
使用pip/pip3:从pypi安装
$ pip3 install LCONF
从源安装:
$ python3 setup.py install
建立文档
如果您希望生成自己的文档副本,则需要:
获取lconf源。
如果尚未安装-请安装PSphinxTheme
$ pip3 install PSphinxTheme
如果尚未安装-请安装LconfPygmentsLexer
$ pip3 install LconfPygmentsLexer
从lconf源目录中,运行python3 setup.py build_sphinx -E。
sphinx完成后,将Web浏览器指向文件:
{SOURCE}/build/sphinx/html/index.html
在线资源
使用lconf的项目
利用:lconf的项目
LCONF根据BSD 3条款许可的条款分发。
咨询许可证或BSD-3-Clause。 (c)2014年,peter1000https://github.com/peter1000
保留所有权利