{ "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-ina260/badge/?version=latest\n :target: https://circuitpython.readthedocs.io/projects/ina260/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_INA260.svg?branch=master\n :target: https://travis-ci.com/adafruit/Adafruit_CircuitPython_INA260\n :alt: Build Status\n\nCircuitPython driver for the TI INA260 current and power sensor\n\n\nDependencies\n=============\nThis driver depends on:\n\n* `Adafruit CircuitPython `_\n* `Bus Device `_\n* `Register `_\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\nInstalling from PyPI\n--------------------\n.. note:: This library is not available on PyPI yet. Install documentation is included\n as a standard element. Stay tuned for PyPI availability!\n If the library is not planned for PyPI, remove the entire 'Installing from PyPI' section.\n On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from\n PyPI `_. To install for current user:\n\n.. code-block:: shell\n\n pip3 install adafruit-circuitpython-ina260\n\nTo install system-wide (this may be required in some cases):\n\n.. code-block:: shell\n\n sudo pip3 install adafruit-circuitpython-ina260\n\nTo install in a virtual environment in your current project:\n\n.. code-block:: shell\n\n mkdir project-name && cd project-name\n python3 -m venv .env\n source .env/bin/activate\n pip3 install adafruit-circuitpython-ina260\n\nUsage Example\n=============\n::\n\n import time\n import board\n import adafruit_ina260\n\n i2c = board.I2C()\n ina260 = adafruit_ina260.INA260(i2c)\n while True:\n print(\"Current: %.2f Voltage: %.2f Power:%.2f\"\n %(ina260.current, ina260.voltage, ina260.power))\n time.sleep(1)\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-ina260 --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_INA260", "keywords": "adafruit blinka circuitpython micropython ina260 power current voltage", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "adafruit-circuitpython-ina260", "package_url": "https://pypi.org/project/adafruit-circuitpython-ina260/", "platform": "", "project_url": "https://pypi.org/project/adafruit-circuitpython-ina260/", "project_urls": { "Homepage": "https://github.com/adafruit/Adafruit_CircuitPython_INA260" }, "release_url": "https://pypi.org/project/adafruit-circuitpython-ina260/1.1.3/", "requires_dist": null, "requires_python": "", "summary": "CircuitPython driver for the TI INA260 current and power sensor", "version": "1.1.3" }, "last_serial": 5564939, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "69b9026eb8a3ad3c6541a7921defe5cf", "sha256": "545ad77f9745916ebaebbbe716d474db8007413935ffb324c6c70308341154ff" }, "downloads": -1, "filename": "adafruit-circuitpython-ina260-1.0.0.tar.gz", "has_sig": false, "md5_digest": "69b9026eb8a3ad3c6541a7921defe5cf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22991, "upload_time": "2019-03-26T16:52:39", "url": "https://files.pythonhosted.org/packages/4d/40/5b7fa8e774747998b618679c2d040487dddd529976a4a49edd916f00b4dd/adafruit-circuitpython-ina260-1.0.0.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "f5276b29e74834aec5918cb613b5736f", "sha256": "89b9da0feae4165a11d3aa33b3011c57ecc0339fd1d0bd04256fd3e92e5c61f1" }, "downloads": -1, "filename": "adafruit-circuitpython-ina260-1.1.0.tar.gz", "has_sig": false, "md5_digest": "f5276b29e74834aec5918cb613b5736f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23014, "upload_time": "2019-04-06T03:39:01", "url": "https://files.pythonhosted.org/packages/1b/7d/1f5893403b89041ba3106a74a8fe80e870f6f8a55deb01541211fa8400d3/adafruit-circuitpython-ina260-1.1.0.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "5f207f4d4d22b401a2ee5b930b6ae46b", "sha256": "fe0a24d32da7ec516aa7e23ccd06e88a369b8e88dc7289a5e4a032c86766ec6e" }, "downloads": -1, "filename": "adafruit-circuitpython-ina260-1.1.1.tar.gz", "has_sig": false, "md5_digest": "5f207f4d4d22b401a2ee5b930b6ae46b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23023, "upload_time": "2019-05-02T00:11:08", "url": "https://files.pythonhosted.org/packages/83/18/ec67c1031536eecc880e309e4e7415d50abff6a94446e9c95fae057d8fb6/adafruit-circuitpython-ina260-1.1.1.tar.gz" } ], "1.1.2": [ { "comment_text": "", "digests": { "md5": "2d3ef19c1be3124005fa291c2eaa0c02", "sha256": "3d51adfadeb66abf69a5390c5a7b0fd51f5999da5b3e391cce65d66ada849d58" }, "downloads": -1, "filename": "adafruit-circuitpython-ina260-1.1.2.tar.gz", "has_sig": false, "md5_digest": "2d3ef19c1be3124005fa291c2eaa0c02", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23012, "upload_time": "2019-05-28T02:57:01", "url": "https://files.pythonhosted.org/packages/dd/d6/c50b426bd49c9be6a65bafa741243082ffc2408324d5ee1d26fbbb070952/adafruit-circuitpython-ina260-1.1.2.tar.gz" } ], "1.1.3": [ { "comment_text": "", "digests": { "md5": "d3bf97bd7f5585e2ffb44823f05c10b3", "sha256": "b5cc24cbc9e8ffb431bc03606b96c0eab6f3a6a5d87eea35538a12c4b21e530c" }, "downloads": -1, "filename": "adafruit-circuitpython-ina260-1.1.3.tar.gz", "has_sig": false, "md5_digest": "d3bf97bd7f5585e2ffb44823f05c10b3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23012, "upload_time": "2019-07-21T22:48:02", "url": "https://files.pythonhosted.org/packages/fd/63/46cc32a8517c75b5797b27412415241ca0969e96628665621c46c7a4461b/adafruit-circuitpython-ina260-1.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d3bf97bd7f5585e2ffb44823f05c10b3", "sha256": "b5cc24cbc9e8ffb431bc03606b96c0eab6f3a6a5d87eea35538a12c4b21e530c" }, "downloads": -1, "filename": "adafruit-circuitpython-ina260-1.1.3.tar.gz", "has_sig": false, "md5_digest": "d3bf97bd7f5585e2ffb44823f05c10b3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23012, "upload_time": "2019-07-21T22:48:02", "url": "https://files.pythonhosted.org/packages/fd/63/46cc32a8517c75b5797b27412415241ca0969e96628665621c46c7a4461b/adafruit-circuitpython-ina260-1.1.3.tar.gz" } ] }