Multyvac for Python
Project description
Multyvac gives Python developers a simple interface for offloading computational workloads to the cloud.
Getting Started
You need to set an Api Key for your machine. To do this, run the following from your shell:
$ python -m multyvac.setup
Follow the on screen instructions to complete the setup process.
Verify Installation
Open up Python, and import multyvac:
>>> import multyvac
If you get an ImportError, something went wrong. Try running the setup again.
Running a Job
The idea is to take a function that you would normally run on your own machine, but instead run it on Multyvac. Here’s an example of how you would offload a function for adding two numbers:
>>> def add(x, y):
... return x + y
>>> # run add on your machine
>>> add(1, 2)
3
>>> # submit add to Multyvac
>>> job_id = multyvac.submit(add, 1, 2)
>>> # get job object
>>> job = multyvac.get(job_id)
>>> # wait for job to finish processing
>>> job.wait()
>>> # verify the result is the same
>>> job.result
3
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
File details
Details for the file multyvac-0.5.0.tar.gz.
File metadata
- Download URL: multyvac-0.5.0.tar.gz
- Upload date:
- Size: 39.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3193decac7b3201e94d1bce9fee0b8eb73ca5838f010798f4d36747359faac47
|
|
| MD5 |
99af33b80fa67fff35a2eee0f55bebcc
|
|
| BLAKE2b-256 |
2674c4dfb567adfb32622102f282c32b9427782572e7de9ef8964f2c962ca83b
|