用于访问本地NQM IoT数据库的库
nqm.iotdatabase的Python项目详细描述
nqm iot数据库实用程序python
python端口
^{
安装
使用pip
,使用下面的库进行安装:
# py-mongosql on pypi does not support Python3 pip3 install git+https://github.com/dignio/py-mongosql#egg=mongosql pip3 install nqm.iotdatabase # installing the latest git version:# pip3 install git+https://github.com/nqminds/nqm-iot-database-py.git#egg=nqm.iotdatabase
如果您愿意,可以用pipenv
替换pip3
。
要下载库,请安装运行测试的依赖项,然后生成 文档,do:
git clone https://github.com/nqminds/nqm-iot-database-py.git cd nqm-iot-database-py/ pipenv --python 3 install --dev
文档
我们用狮身人面像,汽车医生,拿破仑,还有
^{
下面创建html。
pipenv run make html
测试
单元测试
pipenv run python -m pytest
单元测试覆盖率
pipenv run coverage run --source=nqm -m pytest && pipenv run coverage report
型式试验
pipenv run mypy -m nqm.iotdatabase &&echo -e "\e[1;32mPass! \e[0m"
博士
pipenv run make doctest
起毛
pipenv run pylint nqm
在sqlalchemy中可能进行的升级
- 添加主键排序(sqlite功能)
- 允许使用sqlite uri连接(只读)