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.
Metadata
Release files for godirect 1.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| godirect-1.2.1.tar.gz | 33.8 kB | Without provenance | Details for godirect-1.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| godirect-1.2.1-py3-none-any.whl | Python 3 | none | any | Details for godirect-1.2.1-py3-none-any.whl |
Total release size: 71.2 kB
Release files / godirect-1.2.1.tar.gz
| Download URL | godirect-1.2.1.tar.gz |
|---|---|
| Size | 33.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d8fac756cd782659a6ae11e0abb1c8d80924bdb2d08d8edffca5fcaa5f8a2201
|
|
BLAKE2b-256 checksum How to use checksums |
a91d2683f6c0f1add36079c27ef5485131a9d646dd760a1ebda7c9f712786cae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Release files / godirect-1.2.1-py3-none-any.whl
| Download URL | godirect-1.2.1-py3-none-any.whl |
|---|---|
| Size | 37.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
79e31737fede29c011945f031b450cc70ad5c49e7beef2e2c35e50dbba814ffd
|
|
BLAKE2b-256 checksum How to use checksums |
c371410010d143517709b13da22b212db98f1c9388cf33735b186053a644d6ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Security for godirect 1.2.1
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.