🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

azure-databricks-api

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

azure-databricks-api

A wrapper for the Azure Databricks REST API

0.6.2
PyPI
Maintainers
1

Azure Databricks API Wrapper

A Python, object-oriented wrapper for the Azure Databricks REST API 2.0

GitHub Workflow Status (branch) Coveralls github PyPI PyPI - Downloads GitHub

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)

Keywords

azure

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts