ariebovenberg / gentools

Tools for generators, generator functions, and generator-based coroutines

Home Page:http://gentools.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gentools

image

image

image

image

image

Tools for generators, generator functions, and generator-based coroutines.

Key features:

  • Create reusable generators
  • Compose generators
  • Build python 2/3-compatible generators (gentools version <1.2 only)

Installation

Examples

  • Make generator functions reusable:
  • map a generator's yield, send, and return values:
  • relay a generator's yield/send interactions through another generator:
  • make python 2/3 compatible generators with return. (gentools version <1.2 only)

About

Tools for generators, generator functions, and generator-based coroutines

http://gentools.readthedocs.io/

License:MIT License


Languages

Language:Python 98.6%Language:Makefile 1.4%