Skip to main content

ray-utils

PyPI version

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:

Metadata

Release files for ray-utils 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ray-utils 0.0.5
File Size Uploaded Provenance Actions
ray_utils-0.0.5.tar.gz 3.1 kB Without provenance Details for ray_utils-0.0.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ray-utils 0.0.5
File Interpreter ABI Platform Actions
ray_utils-0.0.5-py3-none-any.whl Python 3 none any Details for ray_utils-0.0.5-py3-none-any.whl

Total release size: 7.1 kB

Release files / ray_utils-0.0.5.tar.gz

Download URL ray_utils-0.0.5.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
78304f1dbe6cb9ac49b1c114ad4b5a42d8d28faed961b34f781eb456799151a5
BLAKE2b-256 checksum
How to use checksums
053a9517938cf94e363e7458ab9eb81ed0ae2deef744672d9e3e247f0bc9729a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.13

Release files / ray_utils-0.0.5-py3-none-any.whl

Download URL ray_utils-0.0.5-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b7c515059d487014053d605f402af9dac977a59f60b35ae8cad6e1fe34dcae5c
BLAKE2b-256 checksum
How to use checksums
ce949dc6b5f7163b7e108e13c60749691731de4fe5bbe4caa6ad0e1a47c713b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.13

Security for ray-utils 0.0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page