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 details)
Built Distribution
File details
Details for the file ray_utils-0.0.5.tar.gz
.
File metadata
- Download URL: ray_utils-0.0.5.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78304f1dbe6cb9ac49b1c114ad4b5a42d8d28faed961b34f781eb456799151a5 |
|
MD5 | ff31e6b381d48b41d09af03b629c4aeb |
|
BLAKE2b-256 | 053a9517938cf94e363e7458ab9eb81ed0ae2deef744672d9e3e247f0bc9729a |
File details
Details for the file ray_utils-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: ray_utils-0.0.5-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7c515059d487014053d605f402af9dac977a59f60b35ae8cad6e1fe34dcae5c |
|
MD5 | 14de01cb4d6e011ee168f4a77273e694 |
|
BLAKE2b-256 | ce949dc6b5f7163b7e108e13c60749691731de4fe5bbe4caa6ad0e1a47c713b8 |