A Python library created to easily use the Databricks services REST API with Python.
The library can be installed using pip:
pip install dbrest
To add the library to your Python project, use the following line:
import dbrest
To connect to the Azure databricks REST API, you need to have a Microsoft account with databricks seriives that has access to API REST Services and an Azure Databricks application. With all that, you can connect to the Databricsk REST API using the following function:
dbrest.connect(
domain = [domain (required)],
username = [username (no mandatory)],
password = [password (no mandatory)],
bearer = [bearer (required)]
)
As an example, here's how you can get a list of all the queries using the databricsk restful services:
dbrest.retrieve_a_list_of_queries()
As an example, here's how you can Start the databricks cluster using the REST call.
dbrest.cluster_start(cluster_id)
Sai Krishna Cheruvu - Reachout me Linkedin
This project is licensed under the MIT License - see the LICENSE.md file for details