Alternative, pure-python implementation of lcm.
Project description
pylcm
This project is a pure-python implementation of lcm's netcode. It is not a drop-in replacement. Instead, it provides alternative and (ideally) more Pythonic interfaces. However, it is meant to be interoperable with any other lcm client over the network.
Over time, some of the tools like lcmgen or lcm-spy may be reimplemented here in Python, but the primary focus is on the netcode and idiomatic implementations of that netcode.
installation
The package plcm is available for installation using
pip or your favorite package manager:
pip3 install plcm
usage
from plcm import Lcm
def callback(channel: str, data: bytes) -> None:
print(channel, data)
connection = Lcm().connect("tcpq://")
subscription = connection.subscribe("channelname", callback)
...
connection.publish("channelname", b"\x00\x00\x00\x00")
...
subscription.unsubscribe()
connection.publish("channelname", b"\x00\x00\x00\x00")
...
connection.disconnect()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file plcm-0.0.0a1.tar.gz.
File metadata
- Download URL: plcm-0.0.0a1.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
766701195a3158221e2325bf41485066e5be554f1b309bc645ffdc1fe4c73014
|
|
| MD5 |
d9e446228e6b1f80a97266654bee3867
|
|
| BLAKE2b-256 |
8fcdc807f2112cb4c72eb2d09b94255cbf6eda7f0090717343291d59150b8867
|
File details
Details for the file plcm-0.0.0a1-py3-none-any.whl.
File metadata
- Download URL: plcm-0.0.0a1-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d3aa9e6df4e318339ca65a088448d41cd24a1b0549cfa7345b3f933decb0f8b
|
|
| MD5 |
75a041222f180eb8021f50c0511f3f10
|
|
| BLAKE2b-256 |
91ba96cfcb312a0eb9ef1b4f2aa1146aa69e68999cb3ea2d162358e20400ec1b
|