freebsd-ports/www/py-aiostream/pkg-descr
Alexandre C. Guimarães a1b3cba71b
www/py-aiostream: Add to the pool
- necessary to deskutils/py-vdirsyncer
2022-12-20 01:24:01 -03:00

14 lines
678 B
Plaintext

Generator-based operators for asynchronous iteration.
It can be seen as an asynchronous version of itertools, although some
aspects are slightly different. Essentially, all the provided operators
return a unified interface called a stream. A stream is an enhanced
asynchronous iterable providing the following features:
- Operator pipe-lining - using pipe symbol '|'
- Repeatability - every iteration creates a different iterator
- Safe iteration context - using 'async with' and the 'stream' method
- Simplified execution - get the last element from a stream using 'await'
- Slicing and indexing - using square brackets '[]'
- Concatenation - using addition symbol '+'