Automate Databricks workspace management β clusters, jobs, secrets, Unity Catalog, and permissions.
Stop clicking through the UI. Manage your entire Databricks workspace programmatically with production-ready Python wrappers around the Databricks REST APIs.
databricks-workspace-toolkit/
βββ README.md
βββ manifest.json
βββ LICENSE
βββ src/
β βββ workspace_manager.py # Notebook CRUD, import/export
β βββ cluster_manager.py # Cluster lifecycle, pools, policies
β βββ job_manager.py # Jobs API: create, run, notifications
β βββ secret_manager.py # Secret scopes and ACLs
β βββ unity_catalog_setup.py # UC bootstrap: catalogs, schemas, grants
β βββ permissions_manager.py # RBAC for workspace resources
βββ configs/
β βββ cluster_policies.json # Cost control cluster policies
β βββ workspace_config.yaml # Environment configuration
β βββ job_templates/
β βββ etl_job.json # Multi-task ETL pipeline job
β βββ ml_training_job.json # ML training with GPU cluster
βββ scripts/
β βββ setup_workspace.sh # Bootstrap workspace setup
β βββ export_workspace.sh # Backup notebooks and configs
βββ notebooks/
β βββ admin_dashboard.py # Admin overview dashboard
βββ guides/
βββ workspace-management.md # Best practices guide
Follow this guide to get databricks workspace toolkit up and running in your environment.
# configs/workspace_config.yaml
workspace:
host: "https://adb-1234567890.12.azuredatabricks.net"
token_env_var: "DATABRICKS_TOKEN"from src.cluster_manager import ClusterManager
mgr = ClusterManager.from_config("configs/workspace_config.yaml")
cluster_id = mgr.create_cluster(
name="etl-cluster-prod",
node_type_id="Standard_DS3_v2",
num_workers=4,
auto_terminate_minutes=30,
spark_conf={"spark.sql.shuffle.partitions": "200"},
)from src.job_manager import JobManager
mgr = JobManager.from_config("configs/workspace_config.yaml")
job_id = mgr.create_job_from_template("configs/job_templates/etl_job.json")
mgr.run_now(job_id) ββββββββββββββββββββββββββββββββββββββββββββ
β Databricks Workspace β
β ββββββββββ ββββββββββ βββββββββββββββ β
β βClustersβ β Jobs β βUnity Catalogβ β
β βββββ¬βββββ βββββ¬βββββ ββββββββ¬βββββββ β
β β β β β
β βββββ΄βββββββββββ΄ββββββββββββββ΄ββββ β
β β Databricks REST APIs β β
β βββββββββββββββββ¬βββββββββββββββββ β
ββββββββββββββββββββΌβββββββββββββββββββββββ
β
ββββββββββββββββββββΌβββββββββββββββββββββββ
β Workspace Toolkit (this product) β
β ββββββββββββ βββββββββββ βββββββββββ β
β β Cluster β β Job β β Unity β β
β β Manager β β Manager β β Catalog β β
β ββββββββββββ βββββββββββ βββββββββββ β
β ββββββββββββ βββββββββββ βββββββββββ β
β βWorkspace β β Secret β β Perms β β
β β Manager β β Manager β β Manager β β
β ββββββββββββ βββββββββββ βββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββ
Get the full Databricks Workspace Toolkit and unlock everything.
Get the complete guide with every chapter unlocked, including code samples, diagrams, and best practices.
Access all interactive tools with complete data, all workload profiles, and the full scenario library.
Downloadable source code, configuration files, and working examples from every chapter.
Free updates for life. Every new chapter, tool, and improvement included.