A Python package for Phillip’s helper and utility functions, especially for EEG and statistics.


pipeline status coverage report documentation status license pypi


Philistine is a collection of hopefully useful functions in Python for statistics and analysis of EEG data using existing packages in the Python ecosystem. It is not intended to be a standalone package, but rather a convenient way to distribute manipulations that I (Phillip) find useful in my own work.

This is very much aa hobby project developed in my free time (in a language I don’t use much anymore) and the API is subject to change in a rather volatile fashion as improvements, corrections, etc. are made. The idea is provide a convenient way to redistribute functions that I (Phillip) find useful. The hope is that many of these functions are eventually integrated into packages such as MNE, bambi, etc. At that point, the functions will be changed into thin wrappers for those other packages, deprecated and eventually removed.

The BV-writer functionality will likely be removed in a future release. MNE now has an export module, which takes advantage of [pybv](, which in turn took the good parts of the writer here and added some active maintenance.


Philistine requires a working Python interpreter. As of version 0.2.0, this must be at least Python 3.7 for compatibility with MNE 1.3.

Assuming a standard Python environment is installed on your machine (including pip), Philistine itself can be installed in one line using pip:

python -m pip install --user --upgrade philistine

Alternatively, if you want the bleeding edge version of the package, you can install from GitLab:

python -m pip install --user --upgrade  git+

Dependencies should be handled automatically by pip.


The primary hosting for this project is on GitLab, and issues should be raised there. A GitHub mirror is provided for convenience and redundancy. Pull requests can be made on either site.