Bottango Playback Interface
Project description
bottango_playback_interface
Control Bottango through its Web API from python.
This python3.7+ module is made to interface with Bottango, a Hardware/Robot/Animatronics animation software created by Evan McMahon
What is Bottango
Installation
Install through pip with
pip install bottango_playback_interface
Usage
Start by creating your animations with Bottango, enable the Web API and enter the 'Animate' mode
Then from your python script
from bottango_playback_interface import BottangoPlaybackInterface
bpi = BottangoPlaybackInterface("localhost", 59224)
bpi.play_animation("animation_name_to_play")
bpi.wait_animation_done()
Methods
bpi.play_animation("animation_name_to_play") # Plays the animation with the corresponding name
bpi.pause_animation() # Pause the current animation
bpi.resume_animation() # Resume the current animation
bpi.get_playback_state() # Get various informations from bottango
bpi.wait_animation_done(timeout=max_wait_time) # Wait until the animation is over before returning or the timeout runs out.
bpi.get_animation_list() # Returns an array with all available animation names
bpi.emergency_stop() # Turn off live mode from Bottango, must be reenable from there.
Development
git clone this project
Create a new venv
python3 -m venv --system-site-packages ./venv
Source it
source ./venv/bin/activate
Install all dependancies with poetry
poetry install
Install git hooks
pre-commit install
Upload to pypi
Source the venv
source ./venv/bin/activate
Install twine
pip install twine
Config your pypi credentials in the file ~/.pypirc
[pypi]
username = pypi_username
password = pypi_password
Run
poetry install
twine check dist/*
twine upload dist/*
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for bottango_playback_interface-0.4.2.dev2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | dea50d4b1382cc3d08cfc80c10f09d51389204d99577eeb7e9f6a3244e58c38c |
|
MD5 | 986d00e74a398963392d7eb96245a51c |
|
BLAKE2b-256 | 53368ef83ad93740421ca1e6df114d58cebbd283e7a536e2400bb5ddcade9ab0 |
Hashes for bottango_playback_interface-0.4.2.dev2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a4f57adce67f306d1a90f972d5973729ae200884f6bc4e37007c07a86f19cf9 |
|
MD5 | 6c6e3087947b6a818686189300e613b3 |
|
BLAKE2b-256 | d2d5f49d7d18d402f2a886488dd494b554e33f7e78bc1a26b71e00b57911aff1 |