An open API service indexing awesome lists of open source software.

https://github.com/drorspei/dasker

monadic dask in separate process
https://github.com/drorspei/dasker

Last synced: 6 months ago
JSON representation

monadic dask in separate process

Awesome Lists containing this project

README

          

# dasker
monadic dask

example:
dasker '{}' python -c "import dasker; print(dasker.get_client().submit(lambda: 'hello, world!').result())"

equivalent example, because it's a monad:
dasker '{}' dasker '{}' python -c "import dasker; print(dasker.get_client().submit(lambda: 'hello, world!').result())"

if dasker wasn't used to start dask, a default client is used. example:
python -c "import dasker; print(dasker.get_client().submit(lambda: 'hello, world!').result())"

if you want to override the contextual dask, use --force-new. example:
dasker '{"processes": false}' dasker --force-new '{"processes": true, "nthreads": 1, "n_workers": 1}' command ...