iloveitaly / funcy-pipe

If Funcy and Pipe had a baby. Decorates all Funcy methods with Pipe superpowers.

Home Page:https://github.com/iloveitaly/funcy-pipe

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Funcy with pipeline-based operators

If Funcy and Pipe had a baby.

Examples

import funcy_pipe as f
entities_from_sql_alchemy
  | f.lmap(lambda r: r.to_dict())
  | f.lmap(lambda r: r | f.omit(["id", "created_at", "updated_at"]))
  | f.to_list

Module Alias

Create a module alias for funcy-pipe to easily import in your project:

# f.py
from funcy_pipe import *

Inspiration

TODO

  • tests
  • relax python version

About

If Funcy and Pipe had a baby. Decorates all Funcy methods with Pipe superpowers.

https://github.com/iloveitaly/funcy-pipe

License:MIT License


Languages

Language:Python 100.0%