semvec/pypi-packages huggingface dataset:
python-tuio 0.0.9
python3 implementation of the TUIO protocol
Requires Python: >=3.6

# 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
### Server example with Cursor
``` python
    from pythontuio import TuioServer
    from pythontuio import Cursor

    server = TuioServer()
    cursor = Cursor(123) # sets session_id to 123

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

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

        server.send_bundle()
        time.sleep(0.1)

```
### Client example with class and extends
```python
    from pythontuio import TuioClient
    from pythontuio import Cursor
    from pythontuio import TuioListener
    from threading import Thread

    class MyListener(TuioListener):
        def add_tuio_cursor(self, cursor: Cursor):
            print("detect a new Cursor")
        (...)


    client = TuioClient(("localhost",3333))
    t = Thread(target=client.start)
    listener = MyListener()
    client.add_listener(listener)

    t.start()
```
### Client example with lamda
``` python
    from pythontuio import TuioClient
    from pythontuio import Cursor
    from pythontuio import TuioListener
    from threading import Thread

    def _add_tuio_cursor(self, cursor: Cursor):
        print("detect a new Cursor")
    (...)


    client = TuioClient(("localhost",3333))
    t = Thread(target=client.start)
    listener = TuioListener()
    listener.add_tuio_cursor = _add_tuio_cursor
    client.add_listener(listener)

    t.start()
```
## Contribution
Feel free to contribute inputs. Just start a MR with your changes.

[GitHub]( https://github.com/tweigel-dev/python-tuio)
btchip-python 0.1.32
Python library to communicate with Ledger Nano dongle

btchip-python
=============

Python communication library for Ledger Hardware Wallet products  

Requirements
-------------

This API is available on pip - install with pip install btchip-python 

Building on a Unix platform requires libusb-1.0-0-dev and libudev-dev installed previously

Interim Debian packages have also been built by Richard Ulrich at https://launchpad.net/~richi-paraeasy/+archive/ubuntu/bitcoin/ (btchip-python, hidapi and python-hidapi)

For optional BIP 39 support during dongle setup, also install https://github.com/trezor/python-mnemonic - also available as a Debian package at the previous link (python-mnemonic)

Building on Windows
--------------------

  - Download and install the latest Python 2.7 version from https://www.python.org/downloads/windows/
  - Install Microsoft Visual C++ Compiler for Python 2.7 from http://www.microsoft.com/en-us/download/details.aspx?id=44266
  - Download and install PyQt4 for Python 2.7 from https://www.riverbankcomputing.com/software/pyqt/download 
  - Install the btchip library (open a command prompt and enter c:\python27\scripts\pip install btchip)
  
Building/Installing on FreeBSD
------------------------------
  
On FreeBSD you can install the packages:

    pkg install security/py-btchip-python

or build via ports:

    cd /usr/ports/security/py-btchip-python
    make install clean