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 details)
Built Distribution
File details
Details for the file confutilPPP-1.3.2.tar.gz
.
File metadata
- Download URL: confutilPPP-1.3.2.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48c0590708d405908d08b9590ea1295e1b5bff44da5dc43c00ca9c6b078261e4 |
|
MD5 | 28fe49bce5c7e4a17fad93879dc10e31 |
|
BLAKE2b-256 | f746e0f9b902e18c362f472ca15803ce748d008805ca8bec4704dc886cd85614 |
File details
Details for the file confutilPPP-1.3.2-py3-none-any.whl
.
File metadata
- Download URL: confutilPPP-1.3.2-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c90c38de33e9eea046335acbc3fb610d1095642e5cf16a4dfab1dbccbc095ad |
|
MD5 | c2e6fea710cfe22edd73f2bde90871b8 |
|
BLAKE2b-256 | a49d68f1e88290a4225fcd22e501635908b776dd76d952ebc17e30ceeb5811b1 |