Metadata-Version: 2.3
Name: pynsn
Version: 1.0.6
Summary: Creating Non-Symbolic Number Displays
Author-email: Oliver Lindemann <lindemann@essb.eur.nl>
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Classifier: License :: OSI Approved :: MIT License
Requires-Dist: numpy>=2.1.3
Requires-Dist: shapely>=2.0
Requires-Dist: orjson>=3.10
Requires-Dist: Pillow>=11.0
Requires-Dist: pandas>=2.2 ; extra == "collections"
Requires-Dist: Sphinx>=5.1 ; extra == "doc"
Requires-Dist: sphinx-autodoc-typehints ; extra == "doc"
Requires-Dist: sphinx-rtd-theme ; extra == "doc"
Requires-Dist: pygame>=2.5 ; extra == "pygame"
Requires-Dist: svgwrite>=1.4 ; extra == "svg"
Requires-Dist: pytest >=2.7.3 ; extra == "test"
Project-URL: Documentation, https://github.com/lindemann09/PyNSN
Project-URL: Source, https://github.com/lindemann09/PyNSN
Provides-Extra: collections
Provides-Extra: doc
Provides-Extra: pygame
Provides-Extra: svg
Provides-Extra: test

PyNSN
=====

**Python Library for Creating Non-Symbolic Number Displays**

---

[![GitHub license](https://img.shields.io/github/license/lindemann09/PyNSN)](https://github.com/lindemann09/PyNSN/blob/master/LICENSE)
[![Python Version](https://img.shields.io/pypi/pyversions/pynsn?style=flat)](https://www.python.org)
[![PyPI](https://img.shields.io/pypi/v/pynsn?style=flat)](https://pypi.org/project/pynsn/)

(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](https://en.wikipedia.org/wiki/Scalable_Vector_Graphics)
or [Pillow](https://pillow.readthedocs.io/en/stable/) images.
To generate [Pygame](https://www.pygame.org/news) or
[Matplotlib](https://matplotlib.org/stable/index.html) images or stimuli
for [Expyriment](http://expyriment.org), please install the respective
packages.

## Examples
* [making arrays](https://lindemann09.github.io/PyNSN/make_object_arrays_demo.html): manually creating nsn stimuluss and exporting picture file
  ([binder](https://mybinder.org/v2/gh/lindemann09/PyNSN/jupyter?labpath=examples%2Fmake_object_arrays_demo.ipynb))
* [random arrays](https://lindemann09.github.io/PyNSN/pynsn_demo.html): Creating random nsn stimuli
  ([binder](https://mybinder.org/v2/gh/lindemann09/PyNSN/jupyter?labpath=examples%2Fpynsn_demo.ipynb))
* matching visual features
* data base, sequences
* [Euro flag example](https://lindemann09.github.io/PyNSN/euro_flag_demo.html): using pictures as objects in array
  ([binder](https://mybinder.org/v2/gh/lindemann09/PyNSN/jupyter?labpath=examples%2Feuro_flag_demo.ipynb))

