{
"info": {
"author": "sahil singh",
"author_email": "lihashgnis@yahoo.in",
"bugtrack_url": null,
"classifiers": [],
"description": "NeuroPy\r\n=======\r\n\r\nNeuroPy library written in python to connect, interact and get data from __neurosky's MindWave__ EEG headset.\r\n\r\nThis library is based on the minwave mindset communication protocol published by [Neurosky](http:://neurosky.com) and is tested\r\nwith Neurosky Mindwave EEG headset.\r\n\r\n##Installation##\r\n\r\n1. Download the source distribution (zip file) from [dist directory](https://github.com/lihas/NeuroPy/tree/master/dist)\r\n2. unzip and navigate to the folder containing _setup.py_ and other files\r\n3. run the following command:\r\n `python setup.py install`\r\n\r\n##Usage##\r\n\r\n1. Importing the module: `from NeuroPy import NeuroPy`\r\n\r\n1. Initialising: `object1=NeuroPy(\"COM6\",57600)` _#windows_
`object1=NeuroPy(\"/dev/rfcomm0\",57600)` _#linux_\r\n\r\n1. After initialising , if required the callbacks must be set\r\nthen using the start method the library will start fetching data from mindwave\r\ni.e. `object1.start()`\r\nsimilarly stop method can be called to stop fetching the data\r\ni.e. `object1.stop()`\r\n\r\n###The data from the device can be obtained using either of the following methods or bot of them together:###\r\n \r\n* Obtaining value: `variable1=object1.attention` _\\#to get value of attention_\r\n >__\\#other variables:__ attention,meditation,rawValue,delta,theta,lowAlpha,highAlpha,lowBeta,highBeta,lowGamma,midGamma, poorSignal and blinkStrength\r\n \r\n* 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: `setCallBack(\"variable\",callback_function)`
\r\n __for eg.__ to set a callback for attention data the syntax will be `setCallBack(\"attention\",callback_function)`\r\n \r\n >__\\#other variables:__ attention,meditation,rawValue,delta,theta,lowAlpha,highAlpha,lowBeta,highBeta,lowGamma,midGamma, poorSignal and blinkStrength\r\n\r\n##Sample Program##\r\n \r\n from NeuroPy import NeuroPy\r\n object1=NeuroPy(\"COM6\") #If port not given 57600 is automatically assumed\r\n #object1=NeuroPy(\"/dev/rfcomm0\") for linux\r\n def attention_callback(attention_value):\r\n \"this function will be called everytime NeuroPy has a new value for attention\"\r\n print \"Value of attention is\",attention_value\r\n #do other stuff (fire a rocket), based on the obtained value of attention_value\r\n #do some more stuff\r\n return None\r\n \r\n #set call back:\r\n object1.setCallBack(\"attention\",attention_callback)\r\n \r\n #call start method\r\n object1.start()\r\n \r\n while True:\r\n if(object1.meditation>70): #another way of accessing data provided by headset (1st being call backs)\r\n object1.stop() #if meditation level reaches above 70, stop fetching data from the headset",
"description_content_type": null,
"docs_url": "https://pythonhosted.org/NeuroPy/",
"download_url": "https://github.com/lihas/NeuroPy/tree/master/dist",
"downloads": {
"last_day": -1,
"last_month": -1,
"last_week": -1
},
"home_page": "https://github.com/lihas/NeuroPy",
"keywords": "Mindwave Python interface,mindwave,neurosky,pyhon,neurosky python sdk",
"license": "BSD3 license",
"maintainer": "",
"maintainer_email": "",
"name": "NeuroPy",
"package_url": "https://pypi.org/project/NeuroPy/",
"platform": "windows,Linux,Mac",
"project_url": "https://pypi.org/project/NeuroPy/",
"project_urls": {
"Download": "https://github.com/lihas/NeuroPy/tree/master/dist",
"Homepage": "https://github.com/lihas/NeuroPy"
},
"release_url": "https://pypi.org/project/NeuroPy/0.1/",
"requires_dist": null,
"requires_python": null,
"summary": "Library for interfacing with Neurosky's Mindwave EEG headset",
"version": "0.1"
},
"last_serial": 714540,
"releases": {
"0.1": [
{
"comment_text": "",
"digests": {
"md5": "11bf2d31edbdcf23d709a29f188a2f96",
"sha256": "acdb5a7d76df684d3ff38b59cfe1a8663e5ef5984a8277060c71ead45c8540b4"
},
"downloads": -1,
"filename": "NeuroPy-0.1.zip",
"has_sig": false,
"md5_digest": "11bf2d31edbdcf23d709a29f188a2f96",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 5235,
"upload_time": "2013-05-30T17:20:59",
"url": "https://files.pythonhosted.org/packages/e2/7c/a78b4404b26b5af198fbbff8ba318f772621d0c56a2ce6b4a7dfbb3c3933/NeuroPy-0.1.zip"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "11bf2d31edbdcf23d709a29f188a2f96",
"sha256": "acdb5a7d76df684d3ff38b59cfe1a8663e5ef5984a8277060c71ead45c8540b4"
},
"downloads": -1,
"filename": "NeuroPy-0.1.zip",
"has_sig": false,
"md5_digest": "11bf2d31edbdcf23d709a29f188a2f96",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 5235,
"upload_time": "2013-05-30T17:20:59",
"url": "https://files.pythonhosted.org/packages/e2/7c/a78b4404b26b5af198fbbff8ba318f772621d0c56a2ce6b4a7dfbb3c3933/NeuroPy-0.1.zip"
}
]
}