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.2.0.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for confutilPPP-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92a9327e41a4492367b748fba91564cd210cf31164012b3c15308776fe9e3f0b |
|
MD5 | 19b336aee4fbda7cc40d8ba26af1b6b2 |
|
BLAKE2b-256 | d823308d14d09f2e20b28b1a31bc0cabdf901b83c16cd46fe35b24901f93a834 |