{ "info": { "author": "Adafruit Industries", "author_email": "circuitpython@adafruit.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Libraries", "Topic :: System :: Hardware" ], "description": "Introduction\n============\n\n.. image:: https://readthedocs.org/projects/adafruit-circuitpython-veml6070/badge/?version=latest\n :target: https://circuitpython.readthedocs.io/projects/veml6070/en/latest/\n :alt: Documentation Status\n\n.. image :: https://img.shields.io/discord/327254708534116352.svg\n :target: https://discord.gg/nBQh6qu\n :alt: Discord\n \n.. image:: https://travis-ci.com/adafruit/Adafruit_CircuitPython_VEML6070.svg?branch=master\n :target: https://travis-ci.com/adafruit/Adafruit_CircuitPython_VEML6070\n :alt: Build Status\n\nCircuitPython driver for the `VEML6070 UV Index Sensor Breakout `_\n\nDependencies\n=============\nThis driver depends on:\n\n* `Adafruit CircuitPython `_\n* `Bus Device `_\n\nPlease ensure all dependencies are available on the CircuitPython filesystem.\nThis is easily achieved by downloading\n`the Adafruit library and driver bundle `_.\n\nUsage Example\n=============\n\n.. code-block:: python\n\n import time\n import board\n import busio\n from adafruit_veml6070 import VEML6070\n\n with busio.I2C(board.SCL, board.SDA) as i2c:\n uv = VEML6070(i2c)\n # Alternative constructors with parameters\n #uv = VEML6070(i2c, 'VEML6070_1_T')\n #uv = VEML6070(i2c, 'VEML6070_HALF_T', True)\n\n # take 10 readings\n for j in range(10):\n uv_raw = uv.uv_raw\n risk_level = uv.get_index(uv_raw)\n print('Reading: {0} | Risk Level: {1}'.format(uv_raw, risk_level))\n time.sleep(1)\n\n\nContributing\n============\n\nContributions are welcome! Please read our `Code of Conduct\n`_\nbefore contributing to help this project stay welcoming.\n\nBuilding locally\n================\n\nTo build this library locally you'll need to install the\n`circuitpython-build-tools `_ package.\n\n.. code-block:: shell\n\n python3 -m venv .env\n source .env/bin/activate\n pip install circuitpython-build-tools\n\nOnce installed, make sure you are in the virtual environment:\n\n.. code-block:: shell\n\n source .env/bin/activate\n\nThen run the build:\n\n.. code-block:: shell\n\n circuitpython-build-bundles --filename_prefix adafruit-circuitpython-veml6070 --library_location .\n\nSphinx documentation\n-----------------------\n\nSphinx is used to build the documentation based on rST files and comments in the code. First,\ninstall dependencies (feel free to reuse the virtual environment from above):\n\n.. code-block:: shell\n\n python3 -m venv .env\n source .env/bin/activate\n pip install Sphinx sphinx-rtd-theme\n\nNow, once you have the virtual environment activated:\n\n.. code-block:: shell\n\n cd docs\n sphinx-build -E -W -b html . _build/html\n\nThis will output the documentation to ``docs/_build/html``. Open the index.html in your browser to\nview them. It will also (due to -W) error out on any warning like Travis will. This is a good way to\nlocally verify it will pass.", "description_content_type": "text/x-rst", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/adafruit/Adafruit_CircuitPython_VEML6070", "keywords": "adafruit veml6070 uv index sensor breakout hardware micropython circuitpython", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "adafruit-circuitpython-veml6070", "package_url": "https://pypi.org/project/adafruit-circuitpython-veml6070/", "platform": "", "project_url": "https://pypi.org/project/adafruit-circuitpython-veml6070/", "project_urls": { "Homepage": "https://github.com/adafruit/Adafruit_CircuitPython_VEML6070" }, "release_url": "https://pypi.org/project/adafruit-circuitpython-veml6070/3.0.0/", "requires_dist": null, "requires_python": "", "summary": "CircuitPython library for VEML6070 UV Index Sensor Breakout.", "version": "3.0.0" }, "last_serial": 5255128, "releases": { "1.1.0": [ { "comment_text": "", "digests": { "md5": "46364869538c3cc8550a04d8d8b2d6e0", "sha256": "710900616b6f0f544fb99d703a47f5f5711a908983dafcaabfce77b6e327c63a" }, "downloads": -1, "filename": "adafruit-circuitpython-veml6070-1.1.0.tar.gz", "has_sig": false, "md5_digest": "46364869538c3cc8550a04d8d8b2d6e0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21570, "upload_time": "2018-08-08T22:14:34", "url": "https://files.pythonhosted.org/packages/17/fd/d3ff555208f7dcb1e32880f2de863b2afa0b1bb2f42fb36ecb57bad7296a/adafruit-circuitpython-veml6070-1.1.0.tar.gz" } ], "2.0.0": [ { "comment_text": "", "digests": { "md5": "e4ada5f0e928bdd2f22349f18f0d6dae", "sha256": "0bd6bdb24bba9bfa9bcac8f7b27024992802dceaa4ccd4803e6c2862f7fec129" }, "downloads": -1, "filename": "adafruit-circuitpython-veml6070-2.0.0.tar.gz", "has_sig": false, "md5_digest": "e4ada5f0e928bdd2f22349f18f0d6dae", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21592, "upload_time": "2018-11-12T20:20:19", "url": "https://files.pythonhosted.org/packages/23/a4/6f0d9da1073ddcef58f48fd77e7bca17eb0f515c7586b67b310083fb7406/adafruit-circuitpython-veml6070-2.0.0.tar.gz" } ], "2.0.1": [ { "comment_text": "", "digests": { "md5": "007bf57f87de81075d607f601eb9f116", "sha256": "df6dab2973eb44399de90725b0d12d565baa474510fe8cb3f29d655b3dee3a1f" }, "downloads": -1, "filename": "adafruit-circuitpython-veml6070-2.0.1.tar.gz", "has_sig": false, "md5_digest": "007bf57f87de81075d607f601eb9f116", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20387, "upload_time": "2019-01-15T03:19:33", "url": "https://files.pythonhosted.org/packages/cc/05/c991eedb454171cfc7cbb0429289d5206004feef35ca05e439659735afac/adafruit-circuitpython-veml6070-2.0.1.tar.gz" } ], "3.0.0": [ { "comment_text": "", "digests": { "md5": "a08f60fa23541938fa26a4f35398560a", "sha256": "2148eb1a6b6ca698f8ca3d07ad961b208c35680e1ec29f1afb8a57afaa81933a" }, "downloads": -1, "filename": "adafruit-circuitpython-veml6070-3.0.0.tar.gz", "has_sig": false, "md5_digest": "a08f60fa23541938fa26a4f35398560a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20383, "upload_time": "2019-05-11T05:18:52", "url": "https://files.pythonhosted.org/packages/1c/3f/63e6b256364667f1b4361e763826c895dd87dcc6fd2ad2f91290242f9263/adafruit-circuitpython-veml6070-3.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a08f60fa23541938fa26a4f35398560a", "sha256": "2148eb1a6b6ca698f8ca3d07ad961b208c35680e1ec29f1afb8a57afaa81933a" }, "downloads": -1, "filename": "adafruit-circuitpython-veml6070-3.0.0.tar.gz", "has_sig": false, "md5_digest": "a08f60fa23541938fa26a4f35398560a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20383, "upload_time": "2019-05-11T05:18:52", "url": "https://files.pythonhosted.org/packages/1c/3f/63e6b256364667f1b4361e763826c895dd87dcc6fd2ad2f91290242f9263/adafruit-circuitpython-veml6070-3.0.0.tar.gz" } ] }