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.1.tar.gz
(1.5 kB
view hashes)
Built Distribution
Close
Hashes for confutilPPP-1.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 422f690551369b4bf49534f3f940b032d7e5e32ed7bebfdbc9ce2c90baa51011 |
|
MD5 | fc2a3cc9dd5cdc0e1818571f6a46cdd2 |
|
BLAKE2b-256 | 6efb59186a3e622066199409886e7fda9bff4ed70978705b4c73c681d4bcb58d |