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.1.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for confutilPPP-1.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a3d243635802d8d396c0cbda5031108159edff310859f88a709fb9031dd033c |
|
MD5 | 1b481f072941be50f6b0525d91ea13b0 |
|
BLAKE2b-256 | 28d1284e038a1fb8b6815ed33148a9c81bfad3be5480ce27aec38e2471f7acd5 |