for background, consult the following tutorials: Pre-processing EEG data from consumer devices, and Building a simple BCI with a Neursosky MindWave
The main function you should use is
makeFeatureVector (readings, bins)
where readings
is a list of lists, where each sub-list is 1024 raw values from the neurosky device. bins
is a number of bins - 100 is a sane starting value here (see tutorials above for more details).
import brainlib
brainlib.makeFeatureVector(readings, 100)