Pre-release
This release is a pre-release and may not be stable for production use.
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/dataif 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/iNkawuVervetProject/VerTIGo
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
Release files for psychopy-session-webserver 0.0.1a4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| psychopy_session_webserver-0.0.1a4.tar.gz | 17.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| psychopy_session_webserver-0.0.1a4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 32.4 kB
Release files / psychopy_session_webserver-0.0.1a4.tar.gz
| Download URL | psychopy_session_webserver-0.0.1a4.tar.gz |
|---|---|
| Size | 17.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6a978a87c069aed5b7fb284e48656e8969f131ad9f1cdff28ae919702a935a9a
|
|
BLAKE2b-256 checksum How to use checksums |
48dc3e5be8c5514461512615a1fa5d5eb4a113934862f2f1c151f6a72d3a8fd5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.12
|
Release files / psychopy_session_webserver-0.0.1a4-py3-none-any.whl
| Download URL | psychopy_session_webserver-0.0.1a4-py3-none-any.whl |
|---|---|
| Size | 15.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5379618dc48bb5a3c8f7a73029002675032c24c067daefe22b60481f0b1b70fc
|
|
BLAKE2b-256 checksum How to use checksums |
32fd5f206419f58bb6c8865d89f7348a38557ce39cc5887eced080a80a6a4173
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.12
|