Skip to main content

A message decoder for the Internet of Things

Project description

Theengs Decoder

Installation

  • Create a virtual environment python3 -m venv theengs-venv

  • Activate the virtual environment source theengs-venv/bin/activate

  • Install and upgrade pip python3 -m pip install --upgrade pip

  • Install dependencies pip3 install setuptools setuptools_scm cmake==3.25.0 wheel scikit-build ninja

  • Clone Theengs Decoder git clone --recursive https://github.com/Theengs/decoder.git

  • cd to python folder inside the repository cd decoder/python

  • Copy sources inside the build repository cp -r ../src .

  • Build wheel python3 setup.py bdist_wheel

  • Install cd .. pip3 install python/dist/*.whl

  • Verify installation python3 -c "from TheengsDecoder import decodeBLE; print('Successfully imported decodeBLE from PR_build.yml')"

You should see: Successfully imported decodeBLE from PR_build.yml

using

import TheengsDecoder

methods

  • decodeBLE(string) Returns a new string with the decoded data in json format or None.
  • getProperties('model_id string') Returns the properties (string) of the given model ID or None
  • getAttribute('model_id string', 'attribute string') Return the value (string) of named attrubte of the model ID or None.

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

theengsdecoder-2.1.0.tar.gz (311.9 kB view details)

Uploaded Source

File details

Details for the file theengsdecoder-2.1.0.tar.gz.

File metadata

  • Download URL: theengsdecoder-2.1.0.tar.gz
  • Upload date:
  • Size: 311.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for theengsdecoder-2.1.0.tar.gz
Algorithm Hash digest
SHA256 a61ce1d27c4699e2e4c2f69ef8dd2275a0e272e8299977a743b2ce056dbb6a5b
MD5 84ee5440a97f9288a807dd198a2873f6
BLAKE2b-256 6ba72c0cc6a0e8058dafb7b6ff23af4a801952c3475a327b7c3b0c479469b13e

See more details on using hashes here.

Supported by

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