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
:
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 poetry
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/
poetry install
Documentation
We use Sphinx, Autodoc, Napoleon, and
sphinx_autodoc_typehints
to make our documentation.
The below creates html.
poetry run make html
Tests
Unittests
poetry run python -m pytest
Unittests Coverage
poetry run coverage run --source=nqm -m pytest && poetry run coverage report
Typetests
poetry run mypy -m nqm.iotdatabase && echo -e "\e[1;32mPass! \e[0m"
Doctests
poetry run make doctest
Linting
poetry run pre-commit run --all-files
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.5.tar.gz
(21.5 kB
view hashes)
Built Distribution
Close
Hashes for nqm.iotdatabase-1.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b065c7c7b5080952de327fa7a47a6cb21a116448f59ae65a1c96a610c541f9a1 |
|
MD5 | 4d60f28e0afb7ac82c31f6e37248b04b |
|
BLAKE2b-256 | 214e9083bb8f2b5a69bf02c599bb7296456c06ca355764bbec27efa75e4e68af |