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.0a3.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.0a3-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: plcm-0.0.0a3.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.0a3.tar.gz
Algorithm Hash digest
SHA256 2f37d2148987883fd221dab61b734a691537bb7b2687f57e59a258bd4dc5dd7a
MD5 d2be96c17efda394ac6ef2aa2c22a832
BLAKE2b-256 35182605fcffb5dbf2f836bf2bdbb90a818a32fd7c012126a62dcf9e6f3552d7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: plcm-0.0.0a3-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.0a3-py3-none-any.whl
Algorithm Hash digest
SHA256 363d93e20660f4010467808da9af2c834c992fd377bba6e202d764f6a26e1851
MD5 fa5f7bebbfa6f84f77d3968f9580f9cd
BLAKE2b-256 50378db497a16a72a174dd0923efed5880814b86db1651b9da47b6ec62c1e740

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