# Misty Python API

This section contains all of the Misty's Python API calls with example codes and parameters for Misty's Python Interface.

Misty's Python library is designed to directly use the API that Misty already hosts, acting as an API client for Misty. This API client is generated by interrogating Misty's API, and producing Python code as a result. The actual generator script can be found here on [Github](https://github.com/MistyCommunity/Python-SDK), and is the best place to start if you want to control Misty from another device. The generator has several dependencies, which can be seen in the setup.py script. The method used to generate the API client is really straightforward and could be replicated in other programming languages without much difficulty.&#x20;

### Contents

{% content-ref url="misty-python-api/motion-and-mobility" %}
[motion-and-mobility](https://lessons.mistyrobotics.com/python-elements/misty-python-api/motion-and-mobility)
{% endcontent-ref %}

{% content-ref url="misty-python-api/display-and-led" %}
[display-and-led](https://lessons.mistyrobotics.com/python-elements/misty-python-api/display-and-led)
{% endcontent-ref %}

{% content-ref url="misty-python-api/record-assets" %}
[record-assets](https://lessons.mistyrobotics.com/python-elements/misty-python-api/record-assets)
{% endcontent-ref %}

{% content-ref url="misty-python-api/change-remove-assets" %}
[change-remove-assets](https://lessons.mistyrobotics.com/python-elements/misty-python-api/change-remove-assets)
{% endcontent-ref %}

{% content-ref url="misty-python-api/stream-assets" %}
[stream-assets](https://lessons.mistyrobotics.com/python-elements/misty-python-api/stream-assets)
{% endcontent-ref %}

{% content-ref url="misty-python-api/get-assets" %}
[get-assets](https://lessons.mistyrobotics.com/python-elements/misty-python-api/get-assets)
{% endcontent-ref %}

{% content-ref url="../blockly-elements/misty-blocks/events" %}
[events](https://lessons.mistyrobotics.com/blockly-elements/misty-blocks/events)
{% endcontent-ref %}

{% content-ref url="misty-python-api/sensor-events" %}
[sensor-events](https://lessons.mistyrobotics.com/python-elements/misty-python-api/sensor-events)
{% endcontent-ref %}

{% content-ref url="misty-python-api/speech-and-nlp" %}
[speech-and-nlp](https://lessons.mistyrobotics.com/python-elements/misty-python-api/speech-and-nlp)
{% endcontent-ref %}

{% content-ref url="misty-python-api/arduino-backpack" %}
[arduino-backpack](https://lessons.mistyrobotics.com/python-elements/misty-python-api/arduino-backpack)
{% endcontent-ref %}

{% content-ref url="misty-python-api/system" %}
[system](https://lessons.mistyrobotics.com/python-elements/misty-python-api/system)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://lessons.mistyrobotics.com/python-elements/misty-python-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
