Skip to main content

utility functions for https://github.com/ray-project/ray/

Project description

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:

Project details


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.4.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

ray_utils-0.0.4-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file ray_utils-0.0.4.tar.gz.

File metadata

  • Download URL: ray_utils-0.0.4.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.13

File hashes

Hashes for ray_utils-0.0.4.tar.gz
Algorithm Hash digest
SHA256 3029e296ff255e7a14de28988528caaa62d0e2bf0a735f614bb019414ddce8d1
MD5 8c32698e004e89fe198d347566705f66
BLAKE2b-256 a8cdbc7a2141357b3c3cb8482ad90938800b63a9cb778f2f8ef0ade2847050fc

See more details on using hashes here.

File details

Details for the file ray_utils-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: ray_utils-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.13

File hashes

Hashes for ray_utils-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 1b4101c20b24b4d49aa75648a115ad4a7d378ec7d2359114f06a6ad85bba09d2
MD5 394a91a06958e6d76d7b50e7f487e835
BLAKE2b-256 c0f73b2758315dd61766dc5c976d8350792929f36a93cc0fab0b32e1087a6f9c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page