# Python bindings for the Myo SDK
[](http://myo-python.readthedocs.org/en/latest/?badge=latest)
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](examples) folder.
__Features__
- [x] Python 2 & 3 compatible
- [x] Math classes for Vector and Quaternion
__Example__
```python
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
```
__Projects that use myo-python__
- [Myo Matlab](https://github.com/yijuilee/myomatlab)
[docs]: http://myo-python.readthedocs.org/en/latest/index.html
----
<p align="center">This project is licensed under the MIT License.</br>
Copyright © 2015 Niklas Rosenstein</p>
[](http://myo-python.readthedocs.org/en/latest/?badge=latest)
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](examples) folder.
__Features__
- [x] Python 2 & 3 compatible
- [x] Math classes for Vector and Quaternion
__Example__
```python
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
```
__Projects that use myo-python__
- [Myo Matlab](https://github.com/yijuilee/myomatlab)
[docs]: http://myo-python.readthedocs.org/en/latest/index.html
----
<p align="center">This project is licensed under the MIT License.</br>
Copyright © 2015 Niklas Rosenstein</p>
Metadata
Release files for myo-python 0.2.2
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.2.zip | 42.3 kB | Details |
Release files / myo-python-0.2.2.zip
| Download URL | myo-python-0.2.2.zip |
|---|---|
| Size | 42.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ac49c36a17416cc5beefe4bb29d9b7dd14c6f17f22a64da26bc53446c4f65c79
|
|
BLAKE2b-256 checksum How to use checksums |
4dcade61e8bd60db4bf0da44ce022b549e4fc3ad5f77472259a0d1ea9a89e51a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |