Skip to main content

Clever, quick iterators that make your smile whiter

Project description

# yter

Version 1.9.1 2017, January 9

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

  • ylen – Complete an iterator and get number of values

  • first – Get the first value from an iteraterable

  • last – Get the final value from an iteraterable

  • head – Get the first values from an iteraterable

  • tail – Get the last values from an iteraterable

  • 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

  • sequence – Efficient copy of non sequence data

  • repeat – Efficient lazy copy of non sequence data

## 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

  • duplicates – Iterate only the duplicated 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, itemgetter, and methodcaller operators

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yter-1.9.1.tar.gz (8.6 kB view details)

Uploaded Source

File details

Details for the file yter-1.9.1.tar.gz.

File metadata

  • Download URL: yter-1.9.1.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for yter-1.9.1.tar.gz
Algorithm Hash digest
SHA256 81af0eb6f11ed46133e58b0fbaef9ac8279325aa710ca6cd4db328366b6e6c80
MD5 39be53c4116f2af64b636a1f9ae91735
BLAKE2b-256 9f345c5b0889449b594d3a5075ea297197d25de96cbdcdbac9c2b39397a41467

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page