data-product-forge-sdk
Build a data-product-forge plugin in 30 seconds. Get 15+ conformance tests for free.
Zero-dependency Python SDK for building plugins that extend the data-product-forge (a.k.a. FLUID) CLI. Write a plugin once, plug it in via Python entry-points. Seven built-in roles: four with a plan / apply lifecycle, three typed classes for the plugin groups forge-cli 0.38.0 adds.
pip install data-product-forge-sdk
from fluid_sdk import CustomScaffold, Validator, ContractHelper
Dual naming, on purpose. PyPI distribution:
data-product-forge-sdk. Import path:fluid_sdk. Same pattern aspyyaml↔yaml,scikit-learn↔sklearn. The PyPI name reflects the product brand; the import path stays short.
Zero dependencies beyond the Python standard library.
What can I build?
| Role | What it does | When you'd build one |
|---|---|---|
InfraProvider |
Provisions cloud resources (datasets, tables, IAM) | You're adding support for a new cloud platform |
CustomScaffold |
Generates files from a contract (CI configs, app code, IaC) | Your org has a standard project layout you want every team to use |
Validator |
Inspects a contract and emits findings | You have governance / compliance / cost rules to enforce |
CatalogAdapter |
Syncs product metadata to a catalog (DataHub, Atlan) | You want fluid contracts to flow into your existing catalog |
AlertNotifier |
Adds a route kind (Teams, Opsgenie, an internal pager) to the alerts of generated DAGs, and an organisation's default routes (alert_route) |
Your on-call tool is not one of the built-in kinds. Needs forge-cli 0.38.0 |
MaintenanceAction |
Returns the SQL for a step of an Iceberg table's maintenance, such as an erasure of the rows a request names | You need a table to be cleaned on a schedule beyond compaction and expiry. Needs forge-cli 0.38.0 |
CommandPlugin |
Adds a fluid <name> subcommand |
You want your own command in the same CLI. Needs forge-cli 0.8.3 |
30-second example — your first plugin
# scaffold.py
from fluid_sdk import ContractHelper, CustomScaffold, write_file_action
class HelloScaffold(CustomScaffold):
name = "hello"
def plan(self, contract):
c = ContractHelper(contract)
return [
write_file_action(
path="README.md",
content=f"# {c.name}\n\n{c.description}\n".encode("utf-8"),
).to_dict(),
]
# tests/test_scaffold.py
from fluid_sdk.testing import CustomScaffoldTestHarness, LOCAL_CONTRACT
from scaffold import HelloScaffold
class TestHelloScaffold(CustomScaffoldTestHarness):
plugin_class = HelloScaffold
sample_contracts = [LOCAL_CONTRACT]
pytest runs 15+ conformance tests automatically. Determinism, idempotency, path-traversal safety, role declaration — all verified.
→ Full step-by-step in docs/getting-started/.
How users plug your plugin into the FLUID CLI
Plugin authors register via pyproject.toml:
[project.entry-points."fluid_build.custom_scaffolds"]
hello = "my_pkg.scaffold:HelloScaffold"
End users then:
pip install data-product-forge # the CLI
pip install data-product-forge-custom-scaffold # the engine
pip install your-plugin # what you wrote
And in any contract:
extensions:
customScaffold:
libraries:
- id: ci
source: { kind: pypi, package: your-plugin, version: ">=0.1" }
patterns:
- use: ci:hello
fluid generate custom-scaffold
# Your plugin's files appear in the workspace.
Documentation
Start here:
- Getting Started (5 minutes) — build your first plugin, see tests pass, run it.
- Your first real plugin (15 minutes) — build a complete GitLab CI generator. Realistic, deployable.
Working examples (every one runs pytest + python demo.py standalone):
examples/hello-scaffold/— the smallest possible plugin (~30 LOC)examples/gitlab-ci-scaffold/— full CI generator (~150 LOC, 27 tests)examples/steward-validator/— custom governance rule (~80 LOC, 22 tests)examples/acme-chat-alerts/— an alert route kind plus an organisation's default routeexamples/acme-erasure-action/— a maintenance action that returns aDELETEexamples/acme-hello-command/— afluidsubcommand
Reference:
docs/reference/architecture.md— the four-layer modeldocs/reference/role-taxonomy.md— pick the right roledocs/reference/plugin-groups.md— alert notifiers, maintenance actions and command pluginsdocs/reference/contract-parsing.md—ContractHelperAPIdocs/reference/conformance-testing.md— test harnesses
The public API in a few lines
from fluid_sdk import (
CustomScaffold, # subclass for file-emitting plugins
InfraProvider, # subclass for cloud-infra plugins
Validator, # subclass for contract-inspection plugins
CatalogAdapter, # subclass for catalog-sync plugins
AlertNotifier, # a route kind for the alerts of generated DAGs
MaintenanceAction, # SQL for a step of an Iceberg table's maintenance
CommandPlugin, # a `fluid <name>` subcommand
ContractHelper, # wrap any contract dict — typed read access
write_file_action, # builds a canonical write_file PluginAction
Finding, # validator authors emit these
)
# Everything else is in the role docs.
Why a separate SDK?
The full data-product-forge CLI pulls ~40 transitive dependencies. As a plugin author, you don't need any of that — you only need:
BasePlugin+ the four role subclasses, and the three plain classes for the newer groups- Action / result / metadata / capabilities data types
ContractHelperfor parsing fluid contracts- A test harness
…all in pure Python stdlib. The end user installs the full CLI; you only need data-product-forge-sdk. Faster pip install, no version-resolution headaches, your plugin works against multiple data-product-forge CLI versions.
License
Apache-2.0. See LICENSE.
Metadata
Release files for data-product-forge-sdk 0.12.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 |
|---|---|---|---|---|
| data_product_forge_sdk-0.12.1.tar.gz | 64.7 kB | With provenance | Details for data_product_forge_sdk-0.12.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| data_product_forge_sdk-0.12.1-py3-none-any.whl | Python 3 | none | any | Details for data_product_forge_sdk-0.12.1-py3-none-any.whl |
Total release size: 143.6 kB
Release files / data_product_forge_sdk-0.12.1.tar.gz
| Download URL | data_product_forge_sdk-0.12.1.tar.gz |
|---|---|
| Size | 64.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
87bc4c2043dae6a71b7f8e4203904262a77b4f7ecf54a81f538ea882cfaa87b9
|
|
BLAKE2b-256 checksum How to use checksums |
9740f6dc3f961f8d6fb800e8101cbd6e8a381d25b09ed97e3e9808b23580b7cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 23, 2026.
Transparency logRelease files / data_product_forge_sdk-0.12.1-py3-none-any.whl
| Download URL | data_product_forge_sdk-0.12.1-py3-none-any.whl |
|---|---|
| Size | 78.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e5e3a42b162a4137dab1380873d38c0e93664c6046aaac22d150ca12939f4141
|
|
BLAKE2b-256 checksum How to use checksums |
ad0af4d24ac82d5e060ab4301b44f0ff299ee2484a28839e8e4f56c639761ae6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 23, 2026.
Transparency logSecurity for data-product-forge-sdk 0.12.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.
Attestation for data_product_forge_sdk-0.12.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 Nov 23, 2026.
Transparency logA 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.