Skip to content

Control and query your Magstim TMS device in Python.

Notifications You must be signed in to change notification settings

kaysoky/MagStim_PyServer

 
 

Repository files navigation

Minimal web server wrapper for Magstim Rapid2 TMS device

Installation

Requires setuptools In the project directory run:

python setup.py install

Instructions

To start the server, run:

python server.py 25000

This provides three REST-ful functions:

  • POST /TMS/arm
  • POST /TMS/disarm
  • POST /TMS/fire Note: For safety reasons, the server is only bound to the loopback interface.

For other arguments or options, run:

python server.py --help

To start a test server, without an attached TMS device, run:

python mockServer.py 25000

Differences from upstream repository

  • No Bistim support
  • Adds a layer for REST-ful control of the TMS device

About

Control and query your Magstim TMS device in Python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.4%
  • CSS 0.6%