Skip to content

lindemann09/PyNSN

Repository files navigation

PyNSN

Python Library for Creating Non-Symbolic Number Displays


GitHub license Python Version PyPI

(c) Oliver Lindemann (lindemann@cognitive-psychology.eu)

Project homepage: https://github.com/lindemann09/PyNSN

Dependencies

  • Python 3 (>=3.8)
  • numpy (>=1.26)
  • shapely (>=2.0)
  • orjson (>=3.9)
  • Pillow (>=5.0)

Optional requirements

Additional Python packages, which are optional and required only for some features:

  • matplotlib (>=3.2)
  • svgwrite (>=1.4)
  • pygame (>=2)
  • expyriment (>=0.9)

Installing via pip

python -m pip install pynsn

Image formats

By default, PyNSN is able to write SVG or Pillow images. To generate Pygame or Matplotlib images or stimuli for Expyriment, please install the respective packages.

Examples