Skip to main content

A python toolkit to evaluate, validate, and debug Azure Data Factory & Microsoft Fabric pipeline expressions with rich tracing.

Project description

🧵 fabrix

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.


🔗 Links


✨ 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, evaluate

# 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
from fabrix import Expression

expr = Expression(expression="@toUpper(variables('greeting'))", result="shout")
evaluate(expr, context=ctx)

print(ctx.variables["shout"])  # HELLO

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

fabrix-0.1.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fabrix-0.1.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file fabrix-0.1.0.tar.gz.

File metadata

  • Download URL: fabrix-0.1.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for fabrix-0.1.0.tar.gz
Algorithm Hash digest
SHA256 aa4e0f3278aa24fbb33c721fc2aa6239fd15650a2a9782a1f2a23d98b4ea39ce
MD5 98dba5b7fc2b8f65381d1a2792d0a696
BLAKE2b-256 2c6918bd56a2847ac250573aec22aa84fee6fde77a131fed8e33ddd6524c1b6d

See more details on using hashes here.

Provenance

The following attestation bundles were made for fabrix-0.1.0.tar.gz:

Publisher: publish.yml on Luanee/fabrix

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fabrix-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: fabrix-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for fabrix-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 df06d03223a85d1f920289c703e409f9ca4d85b0786d2bc470582d5bb4bd9c0a
MD5 0fc8e6b0098f8a599f89d3c4f91d57f7
BLAKE2b-256 b87ca3914a652f6ce964114693dd3c3d8128e54d62428d3b8e3054c54679f0f9

See more details on using hashes here.

Provenance

The following attestation bundles were made for fabrix-0.1.0-py3-none-any.whl:

Publisher: publish.yml on Luanee/fabrix

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page