Composable keyword function graphs
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dask-funk-0.9.1.tar.gz
(20.8 kB
view details)
File details
Details for the file dask-funk-0.9.1.tar.gz
.
File metadata
- Download URL: dask-funk-0.9.1.tar.gz
- Upload date:
- Size: 20.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e06e25e4aab1ace603d59b047ae1ac9b49205d07ecf7eddbd09bf8253935979 |
|
MD5 | af1bb9031b4e5308fe7604341e8dd445 |
|
BLAKE2b-256 | cf1fe6a6714bbec97e6de8179eb18a84517375e5dacf2f2727289464bdd52e20 |