PyNeuro
PyNeuro is designed to connect NeuroSky’s MindWave EEG device to Python and provide Callback functionality to provide data to your application in real time. The library is tested with Mindwave Mobie2 Headset, and runs stably.
Installation
Run the following command: pip install PyNeuro
Usage
Before you start, make sure you have downloaded Nuerosky Mindware Developer Tools and turned on Thinkgear Connecter. Please keep Thinkgear Connecter on while the program is running.
Importing the module: from PyNeuro.PyNeuro import PyNeuro
Initializing: pn = PyNeuro()
After initializing, if required the callbacks can be set
Then call pn.connect() method, it will connect with TCP Socket server.
Then call pn.start() method, it will be start fetching data.
To stop call pn.close()
Obtaining Data from Device
Obtaining value: attention = pn.attention #to get value of attention_ >Other Variable attention, meditation, blinkStrength, delta, theta, lowAlpha, highAlpha, lowBeta, highBeta, lowGamma, highGamma.
Setting callback: A call back can be associated with all the above variables so that a function is called when the variable is updated. Syntax:
pn.set_attention_callback(callback_function1) pn.set_meditation_callback(callback_function2) pn.set_blinkStrength_callback(callback_function3) .... You can add any number of callback functions to a variable..
Access via callback
from PyNeuro.PyNeuro import PyNeuro
from time import sleep
pn = PyNeuro()
def attention_callback(attention_value):
"""this function will be called everytime NeuroPy has a new value for attention"""
print ("Value of attention is: ", attention_value)
return None
pn.set_attention_callback("attention", attention_callback)
pn.connect()
pn.start()
Access via object
from PyNeuro.PyNeuro import PyNeuro
from time import sleep
pn = PyNeuro()
pn.start()
while True:
if pn.meditation > 70: # Access data through object
pn.close()
sleep(0.2)
Python Compatibility
Python -v3.*
Reference
lihas/NeuroPy - A library based on native Bluetooth serial connection
Metadata
Release files for PyNeuro 1.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| PyNeuro-1.3.1.tar.gz | 5.3 kB | Without provenance | Details for PyNeuro-1.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| PyNeuro-1.3.1-py3-none-any.whl | Python 3 | none | any | Details for PyNeuro-1.3.1-py3-none-any.whl |
Total release size: 10.7 kB
Release files / PyNeuro-1.3.1.tar.gz
| Download URL | PyNeuro-1.3.1.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f5317f7c6752791249a32eb5c20fe1412c5801141d7202d4b773bd0ee6443244
|
|
BLAKE2b-256 checksum How to use checksums |
dd90c1e688259593ff701218f48b58ee812b0859a6d4010e294f6d7329207588
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.0
|
Release files / PyNeuro-1.3.1-py3-none-any.whl
| Download URL | PyNeuro-1.3.1-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8138150f749d2262add2d1db54991f5ad9132ddaee9a5a54c7f08453e895908b
|
|
BLAKE2b-256 checksum How to use checksums |
89d579e2892969c7007c2c73e42d33fe561ab6908f667032c44461ead21b0b67
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.0
|
Security for PyNeuro 1.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.