CAN over network bridge for Python
==================================
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:
.. code-block:: python
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/.
.. _python-can: https://python-can.readthedocs.org/en/stable/
Raw data
{
"_id": null,
"home_page": "https://github.com/christiansandberg/python-can-remote",
"name": "python-can-remote",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "CAN TCP websocket",
"author": "Christian Sandberg",
"author_email": "christiansandberg@me.com",
"download_url": "https://files.pythonhosted.org/packages/f0/4f/7975c1ad75dc022f4601baf2bda27ae9f751e275d3463d4ec6ce145bfd00/python_can_remote-0.2.3.tar.gz",
"platform": "any",
"description": "CAN over network bridge for Python\r\n==================================\r\n\r\nCreates a CAN over TCP/IP bridge for use with python-can_.\r\n\r\n\r\nInstallation\r\n------------\r\n\r\nInstall using pip::\r\n\r\n $ pip install python-can-remote\r\n\r\n\r\nUsage\r\n-----\r\n\r\nStart server from command line::\r\n\r\n $ python -m can_remote --interface=virtual --channel=0 --bitrate=500000\r\n\r\n\r\nCreate python-can bus:\r\n\r\n.. code-block:: python\r\n\r\n import can\r\n\r\n # Create a connection to server. Any config is passed to server.\r\n bus = can.Bus('ws://localhost:54701/',\r\n bustype='remote',\r\n bitrate=500000,\r\n receive_own_messages=True)\r\n\r\n # Send messages\r\n msg = can.Message(arbitration_id=0x12345, data=[1,2,3,4,5,6,7,8])\r\n bus.send(msg)\r\n\r\n # Receive messages\r\n msg2 = bus.recv(1)\r\n print(msg2)\r\n\r\n # Disconnect\r\n bus.shutdown()\r\n\r\n\r\nWeb interface\r\n-------------\r\n\r\nThere is also a basic web interface for inspecting the CAN traffic\r\nusing a browser.\r\nIt is available on the same address using HTTP, e.g. http://localhost:54701/.\r\n\r\n\r\n.. _python-can: https://python-can.readthedocs.org/en/stable/\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "CAN over network bridge for Python",
"version": "0.2.3",
"project_urls": {
"Homepage": "https://github.com/christiansandberg/python-can-remote"
},
"split_keywords": [
"can",
"tcp",
"websocket"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "e0d16afe7ddc8acb0fe40eb390ffe1cc9e7ad2dcd105e497bf9d647e1d1e9c9e",
"md5": "e0892a4c4e89d90149cc33c90b3fb2b3",
"sha256": "1db7b98e0fd4dd85eaae7fa378d2209c22fd47dfbd5f417cae66733a91926e31"
},
"downloads": -1,
"filename": "python_can_remote-0.2.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "e0892a4c4e89d90149cc33c90b3fb2b3",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 190456,
"upload_time": "2025-08-16T08:39:26",
"upload_time_iso_8601": "2025-08-16T08:39:26.575502Z",
"url": "https://files.pythonhosted.org/packages/e0/d1/6afe7ddc8acb0fe40eb390ffe1cc9e7ad2dcd105e497bf9d647e1d1e9c9e/python_can_remote-0.2.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "f04f7975c1ad75dc022f4601baf2bda27ae9f751e275d3463d4ec6ce145bfd00",
"md5": "1ca0cbe3a643d8042a70f3ad26008720",
"sha256": "7dd7a684c451d5403ff036caee7258c8fb6e7a8167c0a5f14853d5ddbdb1efd0"
},
"downloads": -1,
"filename": "python_can_remote-0.2.3.tar.gz",
"has_sig": false,
"md5_digest": "1ca0cbe3a643d8042a70f3ad26008720",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 192722,
"upload_time": "2025-08-16T08:39:28",
"upload_time_iso_8601": "2025-08-16T08:39:28.130687Z",
"url": "https://files.pythonhosted.org/packages/f0/4f/7975c1ad75dc022f4601baf2bda27ae9f751e275d3463d4ec6ce145bfd00/python_can_remote-0.2.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-08-16 08:39:28",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "christiansandberg",
"github_project": "python-can-remote",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "python-can-remote"
}