Skip to main content

Simple python interface to control the mebo toy robot

Project description

mebo

Mebo is a python package to control the Mebo Robot with Python. It is currently in active development, so there might be breaking changes. Some basic usage is defined below, but more extensive documentation is available at ReadTheDocs.

Note

This project is not associated with the official Mebo project or its owners, Skyrocket LLC.

Note

This package and the associated modules have been tested on Mebo version 1 only.

Installation

pip install mebo

Quickstart

Some basic usage is below. The API will change and limited documentation exists, but it works for getting started.

from mebo import Mebo
m = Mebo(auto_connect=True) # discover and connect automatically!
m.move('n', speed=255, dur=1000)  # move forward at max speed for 1 second
m.arm.up(dur=1000) # move the arm up for one second
m.claw.open(dur=1000) # open the claw for one second

Development

Requirements:

  • python >= 3.6

To get started with the project:

git clone https://github.com/crlane/python-mebo.git
python -m venv mebo-venv
. mebo-venv/bin/actvate
pip install -r requirements.txt
pip install -e .

To run the tests:

pip install -r test_requirements.txt
py.test

Todo

  • [ ] Cleaner API (better subclasses, kwargs for component methods, no metaprogramming)
  • [ ] Clean up kwargs inconsistency
  • [ ] Better documentation
  • [ ] Better tests
  • [ ] Media stream (multithreading or asyncio, http with <video> tag)

Project details


Download files

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

Files for mebo, version 0.1.0b1
Filename, size File type Python version Upload date Hashes
Filename, size mebo-0.1.0b1-py3-none-any.whl (19.7 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size mebo-0.1.0b1.tar.gz (17.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page