Skip to main content

SpaceNav WebSocket Bridge for using a 3dConnexion spacemouse with onshape

Project description

Websockets exposer for the spacenav driver (spacenav‑ws)

PyPI version Build Status License

Table of Contents

About

spacenav‑ws is a tiny Python CLI that exposes your 3Dconnexion SpaceMouse over a secure WebSocket, so Onshape on Linux can finally consume it. Under the hood it reverse‑engineers the same traffic Onshape’s Windows client uses and proxies it into your browser.

This lets you use FreeSpacenav/spacenavd on Linux with Onshape.

Prerequisites

  • uv/uvx or another Python env manager.
  • A running instance of spacenavd
  • A modern browser (Chrome/Firefox) with a userscript manager (Tampermonkey/Greasemonkey)

Usage

  1. Validate spacenavd
uvx spacenav-ws@latest read-mouse
# → should print spacemouse events
  1. Run the server and trust the cert
uvx spacenav-ws@latest serve

Now open: https://127.51.68.120:8181 Add a browser exception for the self‑signed cert.

  1. Install Tampermonkey and add the userscript

Install Tampermonkey. After installing, click this link for one‑click install of the script.

Developing

git clone https://github.com/you/spacenav-ws.git
cd spacenav-ws
uv run spacenav-ws serve --hot-reload

This starts the server with Uvicorn's code watching / hot reload feature enabled.

Deploying to pypi

Just run

uv build
uv publish

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

spacenav_ws-0.1.4.tar.gz (383.9 kB view details)

Uploaded Source

Built Distribution

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

spacenav_ws-0.1.4-py3-none-any.whl (26.4 kB view details)

Uploaded Python 3

File details

Details for the file spacenav_ws-0.1.4.tar.gz.

File metadata

  • Download URL: spacenav_ws-0.1.4.tar.gz
  • Upload date:
  • Size: 383.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.6.14

File hashes

Hashes for spacenav_ws-0.1.4.tar.gz
Algorithm Hash digest
SHA256 8a1a51823c98c5f55a447ff5342d5e0614d64553b8d57d2ae43edbe5b5ca0974
MD5 e503beed6e5ebe49c4da0ebee1db7776
BLAKE2b-256 d6562a9931e7dfd40d1319cad1954234cf021cb01d4407b3ec6559621bf6a4f8

See more details on using hashes here.

File details

Details for the file spacenav_ws-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for spacenav_ws-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 45172b7724a0ef879edee59a0107b21dd8530470e507429cefb3bede576a7e06
MD5 c22f015300e4fcf9122b7057c36e9582
BLAKE2b-256 82275ae77a54c0d4fc05bc30c7bf4d2b4fb88ad796d9d6b53fb73b1d1b0cb5a1

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