Pyluos lets you easily connect, interact and program your luos based devices.
The API was designed to be as simple as possible and let you focus on bringing life to your ideas!
Read the complete documentation of pyluos.
pip install pyluos
pip install --pre pyluos
git clone https://github.com/Luos-io/pyluos
Pyluos is a pure-python library and works with Python >= 2.7 or 3.4 and later.
Pyluos API was designed to be as simple as possible so you can directly focus on the application you want to make!
Connecting to your device is really easy. It actually takes only two lines of code.
from pyluos import Device
device = Device('my_robot_hostname.local')
from pyluos import Device
device = Device('my_serial_port')
If you don't know how to find the name of the usb/wifi gate you are using, you can report to the section Finding a gate.
If you don't know the name of a gate, you can easily find it using the pyluos-usb-gate
and pyluos-wifi-gate
command line utilities.
There should be automatically installed when you install Pyluos. They should be available in your path. From the terminal, you can run:
pyluos-wifi-gate discover
This will show the name of the wifi gate connected on the same WiFi. This uses the Zeroconf protocol.
Make sure to use either the IP or the hostname.local for WiFi gates.
Similarly, to find the name of the USB gate connected to your machine you can run:
pyluos-usb-gate discover
You can then uses the found name to connect to it via Pyluos:
from pyluos import Device
device = Device('/dev/cu.usbmodem2964691')
Pyluos is developed by Luos with the support of Pollen Robotics.
Pyluos still needs lots of usage and testing to help it become more useful and reliable. If you are actively using Pyluos, have suggestion or comments please let us know!
Do not hesitate to share your experience with Pyluos our meet other luos users on our forum!
Pyluos is licensed under the MIT license.