Introduction
============
.. image:: https://readthedocs.org/projects/adafruit-circuitpython-itertools/badge/?version=latest
:target: https://docs.circuitpython.org/projects/itertools/en/latest/
:alt: Documentation Status
.. image:: https://raw.githubusercontent.com/adafruit/Adafruit_CircuitPython_Bundle/main/badges/adafruit_discord.svg
:target: https://adafru.it/discord
:alt: Discord
.. image:: https://github.com/adafruit/Adafruit_CircuitPython_IterTools/workflows/Build%20CI/badge.svg
:target: https://github.com/adafruit/Adafruit_CircuitPython_IterTools/actions
:alt: Build Status
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
:target: https://github.com/psf/black
:alt: Code Style: Black
Python's itertools for CircuitPython
Dependencies
=============
This driver depends on:
* `Adafruit CircuitPython <https://github.com/adafruit/circuitpython>`_
Please ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloading
`the Adafruit library and driver bundle <https://github.com/adafruit/Adafruit_CircuitPython_Bundle>`_.
Usage Example
=============
.. code-block:: python
import time
import board
import busio
import adafruit_si7021
from adafruit_itertools.adafruit_itertools import count
from adafruit_itertools.adafruit_itertools_extras import repeatfunc
i2c = busio.I2C(board.SCL, board.SDA)
sensor = adafruit_si7021.SI7021(i2c)
def read_temperature():
return sensor.temperature
def now():
return time.monotonic()
datapoints = zip(count(1), repeatfunc(now), map(int, repeatfunc(read_temperature)))
while True:
print(next(datapoints))
time.sleep(20.0)
Documentation
=============
API documentation for this library can be found on `Read the Docs <https://docs.circuitpython.org/projects/itertools/en/latest/>`_.
For information on building library documentation, please check out `this guide <https://learn.adafruit.com/creating-and-sharing-a-circuitpython-library/sharing-our-docs-on-readthedocs#sphinx-5-1>`_.
Contributing
============
Contributions are welcome! Please read our `Code of Conduct
<https://github.com/adafruit/Adafruit_CircuitPython_itertools/blob/main/CODE_OF_CONDUCT.md>`_
before contributing to help this project stay welcoming.
Raw data
{
"_id": null,
"home_page": "",
"name": "adafruit-circuitpython-itertools",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "adafruit,itertools,cpython,hardware,micropython,circuitpython",
"author": "",
"author_email": "Adafruit Industries <circuitpython@adafruit.com>",
"download_url": "https://files.pythonhosted.org/packages/ea/c7/18d4575ec24227a0abbdf1c0a7bfec351f7408dfbe01f5fcfa3d4ad637de/adafruit-circuitpython-itertools-2.1.0.tar.gz",
"platform": null,
"description": "Introduction\n============\n\n.. image:: https://readthedocs.org/projects/adafruit-circuitpython-itertools/badge/?version=latest\n :target: https://docs.circuitpython.org/projects/itertools/en/latest/\n :alt: Documentation Status\n\n.. image:: https://raw.githubusercontent.com/adafruit/Adafruit_CircuitPython_Bundle/main/badges/adafruit_discord.svg\n :target: https://adafru.it/discord\n :alt: Discord\n\n.. image:: https://github.com/adafruit/Adafruit_CircuitPython_IterTools/workflows/Build%20CI/badge.svg\n :target: https://github.com/adafruit/Adafruit_CircuitPython_IterTools/actions\n :alt: Build Status\n\n.. image:: https://img.shields.io/badge/code%20style-black-000000.svg\n :target: https://github.com/psf/black\n :alt: Code Style: Black\n\nPython's itertools for CircuitPython\n\n\nDependencies\n=============\nThis driver depends on:\n\n* `Adafruit CircuitPython <https://github.com/adafruit/circuitpython>`_\n\nPlease ensure all dependencies are available on the CircuitPython filesystem.\nThis is easily achieved by downloading\n`the Adafruit library and driver bundle <https://github.com/adafruit/Adafruit_CircuitPython_Bundle>`_.\n\n\nUsage Example\n=============\n\n.. code-block:: python\n\n import time\n import board\n import busio\n import adafruit_si7021\n from adafruit_itertools.adafruit_itertools import count\n from adafruit_itertools.adafruit_itertools_extras import repeatfunc\n\n i2c = busio.I2C(board.SCL, board.SDA)\n sensor = adafruit_si7021.SI7021(i2c)\n\n def read_temperature():\n return sensor.temperature\n\n def now():\n return time.monotonic()\n\n datapoints = zip(count(1), repeatfunc(now), map(int, repeatfunc(read_temperature)))\n\n while True:\n print(next(datapoints))\n time.sleep(20.0)\n\nDocumentation\n=============\n\nAPI documentation for this library can be found on `Read the Docs <https://docs.circuitpython.org/projects/itertools/en/latest/>`_.\n\nFor information on building library documentation, please check out `this guide <https://learn.adafruit.com/creating-and-sharing-a-circuitpython-library/sharing-our-docs-on-readthedocs#sphinx-5-1>`_.\n\nContributing\n============\n\nContributions are welcome! Please read our `Code of Conduct\n<https://github.com/adafruit/Adafruit_CircuitPython_itertools/blob/main/CODE_OF_CONDUCT.md>`_\nbefore contributing to help this project stay welcoming.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Python's itertools for CircuitPython",
"version": "2.1.0",
"project_urls": {
"Homepage": "https://github.com/adafruit/Adafruit_CircuitPython_IterTools"
},
"split_keywords": [
"adafruit",
"itertools",
"cpython",
"hardware",
"micropython",
"circuitpython"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "a0be7c45738c484f5c5f88f9793db66b3c00a44603943a31b9e3f58fbc86378b",
"md5": "d69f03f1301a7bb0b96957ffa11e0bff",
"sha256": "3cb3186bfb00996bcf85d27792e6aa6ab04b28e766ca8fbd97aef2365cfbb31f"
},
"downloads": -1,
"filename": "adafruit_circuitpython_itertools-2.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "d69f03f1301a7bb0b96957ffa11e0bff",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 12911,
"upload_time": "2024-02-23T20:37:27",
"upload_time_iso_8601": "2024-02-23T20:37:27.147786Z",
"url": "https://files.pythonhosted.org/packages/a0/be/7c45738c484f5c5f88f9793db66b3c00a44603943a31b9e3f58fbc86378b/adafruit_circuitpython_itertools-2.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "eac718d4575ec24227a0abbdf1c0a7bfec351f7408dfbe01f5fcfa3d4ad637de",
"md5": "7aca1a8b262c8d57ac25d3f1c93f35c1",
"sha256": "ff58aa3ae7a2f2e5613f9a7f9048a96af6b1e0ab5ac19991c9455b901ea729e7"
},
"downloads": -1,
"filename": "adafruit-circuitpython-itertools-2.1.0.tar.gz",
"has_sig": false,
"md5_digest": "7aca1a8b262c8d57ac25d3f1c93f35c1",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 34730,
"upload_time": "2024-02-23T20:37:29",
"upload_time_iso_8601": "2024-02-23T20:37:29.010003Z",
"url": "https://files.pythonhosted.org/packages/ea/c7/18d4575ec24227a0abbdf1c0a7bfec351f7408dfbe01f5fcfa3d4ad637de/adafruit-circuitpython-itertools-2.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-02-23 20:37:29",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "adafruit",
"github_project": "Adafruit_CircuitPython_IterTools",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "Adafruit-Blinka",
"specs": []
}
],
"lcname": "adafruit-circuitpython-itertools"
}