Skip to main content

Python resources and API for 3Space sensors from Yost Labs Inc.

Project description

API and Resources for Yost Labs 3.0 Threespace sensors.

Installation

python -m pip install yostlabs

Basic Usage

USB

from yostlabs.tss3.api import ThreespaceSensor

#Will auto detect a 3-Space sensor connected to the machine via a USB connection
sensor = ThreespaceSensor()

result = sensor.getPrimaryCorrectedAccelVec()
print(result)

sensor.cleanup()

BLE

from yostlabs.tss3.api import ThreespaceSensor
from yostlabs.communication.ble import ThreespaceBLEComClass

#PUT YOUR SENSORS BLE_NAME HERE
ble_name = "YL-TSS-####" #Defaults to the lowest 4 hex digits of the sensors serial number
com_class = ThreespaceBLEComClass(ble_name)
sensor = ThreespaceSensor(com_class)
#sensor = ThreespaceSensor(ThreespaceBLEComClass) #Attempt to auto discover nearby sensor

result = sensor.getPrimaryCorrectedAccelVec()
print(result)

sensor.cleanup()

Click here for more examples.

Communication

The ThreespaceSensor class utilizes a ThreespaceComClass to define the hardware communication interface between the device utlizing this API and the Threespace Sensor. Currently only the ThreespaceSerialComClass is available for use with the API. New ComClasses for different interfaces will be added to the communication package in the future.

To create your own ThreespaceComClass, take a look at the necessary interface definitions here and the Serial implementation here.

Documentation

WIP. Please review the example scripts. For further assistance contact techsupport@yostlabs.com.

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

yostlabs-2025.9.18.tar.gz (354.1 kB view details)

Uploaded Source

Built Distribution

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

yostlabs-2025.9.18-py3-none-any.whl (49.1 kB view details)

Uploaded Python 3

File details

Details for the file yostlabs-2025.9.18.tar.gz.

File metadata

  • Download URL: yostlabs-2025.9.18.tar.gz
  • Upload date:
  • Size: 354.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.11

File hashes

Hashes for yostlabs-2025.9.18.tar.gz
Algorithm Hash digest
SHA256 94422a069262c8ea2b27246bc36c310324853ffdb7ae2225e0f2725456dfc6f0
MD5 14fddc816187fb49150eb7ce97f2e9bf
BLAKE2b-256 dc8fb394e7ede39a49646e7ed9249290cb6180c10f70441ebbfee5ec12613e95

See more details on using hashes here.

File details

Details for the file yostlabs-2025.9.18-py3-none-any.whl.

File metadata

  • Download URL: yostlabs-2025.9.18-py3-none-any.whl
  • Upload date:
  • Size: 49.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.11

File hashes

Hashes for yostlabs-2025.9.18-py3-none-any.whl
Algorithm Hash digest
SHA256 064784ec76d91a0cfb2c3309b883cf4dbd69368825b6abf6a20eb2a38620949d
MD5 edd8dfd921e5a9b695e041b8cf94018d
BLAKE2b-256 08df7ebfa48f8f80305ba9bc7bce4cd5a736b230df90cd28b54e131d7f7d021c

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