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.
Release files for JTBrix 0.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| jtbrix-0.0.7.tar.gz | 49.6 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| jtbrix-0.0.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 99.2 MB
Release files / jtbrix-0.0.7.tar.gz
| Download URL | jtbrix-0.0.7.tar.gz |
|---|---|
| Size | 49.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2071564566e7f8f46eaf7126f06644557617985aff8334121c5bddef522afb7f
|
|
BLAKE2b-256 checksum How to use checksums |
d3461139617d9ee44c56da0729a4467555ebc39aaca438f62d6df2409b12db9c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / jtbrix-0.0.7-py3-none-any.whl
| Download URL | jtbrix-0.0.7-py3-none-any.whl |
|---|---|
| Size | 49.6 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fa47af391e2a50faf50347bb2c3396a6b9d00bc0162fdd775641d0a5867a8908
|
|
BLAKE2b-256 checksum How to use checksums |
d429bb66eb61d932878856a84e6ee2a813080d969302dbf43db3184560315d18
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|