Explorepy
Python API for Mentalab biosignal aquisition devices
Install / Use
/learn @Mentalab-hub/ExplorepyREADME
.. image:: https://raw.githubusercontent.com/Mentalab-hub/explorepy/master/docs/logo.jpg :scale: 100 % :align: left
.. start-badges
|docs| |version| |wheel| |supported-versions| |commits-since|
.. |docs| image:: https://readthedocs.org/projects/explorepy/badge/?style=flat :target: https://readthedocs.org/projects/explorepy :alt: Documentation Status
.. |version| image:: https://img.shields.io/pypi/v/explorepy.svg :alt: PyPI Package latest release :target: https://pypi.org/project/explorepy
.. |commits-since| image:: https://img.shields.io/github/commits-since/Mentalab-hub/explorepy/v4.4.0.svg :alt: Commits since latest release :target: https://github.com/Mentalab-hub/explorepy/compare/v4.4.0...master
.. |wheel| image:: https://img.shields.io/pypi/wheel/explorepy.svg :alt: PyPI Wheel :target: https://pypi.org/project/explorepy
.. |supported-versions| image:: https://img.shields.io/pypi/pyversions/explorepy.svg :alt: Supported versions :target: https://pypi.org/project/explorepy
.. |supported-implementations| image:: https://img.shields.io/pypi/implementation/explorepy.svg :alt: Supported implementations :target: https://pypi.org/project/explorepy
.. end-badges
=========================
explorepy overview
explorepy is an open-source Python API designed to collect and process ExG data using Mentalab's Explore device. Amongst other things, explorepy provides the following features:
- Real-time streaming of ExG, orientation and environmental data.
- Data recording in CSV and BDF+ formats.
- Integration with LabStreaming Layer.
- Electrode impedance measurements.
- Explore device configuration.
Requirements
- Python 3.10 to Python 3.12.
- Visual Studio 2015 community edition (Windows only. For package building).
- Bluetooth header files (Linux only. Use:
sudo apt-get install libbluetooth-dev).
Detailed installation instructions can be found on the installation page <https://explorepy.readthedocs.io/en/latest/installation.html>_.
To install explorepy from PyPI run:
::
pip install explorepy
To install the latest development version (git must be installed before running this command): ::
pip install git+https://github.com/Mentalab-hub/explorepy.git@develop
Get started
CLI command
To check explorepy is running use:
::
explorepy acquire -n Explore_XXXX
For help, use: :: explorepy -h
Python code
In Python you can connect to the Explore device and print data using:
::
import explorepy
explorer = explorepy.Explore()
explorer.connect(device_name="Explore_XXXX") # Use correct device ID here
explorer.acquire()
Documentation
For full API documentation, visit: https://explorepy.readthedocs.io/.
Troubleshooting
If you are having problems, please check the troubleshooting <https://explorepy.readthedocs.io/en/latest/installation.html#troubleshooting>_
section of the documentation.
If you are still having problems, send us your error log via Sentry (note: Explorepy will send the log automatically once you have provided permission), or send us the log file via email to support@mentalab.com. The log file is usually found under:
- Windows:
<Windows Drive>:\Users\<USER_NAME>\AppData\Local\mentalab\explorepy\Logs\explorepy.log - Ubuntu:
/home/<USER_NAME>/.cache/explorepy/log/explorepy.log - Mac OS:
/Users/<USER_NAME>/Library/Logs/explorepy/explorepy.log
You can also create a new issue in the GitHub repository.
Authors
Mohamad Atayi_Salman Rahman_Andrea Escartin_Sonja Stefani_Alex Platt_Andreas Gutsche_Masoome Fazelian_Philipp Jakovleski_Florian Sesser_Sebastian Herberger_
.. _Mohamad Atayi: https://github.com/bmeatayi .. _Salman Rahman: https://github.com/salman2135 .. _Andrea Escartin: https://github.com/andrea-escartin .. _Sonja Stefani: https://github.com/SonjaSt .. _Alex Platt: https://github.com/Nujanauss .. _Andreas Gutsche: https://github.com/andyman410 .. _Masoome Fazelian: https://github.com/fazelian .. _Philipp Jakovleski: https://github.com/philippjak .. _Florian Sesser : https://github.com/hacklschorsch .. _Sebastian Herberger: https://github.com/SHerberger
License
This project is licensed under the MIT <https://github.com/Mentalab-hub/explorepy/blob/master/LICENSE>_ license. You can reach us at contact@mentalab.com.
Related Skills
YC-Killer
2.7kA library of enterprise-grade AI agents designed to democratize artificial intelligence and provide free, open-source alternatives to overvalued Y Combinator startups. If you are excited about democratizing AI access & AI agents, please star ⭐️ this repository and use the link in the readme to join our open source AI research team.
groundhog
398Groundhog's primary purpose is to teach people how Cursor and all these other coding agents work under the hood. If you understand how these coding assistants work from first principles, then you can drive these tools harder (or perhaps make your own!).
sec-edgar-agentkit
10AI agent toolkit for accessing and analyzing SEC EDGAR filing data. Build intelligent agents with LangChain, MCP-use, Gradio, Dify, and smolagents to analyze financial statements, insider trading, and company filings.
last30days-skill
4.5kAI agent skill that researches any topic across Reddit, X, YouTube, HN, Polymarket, and the web - then synthesizes a grounded summary
