Logic Elements core utilities
Project description
LE core package
This is package of core python utils for LE containing:
- Looger
Install
Install or update version
pip install lecore
pip install --upgrade lecore
Import
Import package as usual
import lecore
Looger
Class Looger allows for sending debug data into Development Debug Server (DDS) a.k.a. Looger. Public instance run on https://looger.jablotron.cz
Create instance when default public endpoint is to be used
looger = Looger()
Set device
looger.set_device(0x111CC1234, 0, None)
Send data and log
data = {'data_1': 1, 'data_2': 2}
log = f"Message to log"
looger.send(data, log, 0)
Build [note to myself]
In command line (not venv) run:
Update PIP, build, twine
python -m pip install --upgrade build
python -m pip install --upgrade pip
python -m pip install --upgrade twine
Run Build
py -m build
Upload package to pypi.org server
py -m twine upload dist/*
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 Distribution
lecore-0.1.6.tar.gz
(24.1 kB
view details)
Built Distribution
lecore-0.1.6-py3-none-any.whl
(29.0 kB
view details)
File details
Details for the file lecore-0.1.6.tar.gz
.
File metadata
- Download URL: lecore-0.1.6.tar.gz
- Upload date:
- Size: 24.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7d878f2c54e15ac8328af20ad056ff688fd8289a33d589d7c91b10dcef22182 |
|
MD5 | 06de49c24a4be6ece59344adc2321a91 |
|
BLAKE2b-256 | 49ae632588591f915ec1da1b9525df47210a1ff7c337a1b51bccfbf45856ef21 |
File details
Details for the file lecore-0.1.6-py3-none-any.whl
.
File metadata
- Download URL: lecore-0.1.6-py3-none-any.whl
- Upload date:
- Size: 29.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29dd07d533214effbc959e6c189a7f39c7dcfd6d24f83d6a4fc57a0c2307724d |
|
MD5 | e293b4c911ccfc34b261e3d482a4b7be |
|
BLAKE2b-256 | 4a5f04436f530a92528770becd63d2469416d5340c5985b7eb4701b2d1665ed6 |