Normalized Schema Generator
An anywidget-based Jupyter widget for Microsoft Fabric notebooks that visually configures a normalized schema JSON config for Process Mining data import.
Replaces manual JSON authoring by providing dropdowns, toggles, and inline forms to select lakehouses, tables, columns, and FK/PK relationships, then auto-generates the dataSource section of the config.
Install
pip install normalized-schema-generator
Usage
In a Fabric notebook
from normalized_schema_generator import NormalizedSchemaWidget
w = NormalizedSchemaWidget()
w
The widget auto-detects the Fabric environment and populates lakehouses, tables, and columns using notebookutils and Spark.
For schema-enabled lakehouses, it uses the OneLake Delta metadata API
to discover schemas, tables, and columns. This works even when the notebook's
default lakehouse uses the legacy Spark catalog. Authentication uses the current
notebook identity via notebookutils.credentials.getToken("storage"); no extra
credentials are required. That identity must have permission to read the selected
lakehouse's tables. Discovery errors are shown in the widget instead of appearing
as an empty table list.
After configuring your schema, retrieve the generated JSON:
print(w.config_json)
Local development
Outside Fabric, the widget uses mock data automatically — no notebookutils or Spark needed:
pip install normalized-schema-generator jupyterlab
jupyter lab
Features
- Lakehouse selection from the current workspace, including schema-enabled lakehouses
- Data source toggle: Delta Tables or Files (CSV / Parquet)
- Events table (required): column checklist with data type badges, include/exclude toggles
- Cases table (optional): same column management, with required Events-to-Cases FK relationship
- Reference management: add/edit/remove FK joins to lookup tables, with target column selection
- Auto-generated JSON: full
inputDataBindingconfig withdataSource, connection properties, and dataset definitions - Copy to clipboard for the generated JSON
- Fluent 2 styling matching the Fabric design language
JSON output
The widget generates a complete normalized import config following the Process Mining Normalized Import specification:
dataSourceSchemaType: 1(Normalized)dataSourceType: 2(OneLake)- Proper
datasets[]with Kind 0 (Event), 1 (Case), 2 (Join) - FK columns excluded from
Columns[](exposed viaJoin[].ExportName) - No nested joins on lookup datasets
License
MIT
Metadata
Release files for normalized-schema-generator 0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| normalized_schema_generator-0.4.1.tar.gz | 22.8 kB | Without provenance | Details for normalized_schema_generator-0.4.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| normalized_schema_generator-0.4.1-py3-none-any.whl | Python 3 | none | any | Details for normalized_schema_generator-0.4.1-py3-none-any.whl |
Total release size: 44.5 kB
Release files / normalized_schema_generator-0.4.1.tar.gz
| Download URL | normalized_schema_generator-0.4.1.tar.gz |
|---|---|
| Size | 22.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
096e8b180b39f20cf38eaae1f260f9088de8037ef45f4f4af6801486217cba6b
|
|
BLAKE2b-256 checksum How to use checksums |
474f794b69d26d367a2bde8d5edd5c7086d392675327c23b923b8cb3585e6992
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.10
|
Release files / normalized_schema_generator-0.4.1-py3-none-any.whl
| Download URL | normalized_schema_generator-0.4.1-py3-none-any.whl |
|---|---|
| Size | 21.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
56ac638a37f6a34042d99ea995976f63fba7319e2a9a242312d745efaecd32ca
|
|
BLAKE2b-256 checksum How to use checksums |
42ee3413cac7e6c04f02dfeb76da709121edcce578277ab8c50c654d26c8e3d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.10
|
Security for normalized-schema-generator 0.4.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.