Assist in parsing cli options and parameters
Project description
# conf_man Python程序的配置处理
## 安装
pip install confmanager
## 使用
显示设置的值
- 环境变量
可以设置前缀 如果设置前缀prefix,那么绑定xxx之后,将会查找PREFIX_XXX的环境变量 如果没有设置前缀,那么绑定xxx之后,将会查找XXX的环境变量
- CLI选项
仅仅支持选项flag的绑定,不支持参数绑定 绑定xxx之后,将会映射到–xxx的值
- 配置文件
可以多个配置文件,每个配置文件在不同目录,但是文件名称必须一致,文件类型仅仅支持JSON JSON文件内容格式需要满足{str: str},不支持嵌套
默认值
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for confmanager-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d658a8dea12550fe8bde6ebd3dc68d719206c79f7a955eee569f4df4177caa6a |
|
MD5 | ec615c51a38028b7d295b84d08e87cdb |
|
BLAKE2b-256 | caa715f6c1223146efcc79521e8811f0ec567fd4ba8b6ee3bb86b6fb8219a6d5 |