Skip to main content

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

Project description

Funcy with pipeline-based operators

If Funcy and Pipe had a baby. Deal with data transformation in python in a sane way.

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

Extras

  • to_list
  • log
  • bp
  • sort
  • exactly_one
  • reduce

Module Alias

Create a module alias for funcy-pipe to make things clean (import * always irks me):

# fp.py
from funcy_pipe import *

# code py
import fp

Inspiration

TODO

  • tests
  • relax python version
  • fix typing threading

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

funcy_pipe-0.4.0.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

funcy_pipe-0.4.0-py3-none-any.whl (3.8 kB view hashes)

Uploaded Python 3

Supported by

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