as7262


Nameas7262 JSON
Version 1.0.0 PyPI version JSON
download
home_pageNone
SummaryLibrary for the AS7262 spectral sensor
upload_time2024-05-15 09:42:41
maintainerNone
docs_urlNone
authorNone
requires_python>=3.7
licenseMIT License Copyright (c) 2018 Pimoroni Ltd. 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 pi raspberry
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # AS7262 Spectral Sensor

[![Build Status](https://img.shields.io/github/actions/workflow/status/pimoroni/as7262-python/test.yml?branch=main)](https://github.com/pimoroni/as7262-python/actions/workflows/test.yml)
[![Coverage Status](https://coveralls.io/repos/github/pimoroni/as7262-python/badge.svg?branch=main)](https://coveralls.io/github/pimoroni/as7262-python?branch=main)
[![PyPi Package](https://img.shields.io/pypi/v/as7262.svg)](https://pypi.python.org/pypi/as7262)
[![Python Versions](https://img.shields.io/pypi/pyversions/as7262.svg)](https://pypi.python.org/pypi/as7262)


Suitable for detecting the properties of ambient light, light passing through a liquid or light reflected from an object the AS7262 spectral sensor has 6 spectral channels at 450 (violet), 500 (blue), 550 (green), 570 (yellow), 600 (orange) and 650nm (red).

## Installing

### Full install (recommended):

We've created an easy installation script that will install all pre-requisites and get your AS7262
up and running with minimal efforts. To run it, fire up Terminal which you'll find in Menu -> Accessories -> Terminal
on your Raspberry Pi desktop, as illustrated below:

![Finding the terminal](http://get.pimoroni.com/resources/github-repo-terminal.png)

In the new terminal window type the command exactly as it appears below (check for typos) and follow the on-screen instructions:

```bash
git clone https://github.com/pimoroni/as7262-python
cd as7262-python
./install.sh
```

**Note** Libraries will be installed in the "pimoroni" virtual environment, you will need to activate it to run examples:

```
source ~/.virtualenvs/pimoroni/bin/activate
```

### Development:

If you want to contribute, or like living on the edge of your seat by having the latest code, you can install the development version like so:

```bash
git clone https://github.com/pimoroni/as7262-python
cd as7262-python
./install.sh --unstable
```

The install script should do it for you, but in some cases you might have to enable the i2c bus.

On a Raspberry Pi you can do that like so:

```
sudo raspi-config nonint do_i2c 0
```
1.0.0
-----

* Repackage to hatch/pyproject.toml
* Migrate to smbus2

0.1.0
-----

* Port to new i2cdevice API
* Breaking change from singleton module to AS7262 class

0.0.2
-----

* Extended reset delay to avoid IO Errors

0.0.1
-----

* Initial Release

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "as7262",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "Philip Howard <phil@pimoroni.com>",
    "keywords": "Pi, Raspberry",
    "author": null,
    "author_email": "Philip Howard <phil@pimoroni.com>",
    "download_url": "https://files.pythonhosted.org/packages/55/1d/5944a961f1cf667eaba578686be9aeb13f4c7064725fe453407b7668d2d0/as7262-1.0.0.tar.gz",
    "platform": null,
    "description": "# AS7262 Spectral Sensor\n\n[![Build Status](https://img.shields.io/github/actions/workflow/status/pimoroni/as7262-python/test.yml?branch=main)](https://github.com/pimoroni/as7262-python/actions/workflows/test.yml)\n[![Coverage Status](https://coveralls.io/repos/github/pimoroni/as7262-python/badge.svg?branch=main)](https://coveralls.io/github/pimoroni/as7262-python?branch=main)\n[![PyPi Package](https://img.shields.io/pypi/v/as7262.svg)](https://pypi.python.org/pypi/as7262)\n[![Python Versions](https://img.shields.io/pypi/pyversions/as7262.svg)](https://pypi.python.org/pypi/as7262)\n\n\nSuitable for detecting the properties of ambient light, light passing through a liquid or light reflected from an object the AS7262 spectral sensor has 6 spectral channels at 450 (violet), 500 (blue), 550 (green), 570 (yellow), 600 (orange) and 650nm (red).\n\n## Installing\n\n### Full install (recommended):\n\nWe've created an easy installation script that will install all pre-requisites and get your AS7262\nup and running with minimal efforts. To run it, fire up Terminal which you'll find in Menu -> Accessories -> Terminal\non your Raspberry Pi desktop, as illustrated below:\n\n![Finding the terminal](http://get.pimoroni.com/resources/github-repo-terminal.png)\n\nIn the new terminal window type the command exactly as it appears below (check for typos) and follow the on-screen instructions:\n\n```bash\ngit clone https://github.com/pimoroni/as7262-python\ncd as7262-python\n./install.sh\n```\n\n**Note** Libraries will be installed in the \"pimoroni\" virtual environment, you will need to activate it to run examples:\n\n```\nsource ~/.virtualenvs/pimoroni/bin/activate\n```\n\n### Development:\n\nIf you want to contribute, or like living on the edge of your seat by having the latest code, you can install the development version like so:\n\n```bash\ngit clone https://github.com/pimoroni/as7262-python\ncd as7262-python\n./install.sh --unstable\n```\n\nThe install script should do it for you, but in some cases you might have to enable the i2c bus.\n\nOn a Raspberry Pi you can do that like so:\n\n```\nsudo raspi-config nonint do_i2c 0\n```\n1.0.0\n-----\n\n* Repackage to hatch/pyproject.toml\n* Migrate to smbus2\n\n0.1.0\n-----\n\n* Port to new i2cdevice API\n* Breaking change from singleton module to AS7262 class\n\n0.0.2\n-----\n\n* Extended reset delay to avoid IO Errors\n\n0.0.1\n-----\n\n* Initial Release\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2018 Pimoroni Ltd.  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": "Library for the AS7262 spectral sensor",
    "version": "1.0.0",
    "project_urls": {
        "GitHub": "https://www.github.com/pimoroni/as7262-python",
        "Homepage": "https://www.pimoroni.com"
    },
    "split_keywords": [
        "pi",
        " raspberry"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "445e1fe76247a46f79e62a926dac8f4da731bf5d39802e0c004e64f050b3410b",
                "md5": "510b8fe820fd861499cdbd67dc3a1d80",
                "sha256": "fde01b1bcfa1e43c9cef761b51f61f9e67f4ce3d57fe577b1513d589471add70"
            },
            "downloads": -1,
            "filename": "as7262-1.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "510b8fe820fd861499cdbd67dc3a1d80",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 9054,
            "upload_time": "2024-05-15T09:42:39",
            "upload_time_iso_8601": "2024-05-15T09:42:39.356631Z",
            "url": "https://files.pythonhosted.org/packages/44/5e/1fe76247a46f79e62a926dac8f4da731bf5d39802e0c004e64f050b3410b/as7262-1.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "551d5944a961f1cf667eaba578686be9aeb13f4c7064725fe453407b7668d2d0",
                "md5": "64cbb974cd8609b0245ef0fd15c628e2",
                "sha256": "39edca2ae82198ac6b288f23be597dc2359317ad9da26b0aa6cdf5279fbabe40"
            },
            "downloads": -1,
            "filename": "as7262-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "64cbb974cd8609b0245ef0fd15c628e2",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 14736,
            "upload_time": "2024-05-15T09:42:41",
            "upload_time_iso_8601": "2024-05-15T09:42:41.003478Z",
            "url": "https://files.pythonhosted.org/packages/55/1d/5944a961f1cf667eaba578686be9aeb13f4c7064725fe453407b7668d2d0/as7262-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-15 09:42:41",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "pimoroni",
    "github_project": "as7262-python",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "as7262"
}
        
Elapsed time: 2.29757s