Included in the iteration_utilities package are several helper functions that are based on normal Python code but chosen to evaluate faster than alternatives: all_isinstance(), stops as soon as one item is not an instance of the specified types. any_isinstance(), stops as soon as one item is an instance of the specified types.
18.11.2020 · Python / iteration-utilities. pypi package 'iteration-utilities' Popularity: Medium (more popular than 90% of all packages) Description: Utilities based on …
07.12.2020 · GitHub - MSeifert04/iteration_utilities: Utilities based on Pythons iterators and generators. Use Git or checkout with SVN using the web URL. Work fast with our official CLI. Learn more . If nothing happens, download GitHub Desktop and try again. If nothing happens, download GitHub Desktop and try again.
Nov 18, 2020 · Utilities based on Pythons iterators and generators. The full list of functions and classes included in this package: accumulate. all_distinct. all_equal. all_isinstance. all_monotone. always_iterable. any_isinstance.
Dec 07, 2020 · GitHub - MSeifert04/iteration_utilities: Utilities based on Pythons iterators and generators. Use Git or checkout with SVN using the web URL. Work fast with our official CLI. Learn more . If nothing happens, download GitHub Desktop and try again. If nothing happens, download GitHub Desktop and try again.
18.11.2020 · Utilities based on Pythons iterators and generators. The full list of functions and classes included in this package: accumulate. all_distinct. all_equal. all_isinstance. all_monotone. always_iterable. any_isinstance.
Iterableis because allows chaining of several functionsimplemented in Python (map(), filter(), …),itertoolsand iteration_utilities: >>> Iterable([1,2,3,4]).islice(1,3).map(float).as_list()[2.0, 3.0] The methods islice()and map()are only evaluated on theiterable when as_list()is called.
Welcome to iteration_utilities’s documentation!¶ iteration_utilities is a general purpose collection around the concept of functional programming based on and utilizing iterators and generators. Most of the functions presented here are inspired by the itertools module, especially the “recipes” section 0, but also by the toolz 1 package. It should be noted that there are lots more ...
You can create an instance from any object that implements the iteration protocol. For example the Python types list, tuple, set, frozenset, str, dict, dict.values(), dict.items(), range just to …
git clone https: // github. com / MSeifert04 / iteration_utilities. git cd iteration_utilities python-m pip install. with the clone from git one can also run the tests after the installation: python-m pytest tests / Or build the documentation: sphinx-build-b html-W-a-n docs / build / sphinx / html / # local documentation build.
iteration_utilities is a general purpose collection around the concept of functional programming based on and utilizing iterators and generators. Most of the functions presented here are inspired by the itertools module, especially the “recipes” section 0, but also by the toolz 1 package. It should be noted that there are lots more packages with similar functions, for example more-itertools 2 , pydash 3 and many, many more.