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.

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.

Source Distribution

mebo-0.1.0b1.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

mebo-0.1.0b1-py3-none-any.whl (19.7 kB view details)

Uploaded Python 3

File details

Details for the file mebo-0.1.0b1.tar.gz.

File metadata

  • Download URL: mebo-0.1.0b1.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for mebo-0.1.0b1.tar.gz
Algorithm Hash digest
SHA256 e32be34d6a665bbedd97f5ce3b19b45c126dc35a3aa7bc429daad197c40ce83d
MD5 dee2a954a60ad8811440bbb8ee11cb30
BLAKE2b-256 c79b7502c3214187fd45abb24524f9b51b3a7bad5cb5df5535bca1f6a5778e98

See more details on using hashes here.

File details

Details for the file mebo-0.1.0b1-py3-none-any.whl.

File metadata

  • Download URL: mebo-0.1.0b1-py3-none-any.whl
  • Upload date:
  • Size: 19.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for mebo-0.1.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 e8e519f0705348a081df1d3360bd593c73e9f6acc558de1ec4010a59cd78e1e8
MD5 0dff33daae42ccb1dd2c6c9aedb39b8f
BLAKE2b-256 ff33ffb8d29d06bc0182a832e09b4873cfca1de316ec85d6bdcf096086d4f5d2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page