The distributed parallel computing library hooks for xonsh
If you like the idea click ⭐ on the repo and tweet.
Importantly this provides a substitute 'dworker' command which enables distributed workers to have access to xonsh builtins.
Furthermore, this xontrib adds a 'DSubmitter' context manager for executing a block remotely. Moreover, this also adds a convenience function 'dsubmit()' for creating DSubmitter and Executor instances at the same time.
Thus users may submit distributed jobs with::
with dsubmit('127.0.0.1:8786', rtn='x') as dsub:
x = $(echo I am elsewhere)
res = dsub.future.result()
print(res)
This is useful for long running or non-blocking jobs.
To install use pip:
xpip install xontrib-distributed
# or: xpip install -U git+https://github.com/xonsh/xontrib-distributed
xontrib load distributed
# TODO: what's next?
- Bump the version of your package.
- Create a GitHub release (The release notes are automatically generated as a draft release after each push).
- And publish with
poetry publish --build
ortwine
This package was created with xontrib cookiecutter template.