Pipe-Utils

Python but with pipes, utils, and pipe utils

Example

from pipe_utils import *

words = "I just think pipes are neat"

result = (
        Pipe(words)
        | str.lower
        | str.split
        | group_by(len)
        | sorted_dict
).get()

print(result)
#  {1: ['i'], 3: ['are'], 4: ['just', 'neat'], 5: ['think', 'pipes']}

Install

pip install pipe-utils

Indices and tables