Skip to content
hitch-b24 edited this page Mar 6, 2018 · 7 revisions

Picos API

cloud-network-picosapi

Introducing a simple way to test and integrate with persistent compute objects (picos) with the Python scripting language. (Learn more about Picos)

What is picosapi?

The picosapi Python module provides a simple, purely Python-based method of generating events and queries compatible with the Pico Engine developed by Pico Labs at Brigham Young University.

Why picosapi?

Communication with a pico is done via HTTP requests, either as an event or as an API "function" call (I use the term 'function' here lightly). picosapi makes it easier to raise events in a pico and use the Sky Cloud API to interact with picos. As a high-level scripting language that is easy to read and learn, python provides an solid platform for testing, debugging, and producing HTTP interactions.

Installation

The picosapi module can be installed using pip:

pip install picosapi

NOTE: You may have to use the sudo command to install the module on Linux systems

sudo pip install picosapi

You can then use the module by adding an import statement at the top of your Python file:

import picosapi as picos

Wiki Contents

Learn More

Additional information about picos can be found by visiting Pico Labs

License

picosapi is free to use under the MIT public license

Picos API Documentation

A Note About Picos

Picos are useful in building Internet of Things (IoT) technology that preserves personal freedom. They are currently being developed under the direction of Dr. Phil Windley by Pico Labs at Brigham Young University. Picos is an actor-based programming system that supports people-centric, reactive programming on the Internet of Things.

For more information about Picos, visit Pico Labs or see Dr. Windley's article on Reactive Programming with Picos.

Clone this wiki locally