IoT Sample Stream Compressor
Project description
StreamKompressor
StreamKompressor is a Python library for compressing and decompressing sample data streams from IoT devices and sensors. It also can divide the data in a maximum-byte-number block size, ideal for sending data to a limited packet size communication protocol such LoraWan, non continuos satellite connectivity (LEO) or distributed storage systems.
Algorithm
StreamKompressor manages only integer values and utf-8 encoded labels. It performs better with small labels (less characters as possible)
Installation
Use the package manager pip to install foobar.
pip install py-streamkompressor
Usage
from streamkompressor.streamkompressor import StreamKompressor
#Input Data example
data = [
{'a': 1, 'b': 2, 'c': 10000},
{'a': 7, 'b': 1, 'c': 10001},
#...
{'a': -34, 'b': 1, 'c': 10006}
]
#Initialize
sk = StreamKompressor()
#Compress
result = sk.kompress(data, label="optional")
#Decompress
data, label = sk.dekompress(result)
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
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 py_streamkompressor-0.0.2-py3-none-any.whl.
File metadata
- Download URL: py_streamkompressor-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
971db0829bdbfcf7cfc9a835ac1ce841b3f56863d72bf68f25a005a6e950547b
|
|
| MD5 |
459575d589d47c978e81d945cca24ad4
|
|
| BLAKE2b-256 |
86944e35b0c10fef16c4a8d8fc50645bce99eddba882a5110f27175a3ffc23bf
|