Skip to content

cesium-ml/dask2py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dask2py

Utility for printing executable Python code from a dask graph.

Usage:

from dask2py import dask2py
def inc(x):
    return 1 + x
def add(x, y):
    return x + y

dsk = {'a': 1, 'b': 2, 'c': (inc, 'a'), 'd': (add, 'b', 'c')}
print('\n'.join(dask2py(dsk, 'd')))

Output:

a = 1
b = 2
c = inc(a)
d = add(b, c)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages