Get Started
pip install ezRay
Quick Start Guide
from ezRay import MultiCoreExecutionTool
import ray
# configure ezRay
instance_metadata:dict = {
'num_cpus': 4, # number of cpus to use
'num_gpus': 0, # number of gpus to use
'address': None, # remote cluster address. None for local.
}
# setup ezRay
MultiCore = MultiCoreExecutionTool(instance_metadata = instance_metadata)
# launch ray dashboard (optional)
MultiCore.launch_dashboard()
# define any task
def do_something(foo:int, bar:int) -> int:
return foo + bar
# or use a ray.remote object
@ray.remote
def do_something_remote(foo:int, bar:int) -> int:
return foo - bar
# prepare your data in a dictionary. They keys work as identifiers, while the values should be dictionaries matching the function signature.
data = {
1:{'foo' : 0, 'bar' : 1},
2:{'foo' : 1, 'bar' : 2},
3:{'foo' : 2, 'bar' : 3}
}
# pass the data to ezRay
MultiCore.update_data(data)
# run the task
MultiCore.run(do_something)
# get the results
results_first_task = MultiCore.get_results()
## prepare for the next run
# this will automaticall archive current results
# alternatively you can use MultiCore.archive_results()
MultiCore.next()
# run a second task
MultiCore.run(do_something_remote)
# get current results
results_second_task = MultiCore.get_results()
# get the archived results
archive = MultiCore.get_archive()
Documentation
Pending, sry. No time. However, check out the sandbox in the examples folder or the docstrings in the code.
Metadata
Release files for ezRay 1.1.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ezray-1.1.11.tar.gz | 15.0 kB | Without provenance | Details for ezray-1.1.11.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ezray-1.1.11-py3-none-any.whl | Python 3 | none | any | Details for ezray-1.1.11-py3-none-any.whl |
Total release size: 31.7 kB
Release files / ezray-1.1.11.tar.gz
| Download URL | ezray-1.1.11.tar.gz |
|---|---|
| Size | 15.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
87d84ec58e1785c414466bc52fc228d282de016be8387ea059cbf4dddf658679
|
|
BLAKE2b-256 checksum How to use checksums |
2792fb223ae0c7b9791dcd8eb711cb0a06f636fbb86547bd631ac82a1d29d0de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.5 CPython/3.9.9 Windows/10
|
Release files / ezray-1.1.11-py3-none-any.whl
| Download URL | ezray-1.1.11-py3-none-any.whl |
|---|---|
| Size | 16.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1c654996cf5f2cc53b406942a56792776595189e07cdaae2aa1203cbcd70f9d9
|
|
BLAKE2b-256 checksum How to use checksums |
1593e712f33f5cb3d12c4cc24c845165d314f98f6a4d9711c48bfd6a920f8c36
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.5 CPython/3.9.9 Windows/10
|
Security for ezRay 1.1.11
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.