# Python

Python runtimes include the standard [Python batteries](https://docs.python.org/3/tutorial/stdlib.html), plus additional libraries depending on the selected runtime: `Lite`, `Base`, or `Full`.

{% hint style="info" %}
The heavier the runtime, the longer your UbiFunction takes to execute or update after changes. **We recommend using the `Lite` version unless a heavier runtime is strictly required.**
{% endhint %}

### Lite <a href="#h_5860f0afab" id="h_5860f0afab"></a>

| Library  | Version |
| -------- | ------- |
| requests | 2.32.3  |

### Base <a href="#h_3496c389a7" id="h_3496c389a7"></a>

All libraries included in the `Lite` runtime, plus:

<table><thead><tr><th width="432">Library</th><th>Version</th></tr></thead><tbody><tr><td>pytz</td><td>2024.1</td></tr><tr><td>msgpack</td><td>1.0.8</td></tr><tr><td>httpx</td><td>0.27.0</td></tr><tr><td>aiohttp</td><td>3.9.5</td></tr><tr><td>lxml</td><td>5.2.2</td></tr><tr><td>numpy</td><td>2.0.0</td></tr><tr><td>pandas</td><td>2.2.2</td></tr><tr><td>python-aqi</td><td>0.6.1</td></tr></tbody></table>

### Full <a href="#h_a6f43dab0f" id="h_a6f43dab0f"></a>

{% hint style="success" %}
Only available to [Enterprise license](https://ubidots.com/enterprise) holders and above.
{% endhint %}

All libraries included in the `Base` runtime, plus:

| Library     | Version |
| ----------- | ------- |
| scrapy      | 2.11.2  |
| matplotlib  | 3.9.0   |
| arrow       | 1.3.0   |
| pymongo     | 4.8.0   |
| psycopg     | 3.1.18  |
| pyodbc      | 5.1.0   |
| stripe      | 8.7.0   |
| pytesseract | 0.3.10  |
| holidays    | 0.52    |
| zeep        | 4.2.1   |
| scipy       | 1.14.0  |
| pyod        | 1.1.2   |
| openpyxl    | 3.1.5   |


---

# 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://dev.ubidots.com/ubifunctions/runtimes/python.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.
