simpyx


Namesimpyx JSON
Version 1.1.0 PyPI version JSON
download
home_pageNone
SummarySimulate neopixels in the terminal.
upload_time2024-09-01 00:26:38
maintainerNone
docs_urlNone
authorNone
requires_python>=3.10
licenseMIT License Copyright (c) 2024 Josh Tompkin 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 led neopixel simulate terminal
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # simpyx

Simulate RGB pixel control in a terminal.

## Installation

Install with pip

```bash
pip install simpyx
```

## Modules

- `pixels`: Create and show RGB pixel arrays.
- `shows`: Collection of programs to show off the simpyx library.
- `screen`: Manipulate a file (usually standard out) as a screen.

## Usage

`pixels.PixelDrawer` object is the primary interface for displaying an array of
pixels.

Can index and iterate as a normal python array. Intended to work (kinda)
similarly to
[adafruit-circuitpython-neopixel](https://pypi.org/project/adafruit-circuitpython-neopixel).

```python
with pixels.PixelDrawer(100) as pix_drawer:
    for p in pix_drawer:
        p.set_rgb(255, 0, 100)
    pix_drawer[30] = pixels.Pixel(0, 0, 0)
    pix_drawer.show()
```

### Typical Python usage

```python
import time
from simpyx import pixels
with pixels.PixelDrawer(100) as pix:
    delta = 255 / len(pix)
    while True:
        for i, p in enumerate(pix):
            p.set_rgb(100, 0, round((i + i) * delta)
            pix.show()
            time.sleep(0.05)
        pix.fill(0, 0, 0)
        pix.show()
```

## License
Licensed under the MIT license. See LICENSE file.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "simpyx",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": "led, neopixel, simulate, terminal",
    "author": null,
    "author_email": "Josh Tompkin <jtompkin-dev@pm.me>",
    "download_url": "https://files.pythonhosted.org/packages/ce/b5/2cf9b6282e07bc9dfa0d01cdb8419ef628d644f1917acb46b2e92b0cf7e3/simpyx-1.1.0.tar.gz",
    "platform": null,
    "description": "# simpyx\n\nSimulate RGB pixel control in a terminal.\n\n## Installation\n\nInstall with pip\n\n```bash\npip install simpyx\n```\n\n## Modules\n\n- `pixels`: Create and show RGB pixel arrays.\n- `shows`: Collection of programs to show off the simpyx library.\n- `screen`: Manipulate a file (usually standard out) as a screen.\n\n## Usage\n\n`pixels.PixelDrawer` object is the primary interface for displaying an array of\npixels.\n\nCan index and iterate as a normal python array. Intended to work (kinda)\nsimilarly to\n[adafruit-circuitpython-neopixel](https://pypi.org/project/adafruit-circuitpython-neopixel).\n\n```python\nwith pixels.PixelDrawer(100) as pix_drawer:\n    for p in pix_drawer:\n        p.set_rgb(255, 0, 100)\n    pix_drawer[30] = pixels.Pixel(0, 0, 0)\n    pix_drawer.show()\n```\n\n### Typical Python usage\n\n```python\nimport time\nfrom simpyx import pixels\nwith pixels.PixelDrawer(100) as pix:\n    delta = 255 / len(pix)\n    while True:\n        for i, p in enumerate(pix):\n            p.set_rgb(100, 0, round((i + i) * delta)\n            pix.show()\n            time.sleep(0.05)\n        pix.fill(0, 0, 0)\n        pix.show()\n```\n\n## License\nLicensed under the MIT license. See LICENSE file.\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2024 Josh Tompkin  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": "Simulate neopixels in the terminal.",
    "version": "1.1.0",
    "project_urls": {
        "Homepage": "https://github.com/jtompkin/simpyx"
    },
    "split_keywords": [
        "led",
        " neopixel",
        " simulate",
        " terminal"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ff38110005dd85d5fea873380da81c645554a063f204ad2d1bee99a3486d6cff",
                "md5": "6dca14d6644436985d1a3a93c03b7781",
                "sha256": "5f69605c782cf0bffc6d4cce8b8ea95d9ebe9c694f2ecbfb8c3852266c35a04c"
            },
            "downloads": -1,
            "filename": "simpyx-1.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6dca14d6644436985d1a3a93c03b7781",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 7105,
            "upload_time": "2024-09-01T00:26:36",
            "upload_time_iso_8601": "2024-09-01T00:26:36.407459Z",
            "url": "https://files.pythonhosted.org/packages/ff/38/110005dd85d5fea873380da81c645554a063f204ad2d1bee99a3486d6cff/simpyx-1.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ceb52cf9b6282e07bc9dfa0d01cdb8419ef628d644f1917acb46b2e92b0cf7e3",
                "md5": "093f3d8e3ec6cf22b12881b829c86a7e",
                "sha256": "730ab63208474c2eb07c1d30eeecb875cd7532555d08883b4c946667c414bfc8"
            },
            "downloads": -1,
            "filename": "simpyx-1.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "093f3d8e3ec6cf22b12881b829c86a7e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 5238,
            "upload_time": "2024-09-01T00:26:38",
            "upload_time_iso_8601": "2024-09-01T00:26:38.308221Z",
            "url": "https://files.pythonhosted.org/packages/ce/b5/2cf9b6282e07bc9dfa0d01cdb8419ef628d644f1917acb46b2e92b0cf7e3/simpyx-1.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-01 00:26:38",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "jtompkin",
    "github_project": "simpyx",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "simpyx"
}
        
Elapsed time: 0.36339s