Skip to main content

QTM Python SDK

Project description

Qualisys SDK for Python

PyPI - Version

The Qualisys SDK for Python implements our RealTime(RT) protocol and works with Python 3.10 and above.

Installation

The easiest way to install the qtm_rt package is by using pip:

python -m pip install pip --upgrade # Upgrade to latest pip
python -m pip install qtm-rt

It's also possible to install from github:

python -m pip install git+https://github.com/qualisys/qualisys_python_sdk.git

Or just clone the repo and copy the qtm_rt folder into you project folder,

Documentation

https://qualisys.github.io/qualisys_python_sdk/index.html

Examples

See the examples folder.

Logging

The SDK logs through the standard logging module under the qtm_rt logger and does not emit any output on its own. Call logging.basicConfig() (or attach a handler to the qtm_rt logger) in your application to see the messages:

import logging
logging.basicConfig(level=logging.INFO)

Setting the environment variable QTM_LOGGING=debug lowers the qtm_rt logger's threshold to DEBUG. It does not, by itself, produce output — configure a handler as above.

Missing RT features and limitations

Implementation only uses little endian, should connect to standard port 22223. Protocol version must be 1.8 or later.

GetCaptureC3D is not implemented. GetCaptureQTM is not implemented.

No support for selecting analog channel.

Development

Use the following bash commands in sequence to build the distribution and documentation:

# Setup build environment
python -m venv .venv
source ./.venv/Scripts/activate
pip install -r requirements-dev.txt

# Run tests
pytest test/

# Build source tarball and python wheel in dist/
python -m build

# Check the built distributions
twine check dist/*

# Build sphinx documentation in docs/_build/html/
make -C docs html

# Copy build output to gh-pages branch (checked out in a separate clone of the repository in ../qualisys_python_sdk_gh_pages)
# Make sure to keep v102/, v103/ and v212/ directories with the old documentation.
cp -r docs/_build/html/* ../qualisys_python_sdk_gh_pages
# Commit the changes with a message like "Update documentation to version x.y.z"
git -C ../qualisys_python_sdk_gh_pages add .
git -C ../qualisys_python_sdk_gh_pages commit
git -C ../qualisys_python_sdk_gh_pages push origin gh-pages

# Git tag and make a release on GitHub
git tag vx.y.z
git push --tags

Publishing

Releases are published automatically to https://pypi.org/project/qtm-rt/ when a GitHub release is published.

Before using the release workflow for the first time, configure PyPI Trusted Publishing for the qtm-rt project:

Owner: qualisys
Repository name: qualisys_python_sdk
Workflow filename: release.yml
Environment name: pypi

The package version is defined in pyproject.toml. Update it before tagging and publishing a GitHub release.

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

qtm_rt-3.1.0.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

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

qtm_rt-3.1.0-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

Details for the file qtm_rt-3.1.0.tar.gz.

File metadata

  • Download URL: qtm_rt-3.1.0.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for qtm_rt-3.1.0.tar.gz
Algorithm Hash digest
SHA256 67bc071094cce33a969cc8e6e1dac98ebe0ad6d832fdb568c67f2c23bb032b19
MD5 31395b8aec723836e7e0323fff85a670
BLAKE2b-256 9407b6110b89e2682181e733a31f4d38b69eead7ccb1e35ec7252caf60b6b388

See more details on using hashes here.

Provenance

The following attestation bundles were made for qtm_rt-3.1.0.tar.gz:

Publisher: release.yml on qualisys/qualisys_python_sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qtm_rt-3.1.0-py3-none-any.whl.

File metadata

  • Download URL: qtm_rt-3.1.0-py3-none-any.whl
  • Upload date:
  • Size: 16.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for qtm_rt-3.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 62cb380da51fc9dd947cbfa24a7ca9a6abad8d396e8ed84e68eda69bdf631c29
MD5 1ef7895ece11538cef2a283c360facf4
BLAKE2b-256 92a969c64ce2a815c1ec60d38438237e90e2e40bcb979d373e8ab2df905bddcb

See more details on using hashes here.

Provenance

The following attestation bundles were made for qtm_rt-3.1.0-py3-none-any.whl:

Publisher: release.yml on qualisys/qualisys_python_sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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