卡加米图书馆(伊祖莫)
kagami的Python项目详细描述
卡加米图书馆
kagami库是一个python包,用于reinvent the wheel并简化某些开发。它的设计既不方便用户使用,也不适合广大公众使用。将来可能会包括文件。但还没计划好。在你的项目中使用它之前要三思。
卡加米图书馆正在迅速发展。不能保证主要版本之间的兼容性。请注意所需的版本。
Kagami库支持Python2.7,不久将与Python3兼容。Kagami库是在GNU Lesser General Public License v3.0下发布的。
依赖关系
卡加米要求:
- Python(>;=2.7.14)
- 纽比(>;=1.14.3)
- 表格(>;=3.4.4)
- 请求(>;=2.20.1)
- 投标(>;=0.17.5)
- Pytest(>;=4.0.0)
要使用rwrapper,您还需要:
- rpy2(=2.8.6)
- R(>;=3.3.3)
要使用pytest覆盖率和分析,您还需要:
- pytest cov(>;=2.6.0)
- pytest配置文件(>;=1.3.0)
较低版本可以工作,但尚未测试。
安装
使用pip:
pip install kagami
使用pipenv:
pipenv install kagami
使用Docker
docker run -v $(pwd):/home --rm albertaki/kagami-core:latest <your script>
测试
importkagamikagami.test()===================================testsessionstarts===================================platformdarwin--Python2.7.15,pytest-3.7.0,py-1.5.4,pluggy-0.7.1rootdir:Kagami,inifile:plugins:profiling-1.3.0,cov-2.5.1collected47itemskagami/tests/core_tests/test_etc.py......[12%]kagami/tests/core_tests/test_functional.py.....[23%]kagami/tests/core_tests/test_path.py...[29%]....