Registry / data / dbl-discoverx

dbl-discoverx

JSON →
library0.0.9pypypiunverified

DiscoverX is a Python library developed under Databricks Labs, designed as a "Swiss-Army-knife" for Lakehouse administration. It automates tasks like inspecting and operating on a large number of Lakehouse assets, particularly through multi-table operations with SQL templates. The current version is 0.0.9, released on May 2, 2025. It is provided for exploration and is not formally supported by Databricks with Service Level Agreements (SLAs).

pip install dbl-discoverx
INSTALL
IMPORT
SIG · DBL-DISCOVERX
D
dbl-discoverx
datapythonv0.0.9
Install
1.7s avg
Import
Disk
19MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.0.9 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.920 runs
installs and imports cleanly · install 0.0s · import 0.000s · 20.2MB
glibc
py 3.103.920 runs
installs and imports cleanly · install 1.7s · import 0.000s · 21MB
19MB installed
● package 19MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

DX
from discoverx import DX
from discoverx import DX

This quickstart demonstrates how to initialize DiscoverX, define a set of tables using a wildcard pattern, and then apply a SQL template (counting rows) concurrently across all matching tables in a Databricks environment.

from discoverx import DX # Initialize DiscoverX. 'locale' can be set for region-specific rules. dx = DX(locale="US") # Define the tables to operate on using a wildcard pattern # Example: all tables in 'my_catalog.my_schema' from_tables = "my_catalog.my_schema.*" # Example: Count rows in all selected tables and display the results # The '{full_table_name}' placeholder is automatically replaced. table_counts = dx.from_tables(from_tables).with_sql("SELECT COUNT(*) FROM {full_table_name}").apply() # Display the resulting DataFrame table_counts.display()
Debug
Known issues
breakingDiscoverX is a Databricks Labs project and is provided "AS-IS" without formal Service Level Agreements (SLAs). Issues should be filed as GitHub Issues and will be reviewed as time permits.
fix
Be aware of the experimental nature; do not rely on it for critical production workloads without internal support.
affects: All versions
deprecatedThe `scan` command has been deprecated. Users should migrate to `intro` or `scan (experimental)` for semantic classification and other scanning functionalities.
fix
Replace `.scan(...)` with `.intro()` for general overview or `.scan(experimental=True, ...)` for detailed scanning.
affects: 0.0.9 and earlier
gotchaWhen installing `dbl-discoverx` within a Databricks notebook using `%pip install`, it is often necessary to restart the Python kernel (`dbutils.library.restartPython()`) for the newly installed package to be properly loaded and available.
fix
Always follow `%pip install dbl-discoverx` with `dbutils.library.restartPython()` in Databricks notebooks.
affects: All versions in Databricks notebooks
gotchaOn Databricks Runtime 15.4 LTS and above, regular expression handling in Photon is updated to match Apache Spark behavior. Previously accepted invalid regex patterns in `with_sql` commands might now cause queries to fail.
fix
Ensure all regex patterns used in `with_sql` or similar operations are strictly valid according to Apache Spark's regular expression syntax.
affects: Databricks Runtime 15.4 LTS and above
Upgrade
Version history
0.0.9latest on PyPI · released May 2, 2025
Audit
Dependencies
pysparkrequiredCore dependency for Databricks Lakehouse operations.
pandasrequiredRequired for data manipulation and DataFrame operations. PyPI specifies <2.0.0,>=1.0.0.
numpyrequiredRequired for numerical operations. PyPI specifies <1.24.0,>=1.16.0.
Agent activity
18 hits · last 30 days
node
16
OpenAI (training)
1
Resources
dbl-discoverx — pip install dbl-discoverx · libregistry