JTBrix is a modular Python package for running behavioral experiments in psychology.
Project description
JTBrix is a modular Python package for running customizable video-based behavioral experiments in psychology and cognitive science. It supports full-screen playback, flexible configuration via YAML, conditional logic flows, and detailed logging of user responses and timing.
Free software: MIT license
Documentation: https://JTBrix.readthedocs.io
Features
Dynamically configurable experiments using a config.yml file.
Supports multiple step types: consent, video, question, popup, dropdown, and end screens.
Records answers and reaction times per screen.
Fullscreen iframe-based flow in a single browser tab.
Video and image stimuli loaded from a customizable static directory.
Modular design for extension and easy deployment via Flask.
Installation
You can install JTBrix via pip:
pip install JTBrix
Usage
Basic example of how to start an experiment:
from JTBrix import run_test
result = run_test("path/to/config.yml", "path/to/static/")
By default, JTBrix looks for a configuration file (config.yml) and a static/ folder under the Data/ directory.
The static/ folder must include two subfolders:
videos/ – for video stimuli (e.g., .mp4 files)
images/ – for images used in questions (e.g., .jpeg, .png)
You can place these folders anywhere locally or on a server and provide the paths explicitly when calling run_test().
Credits
JTBrix was designed and developed by Amid Nayerhoda for experimental research in cognitive science and psychology.
Project details
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jtbrix-0.0.7.tar.gz.
File metadata
- Download URL: jtbrix-0.0.7.tar.gz
- Upload date:
- Size: 49.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2071564566e7f8f46eaf7126f06644557617985aff8334121c5bddef522afb7f
|
|
| MD5 |
ddcac5703dbd1f99b27462edacb1e15a
|
|
| BLAKE2b-256 |
d3461139617d9ee44c56da0729a4467555ebc39aaca438f62d6df2409b12db9c
|
File details
Details for the file jtbrix-0.0.7-py3-none-any.whl.
File metadata
- Download URL: jtbrix-0.0.7-py3-none-any.whl
- Upload date:
- Size: 49.6 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa47af391e2a50faf50347bb2c3396a6b9d00bc0162fdd775641d0a5867a8908
|
|
| MD5 |
ca3d881e48721e304c57d59376a6bee2
|
|
| BLAKE2b-256 |
d429bb66eb61d932878856a84e6ee2a813080d969302dbf43db3184560315d18
|