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
:
# pypi version is only for Python 2
pip3 install git+https://github.com/dignio/py-mongosql#egg=mongosql
# for SSH:
# pip3 install git+ssh://git@github.com/nqminds/nqm-iot-database-py.git#egg=nqm.iotdatabase
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.0.0.tar.gz
(20.3 kB
view details)
Built Distribution
File details
Details for the file nqm.iotdatabase-1.0.0.tar.gz
.
File metadata
- Download URL: nqm.iotdatabase-1.0.0.tar.gz
- Upload date:
- Size: 20.3 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 | 85659d7f92762e580da67bebd75c426d140f89aac7027828e24f30ef9142c336 |
|
MD5 | 8b4362ce661ef1596194a39697a1ab32 |
|
BLAKE2b-256 | 42e956ed2ee2ad35220f23a7adfa935337aa110e89e1648d2fee5f0385690316 |
File details
Details for the file nqm.iotdatabase-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: nqm.iotdatabase-1.0.0-py3-none-any.whl
- Upload date:
- Size: 24.6 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 | 4bbe7201dcf1a520f0d723b84d7705fe903a5dbdecfde2984b28f4cf9a9ff4b8 |
|
MD5 | 2cc60f38ba8681d4e2d9cd76dfa80933 |
|
BLAKE2b-256 | 467a4462e4b2789969cf36d5de47d3f0d42eedc9d2823dc672fb54de18fe0450 |