Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Python framework for robotics and physical computing.

Project Description

Zorg is a Python framework for robotics and physical computing. It is based on Cylon.js, a JavaScript framework for robotics.

Getting started

Installation

All you need to get Zorg up and running is the zorg package:

pip install zorg

You may need to `copy the source <https://github.com/gunthercox/zorg/archive/master.zip>`__ if your device does not support `pip <https://pip.pypa.io/en/stable/>`__.

You should also install the packages for the hardware you are looking to support. In our examples, we will be using the Intel Edison and an LED, so we need the edison and gpio packages:

pip install zorg-gpio zorg-edison

Examples

Intel Edison and an LED

This example controls an LED connected to the Intel Edison and blinks it once every 500 milliseconds. This program should be run on the Intel Edison itself.

import zorg

def work (my):
    while True:
        # Toggle the LED
        my.led.toggle()

        # Wait 100ms before doing it again
        time.sleep(0.1)

robot = zorg.robot({
    "connections": {
        "edison": {
            "adaptor": "zorg_edison.Edison",
        },
    },
    "devices": {
        "led": {
            "connection": "edison",
            "driver": "zorg_gpio.Led",
            "pin": 13, # 13 is the on-board LED
        }
    },
    "name": "example", # Give your robot a unique name
    "work": work, # The method (on the main level) where the work will be done
})
Release History

Release History

This version
History Node

0.0.5

History Node

0.0.4

History Node

0.0.3

History Node

0.0.2

History Node

0.0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
zorg-0.0.5-py2-none-any.whl (9.0 kB) Copy SHA256 Checksum SHA256 2.7 Wheel Oct 3, 2016
zorg-0.0.5.tar.gz (6.8 kB) Copy SHA256 Checksum SHA256 Source Oct 3, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting