A utility package for managing Databricks folders and permissions
Project description
dbx_utils
dbx_utils
is a Python package for managing folders and permissions in Databricks workspaces.
Installation
pip install dbx_utils
Usage
Creating a Folder
from dbx_utils import create_databricks_folder
url = 'https://your-databricks-url'
token = 'your-databricks-token'
folder_path = '/example-folder'
folder_id = create_databricks_folder(url, token, folder_path)
print(f"Created folder ID: {folder_id}")
Setting Folder Permissions
from dbx_utils import set_folder_permissions
url = 'https://your-databricks-url'
token = 'your-databricks-token'
folder_id = 'your-folder-id'
set_folder_permissions(url, token, folder_id)
Getting a Folder ID
from dbx_utils import get_databricks_folder_id
url = 'https://your-databricks-url'
token = 'your-databricks-token'
folder_path = '/example-folder'
folder_id = get_databricks_folder_id(url, token, folder_path)
print(f"Folder ID: {folder_id}")
List of dependencies.
- requests
- databricks-api
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
dbx_utils-0.3.0.tar.gz
(1.5 kB
view details)
File details
Details for the file dbx_utils-0.3.0.tar.gz
.
File metadata
- Download URL: dbx_utils-0.3.0.tar.gz
- Upload date:
- Size: 1.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7b8d5aaffabca6546774e25d3e811ec5c609f3c47782127ea2b0c08e7e11872 |
|
MD5 | c44735d62ea6c9bced97bd09b56df07b |
|
BLAKE2b-256 | 28ff79c0ce88b3b99a887ccfa597ec54bfb00e38e530403d786d0a32a47a607b |