semvec/pypi-packages huggingface dataset:
iter.py 0.1.0
Implementation of Rust's Iterator
License: MIT
Requires Python: >=3.5

iter.py
=======

.. image:: https://img.shields.io/pypi/l/iter.py.svg
    :target: https://opensource.org/licenses/MIT
    :alt: Project License

.. image:: https://img.shields.io/pypi/v/iter.py.svg
    :target: https://pypi.python.org/pypi/iter.py
    :alt: PyPI Library Version

.. image:: https://img.shields.io/pypi/pyversions/iter.py.svg
    :target: https://pypi.python.org/pypi/iter.py
    :alt: Required Python Versions

.. image:: https://img.shields.io/pypi/status/iter.py.svg
    :target: https://github.com/NeKitDS/iter.py/blob/master/braces
    :alt: Project Development Status

.. image:: https://img.shields.io/pypi/dm/iter.py.svg
    :target: https://pypi.python.org/pypi/iter.py
    :alt: Library Downloads/Month

.. image:: https://img.shields.io/endpoint.svg?url=https%3A%2F%2Fshieldsio-patreon.herokuapp.com%2Fnekit%2Fpledges
    :target: https://patreon.com/nekit
    :alt: Patreon Page [Support]

iter.py is a library that implements Rust-like ``std::iter::Iterator`` class.

Installing
----------

**Python 3.5 or higher is required**

To install the library, you can just run the following command:

.. code:: sh

    # Linux/OS X
    python3 -m pip install -U iter.py

    # Windows
    py -3 -m pip install -U iter.py

In order to install the library from source, you can do the following:

.. code:: sh

    $ git clone https://github.com/NeKitDS/iter.py
    $ cd iter.py
    $ python -m pip install -U .

Quick example
-------------

Below is an example of identity function using braces style.

.. code:: python

    from iter import Iterator

    numbers = [1, 2, 3, 4, 5]

    print(Iterator(numbers).map(lambda n: n*n).step_by(2).sum())
    # 1 + 9 + 25 = 35

Authors
-------

This project is mainly developed by `NeKitDS <https://github.com/NeKitDS>`_.