Skip to main content

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)

Metadata

Release files for azure-databricks-api 0.6.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for azure-databricks-api 0.6.2
File Size Uploaded Provenance
azure-databricks-api-0.6.2.tar.gz 22.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for azure-databricks-api 0.6.2
File Interpreter ABI Platform
azure_databricks_api-0.6.2-py3-none-any.whl Python 3 none any Details

Total release size: 45.9 kB

Release files / azure-databricks-api-0.6.2.tar.gz

Download URL azure-databricks-api-0.6.2.tar.gz
Size 22.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2d1f39787e16083bbe60a15cf24d7dc090e05735d2422d4a2930bdf347077e11
BLAKE2b-256 checksum
How to use checksums
580c27ec7e19163133e146373b960e2a1507800f88bf1e013a6c392a6d688a53
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / azure_databricks_api-0.6.2-py3-none-any.whl

Download URL azure_databricks_api-0.6.2-py3-none-any.whl
Size 23.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
db2f526e9863d61fbfb569895156961bed5758772bd9bad2fd1be39bc382dd54
BLAKE2b-256 checksum
How to use checksums
7a93f1d8a6c9505f884ecdcb89a2f2be6cbd286a0d12e542df6b18ed280e3521
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for azure-databricks-api 0.6.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page