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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| zorg-0.0.5.tar.gz | 6.8 kB | Without provenance | Details for zorg-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| zorg-0.0.5-py2-none-any.whl | Python 2 | none | any | Details for zorg-0.0.5-py2-none-any.whl |
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 |
Security for zorg 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.