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

Uploaded Source

Built Distribution

dbx_utils-0.3.1-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dbx_utils-0.3.1.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for dbx_utils-0.3.1.tar.gz
Algorithm Hash digest
SHA256 d8ce5bbc5032c84a995634314cc3562afd0f6fa76f4078762d07dd48e8e11f26
MD5 420476365d8de5976d559ba01b234f3a
BLAKE2b-256 d9fa251d2c5996dba7f382dc2e3bf1a1d0d1fac4eafb8b8b7e4780f764f745b7

See more details on using hashes here.

File details

Details for the file dbx_utils-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: dbx_utils-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for dbx_utils-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 44f30412375c5197496330e4615b6ed2138adc5f9ebef35f673fd9792b76ea2e
MD5 edc695c5e56e1d74218869049cc4b4c2
BLAKE2b-256 4db5332962a77b5065027091e915d7b98040f0027bfeb4b803b73c5ac89ed293

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