drstorage-0.2.2
توضیحات
Protocol Parser for Dr. Storage Dry Air Cabinets
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | drstorage-0.2.2 |
| نام | drstorage |
| نسخه کتابخانه | 0.2.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Giordon Stark |
| ایمیل نویسنده | gstark@cern.ch |
| آدرس صفحه اصلی | https://github.com/kratsg/drstorage |
| آدرس اینترنتی | https://pypi.org/project/drstorage/ |
| مجوز | BSD 3-Clause |
# drstorage
[](https://github.com/kratsg/drstorage)
[](https://github.com/kratsg/drstorage/actions?query=workflow%3ACI+branch%3Amaster)
[](https://codecov.io/gh/kratsg/drstorage?branch=master)
[](https://results.pre-commit.ci/latest/github/kratsg/drstorage/master)
[](https://github.com/psf/black)
## Using
From python
```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
```bash
$ 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_600`
- `F1_1200`
- `X2M_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
نیازمندی
| مقدار | نام |
|---|---|
| >=7.0 | click |
| >=2.10 | construct |
| - | black |
| - | bump2version |
| - | check-manifest |
| - | flake8 |
| - | pre-commit |
| ~=0.2 | pytest-console-scripts |
| ~=2.8 | pytest-cov |
| ~=3.0 | pytest-mock |
| ~=6.0 | pytest |
| - | twine |
| - | black |
| - | bump2version |
| - | check-manifest |
| - | flake8 |
| - | pre-commit |
| ~=0.2 | pytest-console-scripts |
| ~=2.8 | pytest-cov |
| ~=3.0 | pytest-mock |
| ~=6.0 | pytest |
| - | twine |
| - | black |
| - | flake8 |
| - | check-manifest |
| ~=0.2 | pytest-console-scripts |
| ~=2.8 | pytest-cov |
| ~=3.0 | pytest-mock |
| ~=6.0 | pytest |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl drstorage-0.2.2:
pip install drstorage-0.2.2.whl
نصب پکیج tar.gz drstorage-0.2.2:
pip install drstorage-0.2.2.tar.gz