skip to navigation
skip to content

Not Logged In

multyvac 0.4.5

Multyvac for Python

Latest Version: 0.5.0

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
 
File Type Py Version Uploaded on Size
multyvac-0.4.5.tar.gz (md5) Source 2014-07-21 38KB
  • Downloads (All Versions):
  • 223 downloads in the last day
  • 818 downloads in the last week
  • 2507 downloads in the last month