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

Uploaded Source

Built Distribution

dbx_utils-0.3.2-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dbx_utils-0.3.2.tar.gz
  • Upload date:
  • Size: 3.0 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.2.tar.gz
Algorithm Hash digest
SHA256 aafb91f0bf1ad3757cd934503f6813760731f286926b28988d6373b7018a8a1d
MD5 a4322031512d13c3e43537da5efedab0
BLAKE2b-256 58bef18b1b694f97e4b77736de84664c7d37be43e391fd170f28bc8e69349359

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dbx_utils-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 3.0 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b1bd193b79cb7cddfd828c65b57015c6f4107536a92509f69fa1924fb435651f
MD5 3ff7aa3b4d471b44ffbd28ea3848bde3
BLAKE2b-256 05716e627da354acf4ffc4c9d466fed04621c3dc20214e8de94f937aa119c42d

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