Metadata-Version: 2.1
Name: stimpy
Version: 0.1.0
Summary: A PsychoPy wrapper to create moving visual stimuli without loops.
Home-page: https://github.com/kclamar/stimpy
License: MIT
Author: Ka Chung Lam
Author-email: kclamar@connect.ust.hk
Requires-Python: >=3.8,<4.0
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: Microsoft :: Windows
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Provides-Extra: dev
Requires-Dist: PsychoPy (>=2021.2.0,<2022.0.0)
Requires-Dist: black; extra == "dev"
Requires-Dist: flake8; extra == "dev"
Requires-Dist: isort; extra == "dev"
Requires-Dist: mypy; extra == "dev"
Requires-Dist: numpy (>=1.21.0,<2.0.0)
Requires-Dist: pydata-sphinx-theme; extra == "dev"
Requires-Dist: sphinx-autodoc-typehints; extra == "dev"
Requires-Dist: sphinx; extra == "dev"
Project-URL: Repository, https://github.com/kclamar/stimpy
Description-Content-Type: text/markdown

[![PyPI version](https://badge.fury.io/py/stimpy.svg)](https://badge.fury.io/py/stimulus-designer)
[![PyPI pyversions](https://img.shields.io/pypi/pyversions/stimpy.svg)](https://pypi.python.org/pypi/stimpy)
[![Documentation Status](https://readthedocs.org/projects/stimpy/badge/?version=latest)](https://stimpy.readthedocs.io/en/latest/?badge=latest)
# StimPy

[StimPy](https://github.com/kclamar/stimpy) is a thin [PsychoPy](https://www.psychopy.org/) wrapper to simplify the creation of visual stimuli.

## Installation

Use the package manager [pip](https://pip.pypa.io/en/stable/) to install StimPy.

```bash
pip install stimpy
```

## Usage

```python
import stimpy as sp

circle = sp.visual.Circle(size=(2, 2), fillColor=(1, 1, 1),
                          pos=sp.Animate([(-45, 0), (45, 0)], [2, 2]))

stimuli = sp.Stimuli()
stimuli.append(circle, begin=0, dur=10)

win = sp.Window(distance=13, width=26, units="degFlat")
trial = sp.Trial(stimuli, win=win)
trial.run()
```

