Skip to main content
Help us improve Python packaging – donate today!

Composable keyword function graphs

Project Description

https://travis-ci.org/Savvysherpa/dask-funk.svg?branch=master

dask-funk provides an extension to dask that creates keyword named functions (hence the funk!) from dasks or function graphs represented as dictionaries. It is inspired by Plumatic’s wonderful Graph library for clojure.

Example

>>> from operator import add

>>> import daskfunk as dsf

>>> inc = lambda x: x + 1
>>> double = lambda n: n * 2
>>> d = {'n': inc, 'doubled': double}
>>> f = dsf.compile(d)
>>> result = f(x=2)
>>> result == {'n': 3, 'doubled': 6}
True

Installation

conda install dask-funk

or

pip install dask-funk

Please fix or point out any errors, inaccuracies or typos you notice.

Release history Release notifications

This version
History Node

0.9.1

History Node

0.9.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
dask-funk-0.9.1.tar.gz (20.8 kB) Copy SHA256 hash SHA256 Source None Oct 5, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page