A simple configuration file tool
Project description
confutilPPP
1.安装
pip install confutilPPP
2.导入并使用
import confutilPPP
# 此项设置为 False 时,日志不会带颜色(默认为 True)
confutilPPP.LOG_IS_COLOR = True
def test():
# _object : dict, 包含配置对象
# _filename : str, 配置文件名 默认为 config
# return : dict, 配置字典
# 首次当前位置生成 *.yml 文件,之后直接读取
# *.yaml也可用
CONFIG = {
'test': 'test'
}
conf = confutilPPP.check_config(_object=CONFIG, _filename='config')
print(conf)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
confutilPPP-1.1.0.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for confutilPPP-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1b90a38aa1d8d7be750da021cee45429fa744a292d2cb54b39a6c274f5f63bc |
|
MD5 | 836a48e5e52044246cf97ac4740b0362 |
|
BLAKE2b-256 | 707e717b62a020f4d9d3f0a241f964f7587afed661b209a4d0d097bdecd8fd3b |