Metadata-Version: 2.1
Name: pyOLCB
Version: 0.1.0
Summary: An easy to use Python implementation of OpenLCB (LCC) protocols, designed to interface with both CAN and TCP/IP
Home-page: https://github.com/UncommonModels/pyOLCB
Author: ngpaladi
Author-email: pyOLCB@uncommonmodels.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Requires-Python: >3.10.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: python-can

# 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](https://www.uncommonmodels.com/pyOLCB)


```python
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))
```
