env_config:从环境变量声明和加载配置

时间:2021-05-03 00:33:14
【文件属性】:
文件名称:env_config:从环境变量声明和加载配置
文件大小:17KB
文件格式:ZIP
更新时间:2021-05-03 00:33:14
Python config_py 从环境变量声明和加载配置。 支持的功能: 为生产,测试和其他环境声明不同的变量集 从文件中加载变量(如果需要) 将配置解析为不同的数据类型 力量 整型 漂浮 bool('True','False',1,0,'是','否') str [] int [] 漂浮[] 布尔[] 嵌套类型 易于处理有关缺失变量和声明问题的报告 Missing environment variables : export ERR_KEY_1 = [ your value here ] export ERR_KEY_1_DICT2_DICT3_KEY4 = [ your value here ] export ERR_KEY_1_DICT2_KEY3 = [ your value here ] Missing declarations : declare ( "undeclared
【文件预览】:
env_config-master
----README.rst(10KB)
----AUTHORS(92B)
----LICENSE.txt(1KB)
----env_config()
--------config.py(14KB)
--------__init__.py(754B)
--------config_test.py(30KB)
--------snapshots()
----requirements-test.txt(106B)
----test()
--------empty(49B)
--------env(205B)
----setup.cfg(900B)
----setup.py(184B)
----.gitignore(1KB)
----ChangeLog(1KB)

网友评论