Skip to main content

databricks-workspace-tool

dwt is a tool to clear run cells from notebooks, for example where there might be concern about data held in run cells, or as preparation for commit to source control.

You can also use it to import/export multiple notebooks with this capability, in use cases where dbc export may not be possible due to volume limits.

Commands

Command Sub-Command Parameters Description
list notebooks List all notebooks in workspace.
list libraries List all libraries in workspace.
export notebooks path: location to output zip of notebooks Exports all notebooks from a workspace as base64 source code. The process will remove annotations for run cells
import notebooks path: location of notebooks.zip
import_prefix: folder to import into (default: IMPORT)
Import notebooks into workspace.
clean folders Delete all empty folders in workspace.
clean notebooks Remove annotations for run cells from all notebooks in workspace.

Installation

In a python 3.7 environment install this repository, e.g:
pip install git+https://github.com/frogrammer/fire-commands.git
The tool can be installed to an azure cloud shell.

Databricks Workspace Login

The dwt CLI is built using the databricks CLI sdk https://github.com/databricks/databricks-cli, and uses its authentication mechanism to login to a workspace.
To login to an azure databricks workspace using a user token:

echo MY_TOKEN >> token.txt
databricks configure --host MY_HOST -f token.txt
rm token.txt 

Metadata

Release files for databricks-workspace-tool 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for databricks-workspace-tool 0.1.4
File Size Uploaded
databricks-workspace-tool-0.1.4.tar.gz 4.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for databricks-workspace-tool 0.1.4
File Interpreter ABI Platform
databricks_workspace_tool-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 15.7 kB

Release files / databricks-workspace-tool-0.1.4.tar.gz

Download URL databricks-workspace-tool-0.1.4.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8777951aedebb41324dbb43a64f89c0f8a267b6a1628bf7a475c5e210fffa059
BLAKE2b-256 checksum
How to use checksums
8cd08620cccd92a16daf0cc9c6790c9891552d60a2840b12f17dc1eec46d9b4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/50.3.1.post20201107 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

Release files / databricks_workspace_tool-0.1.4-py3-none-any.whl

Download URL databricks_workspace_tool-0.1.4-py3-none-any.whl
Size 10.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
247a2c39cc2949ee318c159932e6256776b2eec8b95f33bbfae05d53f6194585
BLAKE2b-256 checksum
How to use checksums
655ef887da39cb0ee37ddfd4bd0247091f5c7e88649b39a7b7c54ff17637f624
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/50.3.1.post20201107 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page