{ "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-htu21d/badge/?version=latest\n :target: https://circuitpython.readthedocs.io/projects/htu21d/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_HTU21D.svg?branch=master\n :target: https://travis-ci.com/adafruit/Adafruit_CircuitPython_HTU21D\n :alt: Build Status\n\nThis driver enables you to use the Adafruit HTU21D-F temperature and\nhumidity breakout with CircuitPyton.\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:: python\n\n import time\n import board\n import busio\n from adafruit_htu21d import HTU21D\n\n # Create library object using our Bus I2C port\n i2c = busio.I2C(board.SCL, board.SDA)\n sensor = HTU21D(i2c)\n\n\n while True:\n print(\"\\nTemperature: %0.1f C\" % sensor.temperature)\n print(\"Humidity: %0.1f %%\" % sensor.relative_humidity)\n time.sleep(2)\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\nZip release files\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-htu21d --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_HTU21D", "keywords": "adafruit htu21d-f temperature humidity sensorbreakout hardware micropython circuitpython", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "adafruit-circuitpython-HTU21D", "package_url": "https://pypi.org/project/adafruit-circuitpython-HTU21D/", "platform": "", "project_url": "https://pypi.org/project/adafruit-circuitpython-HTU21D/", "project_urls": { "Homepage": "https://github.com/adafruit/Adafruit_CircuitPython_HTU21D" }, "release_url": "https://pypi.org/project/adafruit-circuitpython-HTU21D/0.9.0/", "requires_dist": null, "requires_python": "", "summary": "CircuitPython library for HTU21D-F Temperature and Humidity Sensor.", "version": "0.9.0" }, "last_serial": 5838254, "releases": { "0.8.0": [ { "comment_text": "", "digests": { "md5": "8ecc48f08f6be3b045cb8902c1088e89", "sha256": "0fb361c761f0a5f28fd65610ec5c717d119157d58f98d62a6e0fc66d1953dfe6" }, "downloads": -1, "filename": "adafruit-circuitpython-HTU21D-0.8.0.tar.gz", "has_sig": false, "md5_digest": "8ecc48f08f6be3b045cb8902c1088e89", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20018, "upload_time": "2018-09-25T02:21:17", "url": "https://files.pythonhosted.org/packages/fa/eb/d94a55bdaeeb3fdd7df1cb033060066cee697f5a89186c5d16caeaa9b067/adafruit-circuitpython-HTU21D-0.8.0.tar.gz" } ], "0.8.1": [ { "comment_text": "", "digests": { "md5": "f07085800df2bb77923865a8029dd4a8", "sha256": "5769315e72b5ba51969c67517904d56798727fd5fc2c6dc02f6f07b275d1965c" }, "downloads": -1, "filename": "adafruit-circuitpython-HTU21D-0.8.1.tar.gz", "has_sig": false, "md5_digest": "f07085800df2bb77923865a8029dd4a8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18820, "upload_time": "2019-01-15T03:20:08", "url": "https://files.pythonhosted.org/packages/a2/0f/3ae25f1e4b7fe2fbb42612146ece9a3535ac846afebc82384272a2f50e20/adafruit-circuitpython-HTU21D-0.8.1.tar.gz" } ], "0.9.0": [ { "comment_text": "", "digests": { "md5": "0169ea256d046f2c00cdc8ec84bb1b4f", "sha256": "03c4979b377059c7199d7c6e1cc5e7d8c55f091f024637581355f203d1c9a71c" }, "downloads": -1, "filename": "adafruit-circuitpython-HTU21D-0.9.0.tar.gz", "has_sig": false, "md5_digest": "0169ea256d046f2c00cdc8ec84bb1b4f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18826, "upload_time": "2019-09-16T21:06:11", "url": "https://files.pythonhosted.org/packages/39/d6/5de3709d7a712495e603d45c6130643f8941d2d02a1a2fb1e5f3dbac089d/adafruit-circuitpython-HTU21D-0.9.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0169ea256d046f2c00cdc8ec84bb1b4f", "sha256": "03c4979b377059c7199d7c6e1cc5e7d8c55f091f024637581355f203d1c9a71c" }, "downloads": -1, "filename": "adafruit-circuitpython-HTU21D-0.9.0.tar.gz", "has_sig": false, "md5_digest": "0169ea256d046f2c00cdc8ec84bb1b4f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18826, "upload_time": "2019-09-16T21:06:11", "url": "https://files.pythonhosted.org/packages/39/d6/5de3709d7a712495e603d45c6130643f8941d2d02a1a2fb1e5f3dbac089d/adafruit-circuitpython-HTU21D-0.9.0.tar.gz" } ] }