adafruit-circuitpython-itertools


Nameadafruit-circuitpython-itertools JSON
Version 2.1.2 PyPI version JSON
download
home_pageNone
SummaryPython's itertools for CircuitPython
upload_time2024-10-07 22:31:22
maintainerNone
docs_urlNone
authorNone
requires_pythonNone
licenseMIT
keywords adafruit itertools cpython hardware micropython circuitpython
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            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": null,
    "name": "adafruit-circuitpython-itertools",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "adafruit, itertools, cpython, hardware, micropython, circuitpython",
    "author": null,
    "author_email": "Adafruit Industries <circuitpython@adafruit.com>",
    "download_url": "https://files.pythonhosted.org/packages/a4/37/fc3b7563234397ec471150e1871b8f34c776c7b5e1ea05ced53982f7b622/adafruit_circuitpython_itertools-2.1.2.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.2",
    "project_urls": {
        "Homepage": "https://github.com/adafruit/Adafruit_CircuitPython_IterTools"
    },
    "split_keywords": [
        "adafruit",
        " itertools",
        " cpython",
        " hardware",
        " micropython",
        " circuitpython"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d548f66dfed938feb378db33c13b4d975cc96f4989b4c9647ad299449615604b",
                "md5": "260794eecce3f2bec6392fd6e2aa8bf2",
                "sha256": "402e43f9f6ad84c65922846fc4fe027e3aa05b1839a568d28aed4ff7ca6e4573"
            },
            "downloads": -1,
            "filename": "adafruit_circuitpython_itertools-2.1.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "260794eecce3f2bec6392fd6e2aa8bf2",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 13581,
            "upload_time": "2024-10-07T22:31:20",
            "upload_time_iso_8601": "2024-10-07T22:31:20.890265Z",
            "url": "https://files.pythonhosted.org/packages/d5/48/f66dfed938feb378db33c13b4d975cc96f4989b4c9647ad299449615604b/adafruit_circuitpython_itertools-2.1.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a437fc3b7563234397ec471150e1871b8f34c776c7b5e1ea05ced53982f7b622",
                "md5": "1000c9106f5b0761d7fbc807c9ad00ff",
                "sha256": "17f7135423b268844370121d44de2b84f55c6f27d262867ccc5b09d69461012e"
            },
            "downloads": -1,
            "filename": "adafruit_circuitpython_itertools-2.1.2.tar.gz",
            "has_sig": false,
            "md5_digest": "1000c9106f5b0761d7fbc807c9ad00ff",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 38490,
            "upload_time": "2024-10-07T22:31:22",
            "upload_time_iso_8601": "2024-10-07T22:31:22.063453Z",
            "url": "https://files.pythonhosted.org/packages/a4/37/fc3b7563234397ec471150e1871b8f34c776c7b5e1ea05ced53982f7b622/adafruit_circuitpython_itertools-2.1.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-07 22:31:22",
    "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": [],
    "lcname": "adafruit-circuitpython-itertools"
}
        
Elapsed time: 0.36444s