-
Notifications
You must be signed in to change notification settings - Fork 2
/
PKG-INFO
72 lines (56 loc) · 2.33 KB
/
PKG-INFO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
Metadata-Version: 1.1
Name: multyvac
Version: 0.5.0
Summary: Multyvac for Python
Home-page: http://www.multyvac.com
Author: Multyvac, Inc.
Author-email: [email protected]
License: LICENSE.txt
Description: ========
Multyvac
========
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:
.. code-block:: bash
$ python -m multyvac.setup
Follow the on screen instructions to complete the setup process.
Verify Installation
---------------------
Open up Python, and import multyvac:
.. code-block:: python
>>> 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:
.. code-block:: python
>>> 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
Platform: CPython 2.6
Platform: CPython 2.7
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: POSIX
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: System :: Distributed Computing