Skip to main content

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.4.tar.gz (21.7 kB view details)

Uploaded Source

Built Distribution

nqm.iotdatabase-1.1.4-py3-none-any.whl (25.5 kB view details)

Uploaded Python 3

File details

Details for the file nqm.iotdatabase-1.1.4.tar.gz.

File metadata

  • Download URL: nqm.iotdatabase-1.1.4.tar.gz
  • Upload date:
  • Size: 21.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.0b2 CPython/3.7.5rc1 Linux/5.3.0-19-generic

File hashes

Hashes for nqm.iotdatabase-1.1.4.tar.gz
Algorithm Hash digest
SHA256 8c2f598c5e5fc1d81b535b75932fb2fb421e10fecd016b0edb45cca134a5e883
MD5 c44e8a60181647a0c1dc547dd26d7a16
BLAKE2b-256 62bef6b6628bff3230503529d8ad67edb708c955cd8ed73555de2f0c8a12d1bb

See more details on using hashes here.

File details

Details for the file nqm.iotdatabase-1.1.4-py3-none-any.whl.

File metadata

  • Download URL: nqm.iotdatabase-1.1.4-py3-none-any.whl
  • Upload date:
  • Size: 25.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.0b2 CPython/3.7.5rc1 Linux/5.3.0-19-generic

File hashes

Hashes for nqm.iotdatabase-1.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 55b47ab7a6c40ddd71699efca394a8d1df66b914c8f9466ce5fdfa4d7a6b03d3
MD5 ae7d6fd18eefffb6ef2858bde78baf3d
BLAKE2b-256 ecb928a616834622e60bd06bdc5c987899d258b1cf5eca7f6e3f8781301ea782

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page