Skip to main content

Join the chat at https://gitter.im/zorg-framework/zorg

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
})

Metadata

Release files for zorg 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zorg 0.0.5
File Size Uploaded
zorg-0.0.5.tar.gz 6.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for zorg 0.0.5
File Interpreter ABI Platform
zorg-0.0.5-py2-none-any.whl Python 2 none any Details

Total release size: 15.8 kB

Release files / zorg-0.0.5.tar.gz

Download URL zorg-0.0.5.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
6f6b74ac6661d72ea78b4357c5a4b24c163139057abd9ad0896a5d62f27f82a3
BLAKE2b-256 checksum
How to use checksums
b9289a329ca950f9d75b0c4275dc83a90141cb5f290cf88da55be8c17637dd84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / zorg-0.0.5-py2-none-any.whl

Download URL zorg-0.0.5-py2-none-any.whl
Size 9.0 kB
Tags Python 2
SHA-256 checksum
How to use checksums
5da3f0c461dc3695e89b8a48df3c2f96d55425e38c38736b1fe8a5c30345eed4
BLAKE2b-256 checksum
How to use checksums
6ab8e9976a10b59fba7b2a5035306278696f166f6d80125fe8c19268598af2b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page