Skip to main content

python3 implementation of the TUIO protocol

Project description

TUIO for Python3

TUIO protokoll implementation based on OSC protocol. It is implemented with the python-osc libary.

TUIO spezification

http://www.tuio.org/?specification

OSC spezification

http://opensoundcontrol.org/spec-1_0 and https://python-osc.readthedocs.io/en/latest/

API example of C++

https://www.tuio.org/?cpp

Installation

pip3 install python-tuio

Usage

Cursor example

from pythontuio import TuioClient
from pythontuio import Cursor


cursor = Cursor(123) # sets session_id to 123

cursor.velocity             = (0.2,0.1)
cursor.motion_acceleration  = 0.1 

client.cursors.append(cursor)
i = 0
while i < 10:
    i+=1
    cursor.position = (0.5+0.01*i,0.5)

    client.send_bundle()
    time.sleep(0.1)

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

python-tuio-0.0.3.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

python_tuio-0.0.3-py3-none-any.whl (5.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page