> ## Documentation Index
> Fetch the complete documentation index at: https://docs.firebolt.io/llms.txt
> Use this file to discover all available pages before exploring further.

> Learn about using the Python SDK for Firebolt.

# Python

You can use the [Python SDK](https://github.com/firebolt-db/firebolt-python-sdk/) to work with Firebolt.

## Prerequisites

* Python >=3.10
* `firebolt-sdk` version 1.18.3 or higher

## Installation

```shell theme={"theme":{"light":"css-variables","dark":"css-variables"}}
pip install "firebolt-sdk>=1.18.3"
```

## Connect to managed Firebolt

```python theme={"theme":{"light":"css-variables","dark":"css-variables"}}
from firebolt.db import connect
from firebolt.client.auth import ClientCredentials

with connect(
        auth=ClientCredentials(client_id, client_secret),
        account_name="your_account",
        database="your_database",
        engine_name="your_engine"
) as connection:
    cursor = connection.cursor()
    cursor.execute("SELECT 1")
```

## Further reading

* [Firebolt Python SDK documentation](https://python.docs.firebolt.io/sdk_documentation/latest/)
* The [firebolt-python-sdk repository on GitHub](https://github.com/firebolt-db/firebolt-python-sdk/)
* Code examples (in Jupyter notebooks) in the SDK repository that demonstrate common [data tasks](https://github.com/firebolt-db/firebolt-python-sdk/blob/main/examples/dbapi.ipynb) and [management tasks](https://github.com/firebolt-db/firebolt-python-sdk/blob/main/examples/management.ipynb)
