Python bindings for the Myo SDK
Important: Myo-Python 0.2.x is deprecated and only maintained to fix crucial bugs. Please check out newer Myo-Python versions on GitHub or PyPI.
This module is a ctypes based wrapper for the Thalmic Myo SDK that is compatible with Python 2 and 3. Check out the docs for a tutorial and the API documentation and the examples folder.
Features
- Python 2 & 3 compatible
- Math classes for Vector and Quaternion
Example
from time import sleep
from myo import init, Hub, DeviceListener
class Listener(DeviceListener):
def on_pair(self, myo, timestamp, firmware_version):
print("Hello, Myo!")
def on_unpair(self, myo, timestamp):
print("Goodbye, Myo!")
def on_orientation_data(self, myo, timestamp, quat):
print("Orientation:", quat.x, quat.y, quat.z, quat.w)
init()
hub = Hub()
hub.run(1000, Listener())
try:
while True:
sleep(0.5)
except KeyboardInterrupt:
print('\nQuit')
finally:
hub.shutdown() # !! crucial
Requirements
- six [required]
Projects that use myo-python
This project is licensed under the MIT License.
Copyright © 2015 Niklas Rosenstein
Metadata
Release files for myo-python 0.2.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| myo-python-0.2.4.tar.gz | 27.8 kB | Details |
Release files / myo-python-0.2.4.tar.gz
| Download URL | myo-python-0.2.4.tar.gz |
|---|---|
| Size | 27.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
05fb45097484baf09c20e3edc0a6b426548a663c78783cf490fbbcea39bc58da
|
|
BLAKE2b-256 checksum How to use checksums |
6959ff42c9ae05896ad99d264716d56210936263d9344fe8e47111757f5a0c80
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |