Skip to main content

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


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.7.tar.gz (24.4 kB view details)

Uploaded Source

Built Distribution

lecore-0.1.7-py3-none-any.whl (29.0 kB view details)

Uploaded Python 3

File details

Details for the file lecore-0.1.7.tar.gz.

File metadata

  • Download URL: lecore-0.1.7.tar.gz
  • Upload date:
  • Size: 24.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.2

File hashes

Hashes for lecore-0.1.7.tar.gz
Algorithm Hash digest
SHA256 15943acb46e5bb2566afd370694d33b2eec7e7ff398a0cf5b00505ebd5f01502
MD5 e0fe3a128336de1e6bb9201a387af1fc
BLAKE2b-256 f441db6e8746b4837d0bc8780f7840183f57144e75bcbe8392dacc30fe37fc42

See more details on using hashes here.

File details

Details for the file lecore-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: lecore-0.1.7-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

Hashes for lecore-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 0f9d66b9d775640cd8a2f730fe556b5b48f260baeafa9f58dd9beb1fc44ccabc
MD5 34e167c83c003511903aba4e3200ce58
BLAKE2b-256 c29b9799a66ce349089919725628fe044a047e840ed191999802116c10b73676

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page