Skip to main content

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 plcm package 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

plcm-0.0.0a4.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

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

plcm-0.0.0a4-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file plcm-0.0.0a4.tar.gz.

File metadata

  • Download URL: plcm-0.0.0a4.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for plcm-0.0.0a4.tar.gz
Algorithm Hash digest
SHA256 a96efbfd60c2bf2130b88aad4ddfdce03460bdfddeca649e4fc122506ba5f3ee
MD5 a9e07c23352bee7b5f43039ba1c2c9c9
BLAKE2b-256 e2534e74f4245cf2e878383a8404f34a99dc2f42d10b8ef7a6ad07c0987b5a4b

See more details on using hashes here.

File details

Details for the file plcm-0.0.0a4-py3-none-any.whl.

File metadata

  • Download URL: plcm-0.0.0a4-py3-none-any.whl
  • Upload date:
  • Size: 12.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for plcm-0.0.0a4-py3-none-any.whl
Algorithm Hash digest
SHA256 47e0de0abdfdcc8747e04bbe80b1f46755f62cb647aaaae9de78ebf95bad8bf1
MD5 285b4196b8404a594dbb36483754c630
BLAKE2b-256 cf55cf65fa03415c43ae93df4c933edca1b1ddcd863787f909de312dd0000ae5

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