Skip to main content

fabrix

Evaluate expressions without the need of pipelines.

Package version Supported Python versions

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

  • pydantic for smaller validations
  • rich for beautiful output

⚙️ 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",
        "row_index": 1,
    },
)

# Simple expression
result = evaluate("@concat('Answer is: ', string(pipeline().parameters.myNumber))", ctx)
print(result)  # Answer is: 42

# With variable assignment
expr_1 = Expression(expression="@toUpper(variables('greeting'))", variable="shout")
expr_2 = Expression(expression="@add(variables('row_index'),mul(4,5),add(variables('row_index'),max(4.5,3.9,578.4)))")

run(expr_1, expr_2, context=ctx, show_output=True)  # see output below
print(ctx.variables["shout"])  # HELLO

expression console output

🗺️ 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

Metadata

Release files for fabrix 0.5.1

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

Source distribution (sdist)

Source distribution for fabrix 0.5.1
File Size Uploaded Provenance Actions
fabrix-0.5.1.tar.gz 21.2 kB With provenance Details for fabrix-0.5.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fabrix 0.5.1
File Interpreter ABI Platform Actions
fabrix-0.5.1-py3-none-any.whl Python 3 none any Details for fabrix-0.5.1-py3-none-any.whl

Total release size: 45.7 kB

Release files / fabrix-0.5.1.tar.gz

Download URL fabrix-0.5.1.tar.gz
Size 21.2 kB
Tags Source
SHA-256 checksum
How to use checksums
00b6e43b88a1028dbc631241295cba732eba10ab09e1dbd4242484c0b87b2351
BLAKE2b-256 checksum
How to use checksums
1d775677962a0d0c4b77ad65baaa96e1f7956f4b5dffbfa45870860f4c12e3a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.8

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 7, 2025.

Transparency log

Release files / fabrix-0.5.1-py3-none-any.whl

Download URL fabrix-0.5.1-py3-none-any.whl
Size 24.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1a48c5b4824d2af65832d60ff3418bc5c125bbc5d66fcf75be1e8d24bfc80fc7
BLAKE2b-256 checksum
How to use checksums
7cb5be6334af0040d76c339b1b262afec10f0cea61f9bbb8da42ad439ac90470
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.8

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 7, 2025.

Transparency log

Security for fabrix 0.5.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for fabrix-0.5.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 7, 2025.

Transparency log

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.

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