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.1.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for confutilPPP-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8536cd726514630753c1e443b6be881998c130992b7f27f7f06a8a890cf9514 |
|
MD5 | faf36f2ac50ac27d53230f4d6df5891d |
|
BLAKE2b-256 | b5aac0d6d7446684f8795aba07c66d467a0d67c9c2e03de7263a562432f5868f |