azure-databricks-api-0.6.2
توضیحات
A wrapper for the Azure Databricks REST API
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | azure-databricks-api-0.6.2 |
| نام | azure-databricks-api |
| نسخه کتابخانه | 0.6.2 |
| نگهدارنده | ['Erik Zwiefel'] |
| ایمیل نگهدارنده | ['erikzw@outlook.com'] |
| نویسنده | Erik Zwiefel |
| ایمیل نویسنده | erikzw@outlook.com |
| آدرس صفحه اصلی | http://github.com/ezwiefel/azure-databricks-api |
| آدرس اینترنتی | https://pypi.org/project/azure-databricks-api/ |
| مجوز | MIT |
# 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)
[](https://github.com/ezwiefel/azure-databricks-api/actions?query=workflow%3A%22Unit+Tests%22)
[](https://coveralls.io/github/ezwiefel/azure-databricks-api)
[](https://pypi.org/project/azure-databricks-api/)
[](https://pypi.org/project/azure-databricks-api/)
[](https://github.com/ezwiefel/azure-databricks-api/blob/main/LICENSE)
### Installation
This package is pip installable.
```bash
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.
* [x] Clusters
* [ ] Cluster Policies _(Preview)_
* [x] DBFS
* [x] Groups _(Must be Databricks admin)_
* [ ] Instance Pools
* [ ] Jobs
* [X] Libraries
* [ ] MLflow
* [ ] SCIM _(Preview)_
* [ ] Secrets
* [x] Token
* [x] 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_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:
```python
client.clusters.pin(cluster_name='test_cluster_name')
```
The other services are implemented similarly. (e.g. `client.tokens` or `client.groups`)
نیازمندی
| مقدار | نام |
|---|---|
| >=2.20.0 | requests |
نحوه نصب
نصب پکیج whl azure-databricks-api-0.6.2:
pip install azure-databricks-api-0.6.2.whl
نصب پکیج tar.gz azure-databricks-api-0.6.2:
pip install azure-databricks-api-0.6.2.tar.gz