A wrapper for the Azure Databricks REST API
Project description
Azure Databricks API Wrapper
A Python, object-oriented wrapper for the Azure Databricks REST API 2.0
Installation
This package is pip installable.
pip install azure-databricks-api
Implemented APIs
As of June 25th, 2020 there are 12 different services available in the Azure Databricks API. Currently, the following services are supported by the Azure Databricks API Wrapper.
- Clusters
- Cluster Policies (Preview)
- DBFS
- Groups (Must be Databricks admin)
- Instance Pools
- Jobs
- Libraries
- MLflow
- SCIM (Preview)
- Secrets
- Token
- Workspace
Client Instantiation
To create the client object, you pass the Azure region your workspace is located in and the generated Personal Access Token
from azure_databricks_api import AzureDatabricksRESTClient
azure_region = '[INSERT YOUR AZURE REGION HERE]'
token = '[INSERT YOUR PERSONAL ACCESS TOKEN]'
client = AzureDatabricksRESTClient(region=azure_region, token=token)
Clusters Client Usage
The services above are implemented as children objects of the client. For example, to pin a cluster, you can either pass the cluster_name or cluster_id to the pin() method:
client.clusters.pin(cluster_name='test_cluster_name')
The other services are implemented similarly. (e.g. client.tokens or client.groups)
Project details
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file azure-databricks-api-0.6.2.tar.gz.
File metadata
- Download URL: azure-databricks-api-0.6.2.tar.gz
- Upload date:
- Size: 22.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d1f39787e16083bbe60a15cf24d7dc090e05735d2422d4a2930bdf347077e11
|
|
| MD5 |
ed48e49e11c53cd5480d3701249fd901
|
|
| BLAKE2b-256 |
580c27ec7e19163133e146373b960e2a1507800f88bf1e013a6c392a6d688a53
|
File details
Details for the file azure_databricks_api-0.6.2-py3-none-any.whl.
File metadata
- Download URL: azure_databricks_api-0.6.2-py3-none-any.whl
- Upload date:
- Size: 23.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db2f526e9863d61fbfb569895156961bed5758772bd9bad2fd1be39bc382dd54
|
|
| MD5 |
8f3ec3dd33d30096503439f20f27e6bc
|
|
| BLAKE2b-256 |
7a93f1d8a6c9505f884ecdcb89a2f2be6cbd286a0d12e542df6b18ed280e3521
|