A package to decode data encoded in the CayenneLPP format.
Project description
Python-CayenneLPP
Introduction
Open-source library for python to decode CayenneLPP format payload. The Cayenne Low Power Payload (LPP) provides a convenient and easy way to send data over LPWAN networks such as LoRaWAN. More details on CayenneLPP payload: https://github.com/myDevicesIoT/cayenne-docs
Note: while Python versions 2.7 and <=3.7 may work, they're not officially supported since they're EOL.
Installation
To install the package use next pip command
pip install python-cayennelpp
Usage
To decode payload simply use method decode() from this package
>>>from python_cayennelpp.decoder import decode
>>>print(decode('03670110056700FF'))
[{'channel': 3, 'name': 'Temperature Sensor', 'value': 27.2}, {'channel': 5, 'name': 'Temperature Sensor', 'value': 25.5}]
Additional info
The package may raise following exceptions:
TypeError- if the provided data is not of thestrtypeValueError- if the provided data length is not equal to the expected
Note: if the package receives a wrong sensor type the intermediate result of the decoder will be returned, error printed to the stdout, but
KeyErrorexception will not be raised
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file python_cayennelpp-0.1.0.tar.gz.
File metadata
- Download URL: python_cayennelpp-0.1.0.tar.gz
- Upload date:
- Size: 41.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51db944cf6ae28f7d490631975ab0df6501974f902bbc0631d97aae52255e34d
|
|
| MD5 |
8e01d695363df9af98624c43b6d63839
|
|
| BLAKE2b-256 |
e2b03ef9e74122be58100b63971bf6b12f046edd6de996fa03cf910d41dda3bc
|
Provenance
The following attestation bundles were made for python_cayennelpp-0.1.0.tar.gz:
Publisher:
release.yml on OlegZv/Python-CayenneLPP
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
python_cayennelpp-0.1.0.tar.gz -
Subject digest:
51db944cf6ae28f7d490631975ab0df6501974f902bbc0631d97aae52255e34d - Sigstore transparency entry: 226786502
- Sigstore integration time:
-
Permalink:
OlegZv/Python-CayenneLPP@9ab9508c392a4fa20b1ee136b8a7f5de472281bf -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/OlegZv
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@9ab9508c392a4fa20b1ee136b8a7f5de472281bf -
Trigger Event:
release
-
Statement type:
File details
Details for the file python_cayennelpp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: python_cayennelpp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa1c5343b2c8fe3a7d1a5d920fcd8f39aacbc88f61e52d277936fcc60f03a181
|
|
| MD5 |
3fe3a0f8ceb0b3d62e93c310d426e871
|
|
| BLAKE2b-256 |
85f15e46d4686e7f3b9da6d5b17c04bdb0ed20f4615b089bdbedf2c3f53a61c2
|
Provenance
The following attestation bundles were made for python_cayennelpp-0.1.0-py3-none-any.whl:
Publisher:
release.yml on OlegZv/Python-CayenneLPP
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
python_cayennelpp-0.1.0-py3-none-any.whl -
Subject digest:
aa1c5343b2c8fe3a7d1a5d920fcd8f39aacbc88f61e52d277936fcc60f03a181 - Sigstore transparency entry: 226786503
- Sigstore integration time:
-
Permalink:
OlegZv/Python-CayenneLPP@9ab9508c392a4fa20b1ee136b8a7f5de472281bf -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/OlegZv
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@9ab9508c392a4fa20b1ee136b8a7f5de472281bf -
Trigger Event:
release
-
Statement type: