A python toolkit to evaluate, validate, and debug Azure Data Factory & Microsoft Fabric pipeline expressions with rich tracing.
Project description
Evaluate expressions without the need of pipelines.
fabrix is a Python toolkit to evaluate, validate, and debug Microsoft Fabric / Azure Data Factory pipeline expressions. It helps you test expressions locally, manage variables & parameters, and visualize execution with rich tracing.
⚠️ This project is still in progress. Expect changes and new features soon.
Documentation: https://github.com/luanee/fabrix/wiki Source Code: https://github.com/luanee/fabrix
Features
- Parse & evaluate Fabric/ADF expressions locally
- Manage variables, pipeline parameters, and scope values
- Validate syntax: unmatched brackets, wrong quotes, unknown functions
- Debug with beautiful Rich tree traces
- Extend with your own custom functions via a registry
Requirements
⚙️ Installation
pip install fabrix
🚀 Usage
from fabrix import Context, Expression, evaluate, run
# Create a context with parameters & variables
ctx = Context(
pipeline_parameters={
"myNumber": 42,
},
variables={
"greeting": "hello",
},
)
# Simple expression
result = evaluate("@concat('Answer is: ', string(pipeline().parameters.myNumber))", ctx)
print(result) # Answer is: 42
# With variable assignment
expr = Expression(expression="@toUpper(variables('greeting'))", variable="shout")
evaluate(expr, context=ctx)
print(ctx.variables["shout"]) # HELLO
run(expr, context=ctx, show_output=True) # see output below
🗺️ Roadmap
- Add more Fabric/ADF built-in functions
- Improve error messages with fuzzy suggestions
- Advanced type checking for function arguments
- VS Code extension with syntax highlighting & validation
- Better documentation and tutorials
- Publish first stable release on PyPI
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fabrix-0.5.0.tar.gz.
File metadata
- Download URL: fabrix-0.5.0.tar.gz
- Upload date:
- Size: 21.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f5a796c58932ac6712f003098b25a95c1e97bd230303aab0cb6b73a5d1b9f36
|
|
| MD5 |
70d2fa8a34db03c48276168f333eda52
|
|
| BLAKE2b-256 |
81ac5061dfa2b4ea6256d0d350827aad2ead9a39a8ce298e26da4897dbcc9164
|
Provenance
The following attestation bundles were made for fabrix-0.5.0.tar.gz:
Publisher:
publish.yml on Luanee/fabrix
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fabrix-0.5.0.tar.gz -
Subject digest:
6f5a796c58932ac6712f003098b25a95c1e97bd230303aab0cb6b73a5d1b9f36 - Sigstore transparency entry: 460779889
- Sigstore integration time:
-
Permalink:
Luanee/fabrix@2ef4625fb540960505453010ccf1510816742e70 -
Branch / Tag:
refs/tags/0.5.0 - Owner: https://github.com/Luanee
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2ef4625fb540960505453010ccf1510816742e70 -
Trigger Event:
release
-
Statement type:
File details
Details for the file fabrix-0.5.0-py3-none-any.whl.
File metadata
- Download URL: fabrix-0.5.0-py3-none-any.whl
- Upload date:
- Size: 24.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dae4265d91ab105ad22937e24883ad5e07b762e5480feace96c530f7f431e31c
|
|
| MD5 |
fb3326f4567e5b8cd03e097db031001c
|
|
| BLAKE2b-256 |
a8746c1b0702a2d9a178d567074d02abe4e39e3f49fba209e192091cf6823b36
|
Provenance
The following attestation bundles were made for fabrix-0.5.0-py3-none-any.whl:
Publisher:
publish.yml on Luanee/fabrix
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fabrix-0.5.0-py3-none-any.whl -
Subject digest:
dae4265d91ab105ad22937e24883ad5e07b762e5480feace96c530f7f431e31c - Sigstore transparency entry: 460779953
- Sigstore integration time:
-
Permalink:
Luanee/fabrix@2ef4625fb540960505453010ccf1510816742e70 -
Branch / Tag:
refs/tags/0.5.0 - Owner: https://github.com/Luanee
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2ef4625fb540960505453010ccf1510816742e70 -
Trigger Event:
release
-
Statement type: