Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

factl

A CLI tool for deploying and orchestrating data pipelines in Microsoft Fabric using a declarative, Git-backed workflow model. Define pipelines as YAML, validate them locally, and deploy consistently to any environment — no UI clicking required.

What is this?

factl is a declarative data orchestration framework for Microsoft Fabric. Instead of building pipelines by clicking through the Fabric UI, you define processors and workflows in YAML, version them in Git, and factl handles compilation, deployment, and scheduling. Orchestration runs in a common workspace; medallion Lakehouses and Warehouses live in separate data workspaces, resolved through workflow parameters or processor-side environment logic.

Core model: processors and workflows

factl separates your data platform into two layers:

Processors are reusable building blocks — typically Notebooks or DataPipelines, and potentially other item types if they can be triggered through a DataPipeline activity with a matching template. You deploy each processor once, then reference it by name in any number of workflows. Per-workflow parameters control what it does with no processor code changes.

Workflows are YAML files that declare which processors run, in what order, on what schedule, and with what parameters. factl compiles the YAML into Fabric-native DataPipeline definitions and deploys them.

flowchart LR

    subgraph CONFIG["Git / Configuration"]
        YAML["Workflow YAML<br/>orchestration definition"]
        PARAMS["Parameter Files<br/>environment bindings"]
    end

    FACTL["factl<br/>compile + deploy"]

    subgraph COMMON["Common Workspace"]
        WF["Compiled Workflows"]
        PROC["Processors"]
        CTL["Control Assets"]
    end

    subgraph DATA["Data Workspace(s)"]
        ANALYTICS["Lakehouses · Warehouses · SQL"]
    end

    YAML --> FACTL
    PARAMS --> FACTL
    FACTL --> COMMON
    WF --> PROC
    PROC -->|"workflow params or processor-side resolution"| ANALYTICS

The problem it solves: Fabric pipelines built through the UI have no single source of truth, drift between environments, and can't be reviewed or versioned. factl moves the orchestration layer — processors, workflows, control assets, common items, and metadata — into Git, where it can be versioned, reviewed, and deployed consistently. The data itself (Lakehouses, Warehouses, SQL databases) lives in separate data workspaces, accessed by processors through environment-specific references passed via workflow parameters (workspace IDs, lakehouse IDs, endpoints, etc.) or resolved internally from a selector such as env.

Where it fits: factl sits between your Git repository and your Fabric workspaces. You write YAML, commit to Git, and factl handles the rest — compilation, parameterization, deployment, and schedule management. factl deploys orchestration (processors, workflows, common items) to a common workspace, while your data Lakehouses and Warehouses live in separate data workspaces — resolved by processors through environment-specific target settings.

Who it's for: Data engineers and platform teams building ELT/ETL pipelines in Microsoft Fabric who want repeatable, reviewable, and automated deployments.

Why use it?

  • No framework to build from scratch. factl provides a complete deployment and orchestration system — workflow compilation, parameter management, environment promotion, and schedule control are all built in.
  • Reusable processors with declarative parameters. Processors (typically Notebooks or DataPipelines, or other item types triggered through a DataPipeline activity with a matching template) are deployed once and composed into workflows by name. Each workflow configures the processor through params — the same processor behaves differently per workflow with no code changes.
  • Write once, deploy anywhere. Environment differences (workspace IDs, Lakehouse IDs, endpoints, connection settings) live in configuration files, not in pipeline code. The same workflow YAML deploys to dev, test, and prod.
  • Standardized pipeline development. Every workflow follows the same declarative format. New team members can understand a pipeline by reading its YAML file.
  • Personal workspace isolation. Each developer tests changes in their own Fabric workspace using factl self commands. Shared environments are never touched during development.
  • Data workspaces separate from orchestration. Medallion Lakehouses, Warehouses, and SQL databases live in dedicated data workspaces — isolated from the common workspace where processors and workflows run. Processors reach data workspaces either through environment-specific references passed as workflow parameters, or by resolving the target internally from a selector such as env.
  • Fail early, fix locally. Workflow YAML is validated at parse time — dependency cycles, missing references, and config errors are caught before anything touches Fabric.
  • Schedules managed declaratively. Enable or disable schedules per environment. Schedule definitions live in the same YAML file as the workflow.

Quick Start

Prerequisites

  • Python 3.10 or later
  • A Microsoft Fabric capacity with at least one workspace
  • Azure CLI authenticated with Fabric access (az login)

1. Install factl

git clone https://github.com/<your-org>/factl.git
cd factl
pip install -e .

2. Initialize repo configuration

factl config init

This creates three files under .config/.factl/:

  • project.yaml — repository structure, deployment paths, item types
  • targets.yaml — shared environment common workspace IDs (dev, test, prd)
  • variables.yaml — per-environment variables available in workflow YAML

Edit these files to match your Fabric setup:

.config/.factl/targets.yaml — add your shared common workspace IDs:

version: 1
personal_parameter_env: dev
targets:
  dev:
    com_workspace_id: <your-dev-workspace-guid>
    force_disable_schedules: false
    meta_database:
      host: <your-sql-endpoint>
      name: DB_META
  test:
    com_workspace_id: <your-test-workspace-guid>
    force_disable_schedules: true
  prd:
    com_workspace_id: <your-prod-workspace-guid>
    force_disable_schedules: false

.config/.factl/project.yaml — update at minimum:

  • project.repo_url — your Git repository URL
  • deployment.common.parameter_path — path to your fabric-cicd parameter file
  • deployment.common.control.lakehouse.name — your control Lakehouse name

3. Create your developer profile

A profile links you to a personal common workspace for development and testing:

factl profile set bs \
  --com-workspace-id <your-personal-workspace-guid> \
  --display-name "Your Name"

This creates ~/.factl/profiles.yaml and sets your profile as active.

4. Deploy control assets to your personal workspace

Control assets (dbt models, configuration files) are uploaded to the control Lakehouse in your workspace:

factl self deploy ctl --auto-create

Use --auto-create when the control Lakehouse does not exist yet.

5. Deploy common items and orchestration

Deploy common items:

factl self deploy com

This publishes all items from the directory configured by deployment.common.local_path in project.yaml to your personal workspace. Environment-specific values are substituted via the parameter file configured by deployment.common.parameter_path in project.yaml.

Orchestration compiles your workflow YAML into Fabric DataPipelines and deploys them:

factl self deploy orc

6. Verify in Fabric

Open your personal workspace in the Fabric portal. You should see:

  • Fabric items deployed to the workspace (from the directory configured by deployment.common.local_path in project.yaml)
  • Control assets uploaded to the control Lakehouse (configured by deployment.common.control.lakehouse.name in project.yaml)
  • Compiled DataPipelines under the folder configured by deployment.orchestration.workflow.workspace_folder in project.yaml
  • Data Lakehouses referenced by processors may live in a separate data workspace, resolved via workflow parameters or parameter files

Example workflow

Here's a complete workflow YAML (authored under the directory configured by deployment.orchestration.workflow.control_folder in project.yaml, relative to deployment.control.local_path):

workflows:
  - name: "WF_NycTaxiWeatherDaily"
    description: "NYC taxi + NOAA weather medallion processing."
    schedules:
      - enabled: false
        cron_expression: "0 6 * * *"
    processors:
      - name: "NB_IngestTlcTripsToBronze"
        alias: "ingest_tlc"
        depends_on: []
        params:
          dataset_months:
            value: '["2024-01","2024-02"]'
            type: "string"
      - name: "NB_IngestNoaaWeatherToBronze"
        alias: "ingest_weather"
        depends_on: []
        params:
          env:
            value: "{{ env_name }}"
            type: "string"
      - name: "NB_RunDbtTaxiWeather"
        alias: "run_dbt"
        depends_on:
          - "ingest_tlc"
          - "ingest_weather"
        params:
          dbt_project_subpath:
            value: "controls/dbt"
            type: "string"

The workflow declares three processors (two ingests that run in parallel, followed by a dbt run), a daily schedule, and Jinja2 templating for environment-specific values.

The processors themselves (NB_IngestTlcTripsToBronze, NB_IngestNoaaWeatherToBronze, NB_RunDbtTaxiWeather) are Fabric items deployed once to the workspace folder configured by deployment.orchestration.processor.workspace_folder in project.yaml. They can be referenced by name in any workflow. For example, NB_IngestNoaaWeatherToBronze could appear in a different workflow with different start_date and end_date params — same processor, different behavior.

How it works

flowchart LR

    YAML["Workflow YAML<br/>(under your control dir)"]
    COMPILER["Framework Compiler"]
    JSON["Fabric DataPipeline<br/>JSON definitions"]
    PUBLISH["fabric-cicd<br/>publish"]
    COMMON["Common Workspace<br/>(processors, workflows, control LH)"]
    DATA["Data Workspace<br/>(Lakehouses, Warehouses,<br/>SQL databases)"]

    YAML --> COMPILER --> JSON --> PUBLISH --> COMMON
    COMMON -->|"workflow params or processor-side resolution"| DATA
  1. Deploy processors. Fabric items that can be triggered through DataPipeline activities (typically Notebooks or DataPipelines) are deployed to the workspace folder configured by deployment.orchestration.processor.workspace_folder in project.yaml. Each processor is a reusable building block — deployed once, used by many workflows.
  2. Author workflows. You write a workflow YAML file under the directory configured by deployment.orchestration.workflow.control_folder in project.yaml (relative to deployment.control.local_path) that references processors by name with per-workflow parameters, dependencies, and schedules. The same processor can appear in multiple workflows with different params.
  3. Compile. factl self deploy orc loads the YAML, validates it with Pydantic, renders Jinja2 template variables, and compiles the workflow into Fabric DataPipeline JSON using built-in activity templates.
  4. Publish. The compiled JSON is published to the common workspace via the fabric-cicd SDK. Parameters are environment-aware — your workspace gets the right environment-specific target values (workspace IDs, lakehouse IDs, endpoints, etc.) without changing the workflow definition.
  5. Schedule. Schedule definitions from the YAML are converted to Fabric schedule JSON and deployed alongside the pipeline.

Four deployment types are supported:

Command What it deploys
deploy com / deploy common Fabric items (Notebooks, Environments, Lakehouses, etc.) to common workspace
deploy orc / deploy orchestration Compiled workflows + processor items to common workspace
deploy ctl / deploy control Control assets (dbt models, configs) to the control Lakehouse in the common workspace
deploy db / deploy database SQL scripts to metadata database

Documentation

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

factl-0.0.1b2.tar.gz (89.9 kB view details)

Uploaded Source

Built Distribution

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

factl-0.0.1b2-py3-none-any.whl (88.5 kB view details)

Uploaded Python 3

File details

Details for the file factl-0.0.1b2.tar.gz.

File metadata

  • Download URL: factl-0.0.1b2.tar.gz
  • Upload date:
  • Size: 89.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for factl-0.0.1b2.tar.gz
Algorithm Hash digest
SHA256 9ba68070f7b3c66894c7e7f516ddf59f1659509a2e4becfb73a753a754f02e73
MD5 8a88ec41d91010a348bc845586624087
BLAKE2b-256 4d6665c31cab331ec765224c674599ce58408c39ec5fb3785f81574d9702fb19

See more details on using hashes here.

Provenance

The following attestation bundles were made for factl-0.0.1b2.tar.gz:

Publisher: publish.yml on billybillysss/factl

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

File details

Details for the file factl-0.0.1b2-py3-none-any.whl.

File metadata

  • Download URL: factl-0.0.1b2-py3-none-any.whl
  • Upload date:
  • Size: 88.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for factl-0.0.1b2-py3-none-any.whl
Algorithm Hash digest
SHA256 7b851078331d386433c60cd5d4c05cb129a0ed3474ed73830906d9b52fcd60be
MD5 74bd4ca545141966db35aea4330c4e71
BLAKE2b-256 8bf026a843501335acd6716c40bf9ca9a84be5550642ec5eac48abef7f99e673

See more details on using hashes here.

Provenance

The following attestation bundles were made for factl-0.0.1b2-py3-none-any.whl:

Publisher: publish.yml on billybillysss/factl

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

Release history Release notifications | RSS feed

This release

0.0.1b2 This release

2 files

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