Skip to main content

Library to interface with GoDirect devices via USB and BLE

Project description

godirect

A Python module for reading from Vernier Go Direct® Sensors1 connected to USB or your system's on-board bluetooth radio. The module has been tested on Windows 10, macOS, and various Linux distros.

Take a look at the godirect-examples repository for ideas and a number of helpful examples.

Requirements

The following Python modules are required for godirect. They will be installed automatically as dependencies when installing godirect via pip.

  • bleak (native Bluetooth Low Energy stack for Mac, Windows and Linux)
  • hidapi (USB HID device support)

Installation

Automatically install all the dependencies for both USB and native BLE.

pip install godirect

Installation and Usage

Go to our Getting Started with Vernier Go Direct Sensors and Python document for detailed information regarding installation and usage of the godirect module.

Legacy Support for Bluegiga Dongle

Prior to version 1.1.0, some platforms required a Bluegiga BLE dongle to connect over BLE. While we recommend using the native BLE radio (through bleak), the old functionality has been left in the library. In order to use the Bluegiga BLE dongle, vernierpygatt must be installed. This is a fork of the pygatt project with a fix for the BGAPI on Windows. See the vernierpygatt PyPi page for details.

Local builds

In order to explore and contribute to this module, you can modify this module, build and install it locally.

# Uninstall any installed version

pip uninstall godirect

# Install the build tool (if you have not already)

pip install build

# Build the module

python -m build

# Install the module

pip install .

License

GNU General Public License v3 (GPLv3)

Vernier products are designed for educational use. Our products are not designed nor are they recommended for any industrial, medical, or commercial process such as life support, patient diagnosis, control of a manufacturing process, or industrial testing of any kind.

1 Go Direct spectrometers are not supported.

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

godirect-1.2.1.tar.gz (33.8 kB view details)

Uploaded Source

Built Distribution

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

godirect-1.2.1-py3-none-any.whl (37.4 kB view details)

Uploaded Python 3

File details

Details for the file godirect-1.2.1.tar.gz.

File metadata

  • Download URL: godirect-1.2.1.tar.gz
  • Upload date:
  • Size: 33.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for godirect-1.2.1.tar.gz
Algorithm Hash digest
SHA256 d8fac756cd782659a6ae11e0abb1c8d80924bdb2d08d8edffca5fcaa5f8a2201
MD5 76dc7f5b3cf29c15b7d68ad0c433ec50
BLAKE2b-256 a91d2683f6c0f1add36079c27ef5485131a9d646dd760a1ebda7c9f712786cae

See more details on using hashes here.

File details

Details for the file godirect-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: godirect-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 37.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for godirect-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 79e31737fede29c011945f031b450cc70ad5c49e7beef2e2c35e50dbba814ffd
MD5 ac41b854f669dd0903f945ab987c369e
BLAKE2b-256 c371410010d143517709b13da22b212db98f1c9388cf33735b186053a644d6ab

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