A Python SDK for the Azure Databricks REST API 2.0.
Project description
Azure Databricks SDK for Python
A Python SDK for the Azure Databricks REST API 2.0
Install
You can install the package using pip:
pip install azure-databricks-sdk-python
Usage
from azure_databricks_sdk_python import Client
client = Client(databricks_instance="<instance>", personal_access_token="<token>")
Examples
How to create a cluster
You can use the defined types:
from azure_databricks_sdk_python.types.clusters import AutoScale, ClusterAttributes
spark_conf = {'spark.speculation': True}
autoscale = AutoScale(min_workers=0, max_workers=1)
attributes = ClusterAttributes(cluster_name="my-cluster",
spark_version="7.2.x-scala2.12",
node_type_id="Standard_D3_v2",
spark_conf=spark_conf,
autoscale=autoscale)
created_id = client.clusters.create(attributes)
or, you can force an API request with a dict:
attributes = {
'cluster_name': 'my-cluster',
'spark_version': '7.2.x-scala2.12',
'node_type_id': 'Standard_D3_v2',
'spark_conf': {
'spark.speculation': True
},
'num_workers': 1
}
created_id = client.clusters.create(attributes, force=True)
Implementation Progress
Please refer to the progress below:
API | Progress |
---|---|
Clusters API | 80% |
Clusters Policies API | 0% |
DBFS API | 0% |
Groups API | 0% |
Instance Pools API | 0% |
Jobs API | 0% |
Libraries API | 0% |
MLflow API | 0% |
Permissions API | 0% |
SCIM API | 0% |
Secrets API | 0% |
Token API | 100% ✔ |
Token Management API | 0% |
Workspace API | 0% |
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
Close
Hashes for azure-databricks-sdk-python-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46ecb44a69bccd1b39170c361410320b2d68d61c0cdacace6f416573863b8e91 |
|
MD5 | 4548467344cee33f815a332b3c413960 |
|
BLAKE2b-256 | f796e98a4af13f65f552209e09f8bbbf8acfc4b61cfd690ad51d662f02d9be1f |
Close
Hashes for azure_databricks_sdk_python-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c05037a3a1e66fdc174729853dfd02499e86edc426a3ca884382207bc6dd386f |
|
MD5 | 0f5d49519da01bc4879f771427fc123f |
|
BLAKE2b-256 | ab53efa2a119e2f5856269a22108b0272bdbe7b0d79a09b4aa631fbce1088ca0 |