Library for accessing a local nqm-iot-database
Project description
nqm-iot-database-utils-python
Python port of
nqminds/nqm-iot-database-utils
Installing
Use the below to install as a library using 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
You can replace pip3
with pipenv
if you prefer.
To download the library, install dependencies for running tests, and build documentation, do:
git clone https://github.com/nqminds/nqm-iot-database-py.git
cd nqm-iot-database-py/
pipenv --python 3 install --dev
Documentation
We use Sphinx, Autodoc, Napoleon, and
sphinx_autodoc_typehints
to make our documentation.
The below creates html.
pipenv run make html
Tests
Unittests
pipenv run python -m pytest
Unittests Coverage
pipenv run coverage run --source=nqm -m pytest && pipenv run coverage report
Typetests
pipenv run mypy -m nqm.iotdatabase && echo -e "\e[1;32mPass! \e[0m"
Doctests
pipenv run make doctest
Linting
pipenv run pylint nqm
Possible upgrades to make in SQLAlchemy
- Add sorting on Primary Keys (SQLite feature)
- allow using SQLite URI connections (for read-only)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nqm.iotdatabase-1.1.0.tar.gz
(20.9 kB
view hashes)
Built Distribution
Close
Hashes for nqm.iotdatabase-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11dfd36a376401135080239fa3ed8e7ec50071b61780b7c989730f0fffab23fa |
|
MD5 | 60c489c7644515c288f122d2281af4aa |
|
BLAKE2b-256 | 5327dabb9847229ee1553249930078bb645314844a27096543c8452c6941b09d |