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-2026.2.23.dev1.tar.gz (365.9 kB view details)

Uploaded Source

Built Distribution

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

yostlabs-2026.2.23.dev1-py3-none-any.whl (62.7 kB view details)

Uploaded Python 3

File details

Details for the file yostlabs-2026.2.23.dev1.tar.gz.

File metadata

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

File hashes

Hashes for yostlabs-2026.2.23.dev1.tar.gz
Algorithm Hash digest
SHA256 1ed0ea0b8439cc92642b748f7889d0842043b70c757661f1bd066556427c2082
MD5 e57cde3200f48d872460089d5a82d538
BLAKE2b-256 c00f216824540377f737a294396621ce72a6a13bf5e2011dda86d1cf4b4f78f1

See more details on using hashes here.

File details

Details for the file yostlabs-2026.2.23.dev1-py3-none-any.whl.

File metadata

File hashes

Hashes for yostlabs-2026.2.23.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 90b173d67396958dd204b660e2a592e3bbfc56d67711c508a99fb9bbe4195b7a
MD5 9b255488370c0ce0c56b4f48c9d08450
BLAKE2b-256 c203bda2cabbca5c1a24d3c2ae886e3a265bf66148f868e1a96347d3b751eb2c

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