Skip to main content

JTBrix is a modular Python package for running behavioral experiments in psychology.

Project description

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.

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

jtbrix-0.0.7.tar.gz (49.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jtbrix-0.0.7-py3-none-any.whl (49.6 MB view details)

Uploaded Python 3

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

Hashes for jtbrix-0.0.7.tar.gz
Algorithm Hash digest
SHA256 2071564566e7f8f46eaf7126f06644557617985aff8334121c5bddef522afb7f
MD5 ddcac5703dbd1f99b27462edacb1e15a
BLAKE2b-256 d3461139617d9ee44c56da0729a4467555ebc39aaca438f62d6df2409b12db9c

See more details on using hashes here.

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

Hashes for jtbrix-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 fa47af391e2a50faf50347bb2c3396a6b9d00bc0162fdd775641d0a5867a8908
MD5 ca3d881e48721e304c57d59376a6bee2
BLAKE2b-256 d429bb66eb61d932878856a84e6ee2a813080d969302dbf43db3184560315d18

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page