Skip to main content

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.2.0.tar.gz (1.5 kB view details)

Uploaded Source

File details

Details for the file dbx_utils-0.2.0.tar.gz.

File metadata

  • Download URL: dbx_utils-0.2.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

Hashes for dbx_utils-0.2.0.tar.gz
Algorithm Hash digest
SHA256 599bb9cf11305222610be5bdbf9ea34d590141440db401cd0efb4c8d8d6fa555
MD5 958520249ec5664ef9f2d8e4b1534a8d
BLAKE2b-256 aa9e9dad062be0e1d7ef91d92d72233d2f1228db40bf1bcc5cceaafc6cdfc8ce

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page