A simple configuration file tool
Project description
confutilPPP
1.安装
pip install confutilPPP
2.导入并使用
import confutilPPP
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.3.2.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for confutilPPP-1.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c90c38de33e9eea046335acbc3fb610d1095642e5cf16a4dfab1dbccbc095ad |
|
MD5 | c2e6fea710cfe22edd73f2bde90871b8 |
|
BLAKE2b-256 | a49d68f1e88290a4225fcd22e501635908b776dd76d952ebc17e30ceeb5811b1 |