A small example package
Project description
psychopy-session-webserver
A package that allows to run and control a session (i.e. multiple experiment with multiple participant) via a REST API.
Fetaures
- Automatic detection of experiments and needed resource files (image, sound, movies) via filesystem notifications.
- List of participant and session run saved in
XDG_DATA_HOME
. - Server Side Event of the session state for easily keeping the frontend in sync with the session server.
Installing
Install this package with the following shell command:
pip install psychopy-session-webserver
Usage
python -m psychopy_session_webserver [options] sessionDir
Common options
sessionDir
: a directory where the '.psyexp' and their relative resource files for the session could be found.-L/--listen
: IP addresses or subnet CIDR subnet notation to listen too. Default to private subnet ( 192.168.0.0/16, 10.0.0.0/8, 100.64.0.0/10)-p / --port
: Port to listen to ( default: 5000)--data-dir
: Directory to save the sessions data, defaults tosessionDir/data
if not specified.
Systemd service
An examples for a systemd service can be found in
misc/psychopy-session-webserver.service
. Since psychopy wants to open a
window, it is easier to set it up as user service.
git clone https://github.com/atuleu/zaci
cd zaci/psychopy-session-webserver
mkdir -p $HOME/.config/systemd/user
mkdir -p $HOME/.local/bin
python -m venv $HOME/psychopy/venv
source $HOME/psychopy/venv/bin/activate
pip install psychopy-session-webserver
deactivate
cp misc/psychopy-session-webserver.service $HOME/.config/systemd/user
cp misc/psychopy-session-webserver.sh $HOME/.local/bin
systemctl --user enable psychopy-session-webserver.service
systemctl --user start psychopy-session-webserver.service
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for psychopy_session_webserver-0.0.1a2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16b25a61da71e792ef7422933b8e408966bae15207127885025a2cbd8be0ae57 |
|
MD5 | a960d8fbc44e28ca4f99fa69ffb87b13 |
|
BLAKE2b-256 | cfa00e378bea1d9d6891c6646fd351c285e405e5a7a9c3b52a1a70f2ffb63032 |
Close
Hashes for psychopy_session_webserver-0.0.1a2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 858590460f561413bcf8daaccad8d37733f08ee8d882550ac1e5dc408c50eac0 |
|
MD5 | fbafc42d42f4f1f5cf061f842040c242 |
|
BLAKE2b-256 | 906c24bcd0adb6f54017a1a09e72a9d0f5ba32747cf29949614cdbf1bb2dc340 |