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.0.tar.gz
(4.4 kB
view details)
Built Distribution
File details
Details for the file lecore-0.1.0.tar.gz
.
File metadata
- Download URL: lecore-0.1.0.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbfa43335c849a74af8a2051ea7de6db8d35cb469ae035dc68b4702893a6d5f8 |
|
MD5 | f5556ba3007e1abc94e751086321908d |
|
BLAKE2b-256 | 603b3013a2c93a51c69994aef403d9f69f819d744bbc48dc2e61e714a278c38d |
File details
Details for the file lecore-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: lecore-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.4 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 | bf3920aa76a5bd9c6d4cbdccdc27b794a38269e8ea2d90930e82543a6ea75fb8 |
|
MD5 | 3ac948bff298d4264c0e1a30f4753047 |
|
BLAKE2b-256 | acf80b153ed3808d01c53cc7bf3aa42467d071be149045639e4c63014aa8f9c4 |