Quickstart Guide

Installation

Register for a PiCloud account if you have not done so already.

Install the PiCloud client.

Setup

Grant your machine access to PiCloud using the setup utility. You’ll be asked for your username and password, which will be used to setup an api key credential on your machine::
$ picloud setup

Using

Run Python:

python

Import the client-side interface:

>>> import cloud

You can now run arbitrary functions on PiCloud:

>> jid = cloud.call(lambda: 3*3) # a jid (job id) identifies your job (a function)
>> cloud.result(jid)
9
>>> def square(x):
...     return x*x
...
>>> jid = cloud.call(square,3)
>>> cloud.result(jid)
9

With the Jobs view, you can see a graphical report of your jobs that have run.

If the function you wish to run is CPU intensive, you may wish to run it on a faster CPU. Running on faster CPUs costs more per minute, but your job will finish much quicker. To use a faster core mode, change the _type keyword argument to c2 to specify that you wish to run on the c2 compute resource:

>> cloud.call(square, 3, _type='c2')

Table Of Contents

Previous topic

PiCloud Documentation

Next topic

Client Basics