utility functions for https://github.com/ray-project/ray/
Project description
ray-utils
utility functions for https://github.com/ray-project/ray/
Usage
Installation
pip install ray-utils
Documentation
apply_parallel
Apply a function in parallel on elements of an iterable.
Example:
from ray_utils import apply_parallel
apply_parallel(
group_l=enumerate([1,2,3,4]),
func_apply=lambda x, val_init: val_init*x,
func_init=lambda: 3
)
init_in_context
Like ray.init()
but automatically calls ray.shutdown()
at the end of the "python context".
Example:
from ray_utils import init_in_context
with init_in_context():
print("bla")
Dev notes
Edit project in github.dev
at:
Push python package updates to pypi at:
Python package development tutorial:
pypi page:
pypi badge in this readme:
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
ray_utils-0.0.5.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for ray_utils-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7c515059d487014053d605f402af9dac977a59f60b35ae8cad6e1fe34dcae5c |
|
MD5 | 14de01cb4d6e011ee168f4a77273e694 |
|
BLAKE2b-256 | ce949dc6b5f7163b7e108e13c60749691731de4fe5bbe4caa6ad0e1a47c713b8 |