Quantcast
Channel: Julio Terra » python
Viewing all articles
Browse latest Browse all 5

pySpacebrew Library

$
0
0

pySpacebrew_String_Client

Earlier today I finished creating the example sketches and initial documentation for the pySpacebrew library. This library, which was contributed by Adam Mayer, makes it easy to connect pythons scripts and applications to Spacebrew. You can download the library and example scripts from github. Check-out the readme file and the examples to get up and running quickly.

Similar to the Spacebrew.js and ofxSpacebrew libraries, we’ve included four example sketches in the pySpacebrew repo. One for each of the three standard data types and the fourth one featuring a custom data type. These core examples will be actively maintained along with the library itself. Here is a brief overview of each one.

  • The string example is a simple stripped down chat app
  • The range sketch functions like a console-based slider/potentiometer
  • The boolean script turns the enter/return key into a toggles switch
  • The custom data example functions like a virtual dice

We’ve been using this library for a few months now, especially when working with Raspberry Pis. Here are links to a few other projects and explorations where we’ve used this library. The Raspberry Pi Experiments repo contains sketches that show how to drive LEDs and Servos using a Spacebrew-connect Pi. The Open CV Motion Sensor repo features an advanced client/sensor application that uses cameras to detect motion – this app can be run on a full-fledge computer or a Pi.

Please note that these apps are not maintained actively along with the pySpacebrew library. This means that they may not be using the very latest version of the pySpacebrew library. With that in mind, when creating your own apps make sure to refer to the example sketches and documentation in the library’s own repository.

Try out the pySpacebrew library and send us your feedback.


Viewing all articles
Browse latest Browse all 5

Latest Images

Trending Articles





Latest Images