cfg_load:以正确的方式加载配置文件

时间:2021-05-03 09:22:58
【文件属性】:
文件名称:cfg_load:以正确的方式加载配置文件
文件大小:31KB
文件格式:ZIP
更新时间:2021-05-03 09:22:58
python3 mit-license configuration-files Python cfg_load 加载配置文件是许多项目中的常见任务。 这个包完成了工作。 安装 推荐的安装cfg_load的方法是: $ pip install cfg_load[all] --user 注意:您可能必须在诸如ZSH的某些shell中转义[和] 。 如果要最新版本: $ git clone https://github.com/MartinThoma/cfg_load.git ; cd cfg_load $ pip instell -e .[all] --user 用法 cfg_load旨在用作库。 在您的代码中,通常会这样使用它: import cfg_load config = cfg_load . load ( "some/path.yaml" ) 为了检查它是否正在按照您的期望进行操作,可以将其用作命令行工具: $ cfg_load tests/examples/
【文件预览】:
cfg_load-master
----.travis.yml(262B)
----.readthedocs.yml(399B)
----.coveragerc(501B)
----docs()
--------requirements.txt(133B)
--------Makefile(610B)
--------source()
----.github()
--------workflows()
----conftest.py(236B)
----tests()
--------test_remote.py(2KB)
--------examples()
--------test_paths.py(2KB)
--------test_main.py(6KB)
----tox.ini(224B)
----LICENSE(1KB)
----.isort.cfg(370B)
----setup.cfg(2KB)
----requirements()
--------prod.txt(640B)
--------dev.in(44B)
--------ci.txt(5KB)
--------ci.in(422B)
--------dev.txt(8KB)
----setup.py(331B)
----.gitignore(1KB)
----cfg_load()
--------cli.py(2KB)
--------__init__.py(13KB)
--------paths.py(1KB)
--------_version.py(96B)
--------remote.py(2KB)
----Makefile(550B)
----README.md(5KB)
----.pre-commit-config.yaml(1KB)

网友评论