Clever, quick iterators that make your smile whiter
Project description
# YTER
Version 1.1.0 February 13, 2015
Clever, quick iterator functions that make your smile whiter.
This will work with versions of Python 2.6+ and 3.2+. The tests also pass with recent Pypy and Jython releases.
## Functions
There are many functions that process data from iterators in efficient ways.
[yany] – Extended version of the builtin any, test if any values are true
[yall] – Extended version of the builtin all, test if all values are true
[last] – Get the final value from an iterator
[head] – Get the first values from an iterator
[tail] – Get the last values from an iterator
[finish] – Complete an iterator and get number of values
[minmax] – Find the minimum and maximum values from an iterable
[minmedmax] – Find the minimum, median, and maximum values from an iterable
[isiter] – Test if an object is iterable, but not a string type
[contain] – Copy an iterator into a list if it is not already a sequence
## Iterators
There are several iterators that wrap an existing iterator and process it’s output.
[call] – Iterator that works with mixed callable types
[percent] – Iterator that skips a percentage of values
[flat] – Iterator of values from a iterable of iterators
[chunk] – Iterator of lists with a fixed size from iterable
[key] – Iterator of pairs of key result and original values
[unique] – Iterate only the unique values
## Keys
Utility functions that are useful to use as a key argument
[formatter] – Create a function that formats given values into strings
[numeric] – Split a string into string and integer sections
[getter] – Shorthand for attrgetter and itemgetter operators
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
File details
Details for the file yter-1.4.0.zip
.
File metadata
- Download URL: yter-1.4.0.zip
- Upload date:
- Size: 11.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82931ef66ae9cb206cc0f58ad7b86ac6ef5e0fb1c490d3a302476976c4c1ccbf |
|
MD5 | 9d43048c2a0a482b94e26449cfcdef96 |
|
BLAKE2b-256 | ddf8f4b5eef682f50cdc9e85cf556b930ab1f00483b34dd8c5491e2010df547e |
File details
Details for the file yter-1.4.0.tar.gz
.
File metadata
- Download URL: yter-1.4.0.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a057503041d48988fc643eff0cd785260d54a027df48a89c847d1030be17350d |
|
MD5 | e9def10fe8560a2bb388ec628d76ac69 |
|
BLAKE2b-256 | 565baacd49cf786ee239346b02d1ed7a74d50bb24238436f9ff5f62cd5f60410 |