LoRaWAN network servers and devices codec library
Project description
pyLibLoRaWAN - Python library to interface with LoRaWAN devices and network servers
Introduction
This library aims to enable LoRaWAN the Home Assistant integration to interact with LoRaWAN network servers and devices, but can be reused for other purposes.
Compatibility list
Network servers
- Helium, either from the the foundation or self hosted
- Orange Live Objects, a French operator
- The Things Stack: TTN, TTI or self hosted
Devices
- Browan TBMS100: PIR motion sensor
Usage
Usage - Network servers
Import the network server object then call the input normalization formatter function:
from pyliblorawan.network_servers.ttn import TTN
ns = TTN(**kwargs)
uplink = ns.normalize_uplink(ttn_uplink_dict)
Some other functions are available:
list_devices: List devices in the authorized scope
Usage - Devices
Import the device object then call the payload parser function:
from pyliblorawan.devices.browan.tbms100 import TBMS100
device = TBMS100()
await tbms100.parse_uplink(uplink_object)
Test
Install requirements.txt and requirements-dev.txt then:
python3 -m pytest -vv --cov=. --cov-config=tests/.coveragerc tests/
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 pyliblorawan-0.5.1.tar.gz.
File metadata
- Download URL: pyliblorawan-0.5.1.tar.gz
- Upload date:
- Size: 27.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
415ecd10d395d1763158c85533fff8fa8f2734e8159b50e29f722a84a65bcf03
|
|
| MD5 |
b932600157ab658e196eeda2c983d993
|
|
| BLAKE2b-256 |
c1983d79bd5caa9b1e139f9e1a459f031871fe4f2ec48d3ff2b692882cd375fd
|
File details
Details for the file pyliblorawan-0.5.1-py3-none-any.whl.
File metadata
- Download URL: pyliblorawan-0.5.1-py3-none-any.whl
- Upload date:
- Size: 29.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
033fbee9988f6f35dcbdbb29c5163ed49972187400ee79d0d23c11358fe300ff
|
|
| MD5 |
0930b24a3ab9acb3cd5b9eb421b12f34
|
|
| BLAKE2b-256 |
5ca9959f95b10c6325310c71b2f7431b6934f2126c30b9bd164e6bd03110d297
|