Skip to main content

Protocol Parser for Dr. Storage Dry Air Cabinets

Project description

drstorage

GitHub Project GitHub Actions Status: CI Code Coverage pre-commit.ci status Code style: black

Using

From python

>>> import drstorage
>>> data = bytearray.fromhex("abab00471200c5120901000000000000000a10025810000000000000140d0a")
>>> result = drstorage.models.F1_600.parse(data)
>>> print(result)
Container:
    humidity = 7.1
    temperature = 19.7

or from command line

$ python -c 'import sys; sys.stdout.buffer.write(bytes(bytearray.fromhex("abab00471200c5120901000000000000000a10025810000000000000140d0a")))' | drstorage parse --model F1_600
Container:     humidity = 7.1    temperature = 19.7

Installation

In a fresh virtual environment

$ python -m pip install "git+https://github.com/kratsg/drstorage.git"

The above is actually cloning and installing directly from the Git repository. However, if you want to, you can of course also install it directly from the Git repository "locally" by first cloning the repo and then from the top level of it running

$ python -m pip install .

Contributing

As this library is experimental contributions of all forms are welcome. You are of course also most welcome and encouraged to open PRs.

Developing

To develop, use a virtual environment. Once the environment is activated, clone the repo from GitHub

git clone git@github.com:kratsg/drstorage.git

and install all necessary packages for development

python -m pip install --ignore-installed --upgrade -e .[complete]

Then setup the Git pre-commit hooks by running

pre-commit install

Acknowledgements

  • Mike Hance
  • Noah Peake
  • Will Johansson
  • James Tranovich
  • Anja Berens
  • Paul Ingemi

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

drstorage-0.1.0.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

drstorage-0.1.0-py2.py3-none-any.whl (5.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file drstorage-0.1.0.tar.gz.

File metadata

  • Download URL: drstorage-0.1.0.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for drstorage-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7eee9d6273f8e032d117eef289c4fb93fb7febae405bc8fb910ac309e6e71dc5
MD5 ae53025e35ca3e3df87fbbfcc0376cf5
BLAKE2b-256 9d4991a4f2d2d6c578409c05186f970bdbc917971b7c3f11bb4fa6c21bb330e8

See more details on using hashes here.

File details

Details for the file drstorage-0.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: drstorage-0.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for drstorage-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b25e163b44545d94f980f8f78196cebd8ce6ffa07cf0d1973f232ffeb2e3dbf9
MD5 6840dedc665f52887df262717f5f8a98
BLAKE2b-256 229736866e3e5f23e84bb4bebc7fc41007f6d72c0e028f81d4b02f7738903b49

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