Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lonnen/oops-all-itertools
never again lookup whether the itertool you need is builtin or from more-itertools
https://github.com/lonnen/oops-all-itertools
iteration iterator itertools
Last synced: about 1 month ago
JSON representation
never again lookup whether the itertool you need is builtin or from more-itertools
- Host: GitHub
- URL: https://github.com/lonnen/oops-all-itertools
- Owner: lonnen
- License: mit
- Created: 2023-03-08T10:32:29.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-16T04:20:06.000Z (5 months ago)
- Last Synced: 2024-08-17T22:22:48.955Z (3 months ago)
- Topics: iteration, iterator, itertools
- Language: Python
- Homepage: https://pypi.org/project/oops-all-itertools/
- Size: 22.5 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
==================
Oops All Itertools
==================Python's ``more-itertools`` is a fantastic compliment to ``itertools`` but it's
inconvenient to have to constantly look up which itertool is in which library.
Oops All Itertools heaps them together into a loose pile in a single namespace.Inspired by `more-itertools issue 681 `_
|Build Status|
.. |Build Status| image:: https://github.com/lonnen/oops-all-itertools/actions/workflows/python-app.yml/badge.svg?branch=main
:target: https://github.com/lonnen/oops-all-itertools/actions/workflows/python-app.yml:Code: https://github.com/lonnen/oops-all-itertools
:Issues: https://github.com/lonnen/oops-all-itertools/issues
:Releases: https://pypi.org/project/oops_all_itertools/#history
:License: MIT; See LICENSEInstall
=======To get started, install the library with `pip `_:
.. code-block:: shell
$ pip install oops-all-itertools
Usage
=====.. code-block:: python
>>> from oops_all_itertools import chain, chunked
>>> list(chain.from_iterable(chunked(range(6), 3)))
[0, 1, 2, 3, 4, 5]For the full list of functions, see the `itertools API documentation `_
and the `more-itertools API documentation `_.