Skip to main content
https://img.shields.io/pypi/v/JTBrix.svg https://img.shields.io/travis/amidn/JTBrix.svg Documentation Status

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.

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)

Source distribution for JTBrix 0.0.7
File Size Uploaded
jtbrix-0.0.7.tar.gz 49.6 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for JTBrix 0.0.7
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.0.7 This release

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page