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

Uploaded Source

Built Distribution

lecore-0.1.2-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lecore-0.1.2.tar.gz
  • Upload date:
  • Size: 11.0 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.2.tar.gz
Algorithm Hash digest
SHA256 3c319017c2a7b070c09a0ec172b0e51d7a1a8cefc8e954844e5deab31ef55269
MD5 b9cd304eab4ae9245a4a8fb9d8d44cbb
BLAKE2b-256 b34f81697924dd8d2ea98fb50b6bb4aca165ee8be302fd9db389bb55ae60dfac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lecore-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 12.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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 84a0a841d527dd299f31337a6c9fe592460a82ca103e10239679236fa7b6a70b
MD5 24bfbe73c4f9949e324fc80f3337e6c9
BLAKE2b-256 6b76fdfd8f6df58670b9f59a0427313b271f0d5ff6ee62a388b7904b9d165e27

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