Skip to main content

Creates a CAN over TCP/IP bridge for use with python-can.

Installation

Install using pip:

$ pip install python-can-remote

Usage

Start server from command line:

$ python -m can_remote --interface=virtual --channel=0 --bitrate=500000

Create python-can bus:

import can

# Create a connection to server. Any config is passed to server.
bus = can.Bus('ws://localhost:54701/',
              bustype='remote',
              bitrate=500000,
              receive_own_messages=True)

# Send messages
msg = can.Message(arbitration_id=0x12345, data=[1,2,3,4,5,6,7,8])
bus.send(msg)

# Receive messages
msg2 = bus.recv(1)
print(msg2)

# Disconnect
bus.shutdown()

Web interface

There is also a basic web interface for inspecting the CAN traffic using a browser. It is available on the same address using HTTP, e.g. http://localhost:54701/.

Metadata

Release files for python-can-remote 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-can-remote 0.3.0
File Size Uploaded
python_can_remote-0.3.0.tar.gz 192.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-can-remote 0.3.0
File Interpreter ABI Platform
python_can_remote-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 383.5 kB

Release files / python_can_remote-0.3.0.tar.gz

Download URL python_can_remote-0.3.0.tar.gz
Size 192.9 kB
Tags Source
SHA-256 checksum
How to use checksums
40ffe0351eff33338e7d13d576c5f1d2fb979ab11da8b7a7f2f288f5d3e0df03
BLAKE2b-256 checksum
How to use checksums
f1086a276ae5a0713950cb0ed432efb4dab2f52ec9c3e394d385ed487cd15356
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release files / python_can_remote-0.3.0-py3-none-any.whl

Download URL python_can_remote-0.3.0-py3-none-any.whl
Size 190.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
979ebbd1851fbb701704e75fd9100c1349c198a976727140a28dc235c13b6561
BLAKE2b-256 checksum
How to use checksums
f4880d990f544b83c473a782083b2d8d9052ae916355a79cde2a98b1eadcf2d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

1 release file

0.2.0

1 release file

0.1.5

2 release files

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page