drstorage
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
model = 600
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 model = 600
Supported Models
generic(default, the "base" Dr. Storage model)F1_600F1_1200X2M_157
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
- Matthew Gignac
Metadata
Release files for drstorage 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| drstorage-0.2.2.tar.gz | 12.6 kB | Without provenance | Details for drstorage-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| drstorage-0.2.2-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for drstorage-0.2.2-py2.py3-none-any.whl |
Total release size: 19.2 kB
Release files / drstorage-0.2.2.tar.gz
| Download URL | drstorage-0.2.2.tar.gz |
|---|---|
| Size | 12.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4044d840ff2fefc656131e15bdb4199bab4dbd4a4ed8b904991e654ffa4cdb54
|
|
BLAKE2b-256 checksum How to use checksums |
4d81fbbd8e550f7ea91f780262aae03daf214322b1973f340b5ebcafe4234320
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9
|
Release files / drstorage-0.2.2-py2.py3-none-any.whl
| Download URL | drstorage-0.2.2-py2.py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
475e5ed7ab93e6741a2302300bf0c68a1be15ec497ce7b00ddc80c53cfab61d9
|
|
BLAKE2b-256 checksum How to use checksums |
c39033a2b762852c693978dbbaef0ae2bc74f33afe15f6554e7aaf3980895f3f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9
|
Security for drstorage 0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.