Skip to main content

spnav: a ctypes wrapper for libspnav, a Space Navigator 3D mouse client

Introduction

The spnav module provides a Python interface to the libspnav C library, which allows you to read events from a Space Navigator 3D mouse on Linux systems. These input devices simultaneously report linear force and rotational torque applied by the user to the device, along with button events. See:

http://www.3dconnexion.com/products/spacenavigator.html

for more information about the 3D navigator.

Prerequisites

As a general prerequisite to using the spnav module, you need to install libspnav and spacenavd, available from:

http://spacenav.sourceforge.net/

Then you need to connect a supported 3D mouse to your system. Spacenavd supports USB devices with no configuration, but serial-based devices will need a /etc/spnavrc configuration file.

The spnav module requires ctypes, which is standard in Python 2.5 and later, although I have only tested spnav with Python 2.7.

Installation

The spnav module installs like any other python package. You can install the package from the unpacked source directory by running

sudo python setup.py install

Quick Test

To see if your installation is working, spnav comes with a test script in the module:

python -m spnav

This will print motion and button events from your Space Navigator to the console.

For more information and example code, see the documentation:

http://spnav.readthedocs.org/

Metadata

Release files for spnav 0.9

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

Source distribution (sdist)

Source distribution for spnav 0.9
File Size Uploaded Provenance
spnav-0.9.tar.gz 7.1 kB Without provenance Details

Release files / spnav-0.9.tar.gz

Download URL spnav-0.9.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f94cb7bced3a400061c458716b67e02b221abaa240a6641c0d68c6d5db99f433
BLAKE2b-256 checksum
How to use checksums
b373cb8a04d21c21382c842b1a971ee24ea128af8328c87fd220a3e46361b42b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for spnav 0.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.9 This release

1 release file No provenance

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