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.1.tar.gz
(21.0 kB
view details)
Built Distribution
File details
Details for the file nqm.iotdatabase-1.1.1.tar.gz
.
File metadata
- Download URL: nqm.iotdatabase-1.1.1.tar.gz
- Upload date:
- Size: 21.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/38.4.0 requests-toolbelt/0.9.1 tqdm/4.23.4 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 553118bf7b352f8b21e171e1b2e86876ac6ed44a60c3c1d6c4200f71e754e7ef |
|
MD5 | 0cb683eee74460662df0571a7b987aaf |
|
BLAKE2b-256 | 386604ac0691d2fedea9f837a196e5da97fe60314cf2fee3e081634ed96e140d |
File details
Details for the file nqm.iotdatabase-1.1.1-py3-none-any.whl
.
File metadata
- Download URL: nqm.iotdatabase-1.1.1-py3-none-any.whl
- Upload date:
- Size: 25.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/38.4.0 requests-toolbelt/0.9.1 tqdm/4.23.4 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7934e3a2e7219eb2259d8808305357b74820f131cdd8fbdc24f01cc8d557389a |
|
MD5 | f0fbb64b77713cbcff1e315c5c34bf4a |
|
BLAKE2b-256 | 16e49e30ea846c8b2f1a60b08ccda45835501ed675005bce7b6f81d0f6f40db5 |