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.0.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for confutilPPP-1.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d70cb9f2c9ddf345eb6f922e97357b2b0791f0e775ef4a166d1105a832c6aed |
|
MD5 | 91836432a3e55d8bc79c252f5f632939 |
|
BLAKE2b-256 | 3c78da676ebf49fb9d5ec8403adf824a9a386ae7ac6b8efb2a0f8f0bb6f5ec84 |