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](https://docs.azuredatabricks.net/api/latest/index.html)
### Installation
This package is pip installable.
```bash
pip install azure-databricks-cli
```
### Implemented APIs
As of August 10th, 2018 there are 8 different services available in the Azure Databricks API. Currently, the following
services are supported by the Azure Databricks API Wrapper.
* [x] Clusters
* [x] Groups
* [x] Token
* [ ] DBFS
* [ ] Jobs
* [ ] Libraries
* [ ] Secrets
* [ ] Workspace
### Client Instantiation
To create the client object, you pass the Azure region your workspace is located in and the [generated Personal Access Token](https://docs.databricks.com/api/latest/authentication.html#generate-a-token)
```python
from azure_databricks_cli 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:
```python
client.clusters.pin('test_cluster_name')
```
The other services are implemented similarly. (e.g. `client.tokens` or `client.groups`)
A Python, object-oriented wrapper for the [Azure Databricks REST API 2.0](https://docs.azuredatabricks.net/api/latest/index.html)
### Installation
This package is pip installable.
```bash
pip install azure-databricks-cli
```
### Implemented APIs
As of August 10th, 2018 there are 8 different services available in the Azure Databricks API. Currently, the following
services are supported by the Azure Databricks API Wrapper.
* [x] Clusters
* [x] Groups
* [x] Token
* [ ] DBFS
* [ ] Jobs
* [ ] Libraries
* [ ] Secrets
* [ ] Workspace
### Client Instantiation
To create the client object, you pass the Azure region your workspace is located in and the [generated Personal Access Token](https://docs.databricks.com/api/latest/authentication.html#generate-a-token)
```python
from azure_databricks_cli 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:
```python
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 Distribution
Built Distribution
Close
Hashes for azure-databricks-api-0.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | de7e3cd3b5d790dcfaadc4df37cbc37027e1404655bd95168c47260db63bb96c |
|
MD5 | 3f64305d9361c8a121f3cc3fd7e4f54f |
|
BLAKE2b-256 | 1cf7a0f092ff4120dee13c84e3c8ebc1cdf8b9faf642334d4946719431e4c3e2 |
Close
Hashes for azure_databricks_api-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a4ed1d2888b11f9d6385fe5899265f6b5419d01545e548d9a040b546c020804 |
|
MD5 | 613e9ef08acdd2410ebe24b132dfa92a |
|
BLAKE2b-256 | 45f989372f69dcb679a71d25c43b3e4d58f133f859b56408680d54aa774a6e88 |