stimuli


Namestimuli JSON
Version 1.0.2 PyPI version JSON
download
home_pageNone
SummaryPrecise auditory stimuli.
upload_time2024-10-03 15:02:29
maintainerNone
docs_urlNone
authorNone
requires_python>=3.11
licenseMIT License Copyright (c) 2022 Mathieu Scheltienne Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords audio auditory python stimuli trigger
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![Imports: isort](https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336)](https://pycqa.github.io/isort/)
[![codecov](https://codecov.io/gh/mscheltienne/stimuli/graph/badge.svg?token=92BKRPSD0V)](https://codecov.io/gh/mscheltienne/stimuli)
[![tests](https://github.com/mscheltienne/stimuli/actions/workflows/pytest.yaml/badge.svg?branch=main)](https://github.com/mscheltienne/stimuli/actions/workflows/pytest.yaml)
[![doc](https://github.com/mscheltienne/stimuli/actions/workflows/doc.yaml/badge.svg?branch=main)](https://github.com/mscheltienne/stimuli/actions/workflows/doc.yaml)
[![PyPI version](https://badge.fury.io/py/stimuli.svg)](https://badge.fury.io/py/stimuli)
[![Downloads](https://static.pepy.tech/personalized-badge/stimuli?period=total&units=international_system&left_color=grey&right_color=blue&left_text=pypi%20downloads)](https://pepy.tech/project/stimuli)
[![Conda Version](https://img.shields.io/conda/vn/conda-forge/stimuli.svg)](https://anaconda.org/conda-forge/stimuli)
[![Conda Downloads](https://img.shields.io/conda/dn/conda-forge/stimuli.svg)](https://anaconda.org/conda-forge/stimuli)
[![Conda Platforms](https://img.shields.io/conda/pn/conda-forge/stimuli.svg)](https://anaconda.org/conda-forge/stimuli)

# Stimuli

This repository contains auditory stimuli that do not require
[PsychoPy](https://www.psychopy.org/). The auditory stimuli use the python
[sounddevice](https://python-sounddevice.readthedocs.io/en/latest/) library.

# Installation

This repository is available for `python ≥ 3.11` on `pip` with the command
`pip install stimuli` or on `conda-forge` with the command
`conda install -c conda-forge stimuli`.

# Usage

## Audio stimulus

```
from stimuli.audio import Tone
from stimuli.time import sleep
from stimuli.trigger import ParallelPortTrigger

trigger = ParallelPortTrigger("/dev/parport0")
sound = Tone(frequency=1000, volume=80, duration=1)
sound.play(when=0.2)
sleep(0.2)
trigger.signal(1)
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "stimuli",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.11",
    "maintainer_email": "Mathieu Scheltienne <mathieu.scheltienne@gmail.com>",
    "keywords": "audio, auditory, python, stimuli, trigger",
    "author": null,
    "author_email": "Mathieu Scheltienne <mathieu.scheltienne@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/8d/ce/f44b7c4ff509551a48a7d0ce2b418ed9e827c8cc3a8adaa84b7aceb4265c/stimuli-1.0.2.tar.gz",
    "platform": null,
    "description": "[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n[![Imports: isort](https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336)](https://pycqa.github.io/isort/)\n[![codecov](https://codecov.io/gh/mscheltienne/stimuli/graph/badge.svg?token=92BKRPSD0V)](https://codecov.io/gh/mscheltienne/stimuli)\n[![tests](https://github.com/mscheltienne/stimuli/actions/workflows/pytest.yaml/badge.svg?branch=main)](https://github.com/mscheltienne/stimuli/actions/workflows/pytest.yaml)\n[![doc](https://github.com/mscheltienne/stimuli/actions/workflows/doc.yaml/badge.svg?branch=main)](https://github.com/mscheltienne/stimuli/actions/workflows/doc.yaml)\n[![PyPI version](https://badge.fury.io/py/stimuli.svg)](https://badge.fury.io/py/stimuli)\n[![Downloads](https://static.pepy.tech/personalized-badge/stimuli?period=total&units=international_system&left_color=grey&right_color=blue&left_text=pypi%20downloads)](https://pepy.tech/project/stimuli)\n[![Conda Version](https://img.shields.io/conda/vn/conda-forge/stimuli.svg)](https://anaconda.org/conda-forge/stimuli)\n[![Conda Downloads](https://img.shields.io/conda/dn/conda-forge/stimuli.svg)](https://anaconda.org/conda-forge/stimuli)\n[![Conda Platforms](https://img.shields.io/conda/pn/conda-forge/stimuli.svg)](https://anaconda.org/conda-forge/stimuli)\n\n# Stimuli\n\nThis repository contains auditory stimuli that do not require\n[PsychoPy](https://www.psychopy.org/). The auditory stimuli use the python\n[sounddevice](https://python-sounddevice.readthedocs.io/en/latest/) library.\n\n# Installation\n\nThis repository is available for `python \u2265 3.11` on `pip` with the command\n`pip install stimuli` or on `conda-forge` with the command\n`conda install -c conda-forge stimuli`.\n\n# Usage\n\n## Audio stimulus\n\n```\nfrom stimuli.audio import Tone\nfrom stimuli.time import sleep\nfrom stimuli.trigger import ParallelPortTrigger\n\ntrigger = ParallelPortTrigger(\"/dev/parport0\")\nsound = Tone(frequency=1000, volume=80, duration=1)\nsound.play(when=0.2)\nsleep(0.2)\ntrigger.signal(1)\n```\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2022 Mathieu Scheltienne  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "Precise auditory stimuli.",
    "version": "1.0.2",
    "project_urls": {
        "documentation": "https://mscheltienne.github.io/stimuli/",
        "source": "https://github.com/mscheltienne/stimuli",
        "tracker": "https://github.com/mscheltienne/stimuli/issues"
    },
    "split_keywords": [
        "audio",
        " auditory",
        " python",
        " stimuli",
        " trigger"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4564f53df599e728d97e1900c0cf6ea9e476a50a4738e8f2eb879c4bc3649bd3",
                "md5": "b0c91aeffbd4583ac98e4ec183c663e1",
                "sha256": "33e912e359fb169420f11ed90fedc36687cea29009e6415d075f9a52bae5df24"
            },
            "downloads": -1,
            "filename": "stimuli-1.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b0c91aeffbd4583ac98e4ec183c663e1",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11",
            "size": 42379,
            "upload_time": "2024-10-03T15:02:26",
            "upload_time_iso_8601": "2024-10-03T15:02:26.318521Z",
            "url": "https://files.pythonhosted.org/packages/45/64/f53df599e728d97e1900c0cf6ea9e476a50a4738e8f2eb879c4bc3649bd3/stimuli-1.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8dcef44b7c4ff509551a48a7d0ce2b418ed9e827c8cc3a8adaa84b7aceb4265c",
                "md5": "4e5606fe17ee1d297990828769b8cc65",
                "sha256": "daf1ed741a34aba0796d772d25289735a99700f30c2d1cb520498aa8e839ac53"
            },
            "downloads": -1,
            "filename": "stimuli-1.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "4e5606fe17ee1d297990828769b8cc65",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11",
            "size": 32506,
            "upload_time": "2024-10-03T15:02:29",
            "upload_time_iso_8601": "2024-10-03T15:02:29.098383Z",
            "url": "https://files.pythonhosted.org/packages/8d/ce/f44b7c4ff509551a48a7d0ce2b418ed9e827c8cc3a8adaa84b7aceb4265c/stimuli-1.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-03 15:02:29",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "mscheltienne",
    "github_project": "stimuli",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "stimuli"
}
        
Elapsed time: 2.61533s