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 September 19th, 2018 there are 9 different services available in the Azure Databricks API. Currently, the following services are supported by the Azure Databricks API Wrapper.
- Clusters
- Groups
- Token
- Workspace
- DBFS
- Jobs
- Libraries
- Secrets
- SCIM (Preview)
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 = 'centralus'
token = '[INSERT YOUR PERSONAL ACCESS TOKEN]'
client = AzureDatabricksRESTClient(region=azure_region, token=token)
Clusters Client Usage
The services above are implements as children objects of the client. For example, to pin a cluster, you can either pass the cluster_name or cluster_id:
client.clusters.pin('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 Distributions
Built Distribution
Hashes for azure_databricks_api-0.6.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 618108c2c509b02cd4da62ba1336602ef60960b95415defe7b04efb5dc69452c |
|
MD5 | 0a5895051f90e8a7e68dc0c195ab0bcc |
|
BLAKE2b-256 | 24a8abf2df31b87f1af324fe63606f10032470b36e463a6069644ee32670eb06 |