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.2.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for confutilPPP-1.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a74ebab5342cbba9c0432942572767753a6835fac058f16b6993c9c6f1d43cf9 |
|
MD5 | 397d7625ff1c2620a3849f6e3d40f615 |
|
BLAKE2b-256 | 0c9485e1360f3346eb9973322be1e05f66bfa078352ad0e1b9d25a0e501f28ca |