Skip to main content

An easy to use Python implementation of OpenLCB (LCC) protocols, designed to interface with both CAN and TCP/IP

Project description

pyOLCB

An easy to use python implementation of OpenLCB (LCC) protocols, designed to interface with CAN (and TCP/IP via gridconnect and the native OpenLCB specification in a future release).

This is very much a work in progress, please don't expect it to function fully for a while.

Documentation is available at https://www.uncommonmodels.com/pyOLCB

from pyolcb import Node, Address, Event, Interface
import can

address = Address('05.01.01.01.8C.00')
interface = Interface(can.Bus(interface='socketcan', channel='vcan0', bitrate=125000))

node = Node(address, interface)

node.produce(Event(125))

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

pyOLCB-0.1.0.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyOLCB-0.1.0-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file pyOLCB-0.1.0.tar.gz.

File metadata

  • Download URL: pyOLCB-0.1.0.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pyOLCB-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5eaf2963d066ebfd7a059e3931f86e4737ea14cc00d94fac7967b4b110af238a
MD5 f157c02fcbadbd17d0b04712ddddaef2
BLAKE2b-256 8cb054a5c63182c624fd0c65377e68e0a4fc4ad9a680838a9532f6799295d39e

See more details on using hashes here.

File details

Details for the file pyOLCB-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pyOLCB-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pyOLCB-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d7c1bc8c6fa232f26c3dcb4078a170efebde20c2e94c7c5c93b6e6dad82f213b
MD5 6d9749b13dbba48afb2cee0415f15793
BLAKE2b-256 4f9d2fc1e9de27da6ee95d68c30dddcf0298203dbd598d97c81bf05c3e57195a

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