Skip to main content

glosslayer-flowfile

Gloss plugin for Flowfile's catalog.

Part Name What it does
Catalog FlowfileCatalog (entry point flowfile) Lists Flowfile catalog tables as catalog.schema.table, with columns and types. Knows whether its listing is the whole catalog or one user's view. Writes accepted table descriptions back.
Source LineageSource (entry point flowfile-lineage) Uses table lineage (producing flow → tables it reads) to propose confidentiality, classification and descriptions downstream.
Backend glue Embedded, FlowfilePolicy, policy_for, actor_for, Directory Catalog events, per-request views, and a policy answered from the rights the backend already resolved.

Nothing in this package imports Flowfile: it is handed Flowfile's objects and plain values. It is tested against a fake CatalogService with the shape of Flowfile's CatalogTableOut, not a running Flowfile.

Install

pip install glosslayer-flowfile          # pulls in the matching glosslayer core

Embedded in Flowfile's backend

import glosslayer
from glosslayer_flowfile import Embedded, FlowfileCatalog, LineageSource, policy_for

# 1. Schema: from a Flowfile Alembic revision (and again whenever Gloss is upgraded)
glosslayer.schema.upgrade(op.get_bind())

# 2. One ledger on Flowfile's engine. Gloss adds no listeners and runs no DDL here.
g = glosslayer.Gloss(glosslayer.SQLStore(engine), policy=policy_for(sharing=sharing_enabled()))

# 3. The catalog, through a CatalogService built WITHOUT an access resolver: the whole local catalog.
semantics = Embedded(g, FlowfileCatalog(service=CatalogService(repo)))
semantics.sync()                                         # at startup, as the backend itself

# 4. From Flowfile's own table paths, where the change is made
semantics.table_written(qualified_name)                  # created, overwritten with new columns
semantics.table_renamed(old_qualified_name, new_qualified_name)      # update_table(name=…/namespace_id=…)
semantics.table_deleted(qualified_name)                  # delete_table

# 5. Per request: who is asking, and what the backend already knows about their rights
view = semantics.view(
    user_id=user.id,
    admin=user.is_admin,
    manage=paths_of(access.writable_namespace_ids()),    # namespace ids → "catalog.schema" paths
    read=None,                                           # or the readable paths where the catalog is private
)
app.include_router(create_router(lambda user=Depends(get_current_active_user): view_for(user)),
                   prefix="/semantic")

# 6. Proposals from lineage, whenever convenient
g.propose_many(LineageSource(semantics.catalog).proposals(g), source=LineageSource.source_id)

What the pieces take care of:

  • Never sync per user. A CatalogService with an access resolver lists only what that user may see. FlowfileCatalog then reports its listing as incomplete, so a sync through it can discover and update tables but never marks a table it cannot see as gone. Build the service without a resolver for the backend's own sync.
  • Renames. Flowfile's update_table can change a table's name and namespace, and table ids can be reused after a delete, so neither is an identity on its own. Call table_renamed from the update path and everything known about the table moves with it. A full sync() also recognises a rename when the id matches and the columns are unchanged.
  • Hub tables. Rows Flowfile shows from a connected hub (source="hub", negated ids) are skipped: their meaning lives in the hub's ledger. Use glosslayer.client.Federation to show both ledgers as one.
  • Who decides. policy_for(sharing=False) is the desktop app: one user, their own edits accepted at once, AI suggestions still queued. With sharing on, people decide where they manage the namespace, and the policy answers from the manage/read/admin values passed to view(), so no database lookups happen inside a batch.
  • Descriptions. Gloss owns meaning. When a table description is accepted, Embedded writes it to Flowfile's own description field (own_descriptions=False turns that off). Flowfile stores no description per column; those stay in Gloss.
  • Actors are ids. actor_for(user.id) puts the user's id in the log, not their name; give glosslayer.Gloss(..., directory=Directory(lookup)) a lookup to show names. Flowfile's integer id is stable on one machine. A ledger shared between machines needs an id every machine agrees on.

Packaging (PyInstaller)

  • Register plugins in code so nothing depends on distribution metadata: glosslayer.plugins.register("catalog", "flowfile", FlowfileCatalog).
  • Add collect_data_files("glosslayer") for glosslayer/ossie/ossie-schema.json (only needed for validate()).
  • Gloss's core needs SQLAlchemy and PyYAML, both already Flowfile dependencies.

Standalone

export FLOWFILE_TOKEN=...            # a Flowfile JWT: one user's view, so nothing is ever marked gone
gloss sync flowfile:http://localhost:63578
gloss import flowfile-lineage http://localhost:63578
gloss pending --source inferred:

Roadmap

  • Column-level lineage from the flow graph (select / rename / formula nodes)
  • Relationship proposals from join nodes
  • Metric candidates from group-by aggregations
  • Profiling proposals (candidate keys, uniqueness) via Polars on the Delta tables
  • A Vue review panel for the Flowfile catalog page

Metadata

Release files for glosslayer-flowfile 0.1.0

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

Source distribution (sdist)

Source distribution for glosslayer-flowfile 0.1.0
File Size Uploaded Provenance Actions
glosslayer_flowfile-0.1.0.tar.gz 16.6 kB With provenance Details for glosslayer_flowfile-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for glosslayer-flowfile 0.1.0
File Interpreter ABI Platform Actions
glosslayer_flowfile-0.1.0-py3-none-any.whl Python 3 none any Details for glosslayer_flowfile-0.1.0-py3-none-any.whl

Total release size: 33.3 kB

Release files / glosslayer_flowfile-0.1.0.tar.gz

Download URL glosslayer_flowfile-0.1.0.tar.gz
Size 16.6 kB
Tags Source
SHA-256 checksum
How to use checksums
79f1c38008e073f0ec1170c7da925de5da87c23d21c18e608ad17a3a5fe8544d
BLAKE2b-256 checksum
How to use checksums
80c71febc21330d46465ef376127ce31c1ffc1068dedc1bad709864eaba442ba
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 25, 2026.

Transparency log

Release files / glosslayer_flowfile-0.1.0-py3-none-any.whl

Download URL glosslayer_flowfile-0.1.0-py3-none-any.whl
Size 16.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
35bc8db4797e8f1bdaafd515b532c5f81549cd6b595a8997220030e65808a348
BLAKE2b-256 checksum
How to use checksums
44dcf6644120cc12c4c78404670c1cd77b52e3e432787c3aa5f1455cfd37331c
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 25, 2026.

Transparency log

Security for glosslayer-flowfile 0.1.0

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 glosslayer_flowfile-0.1.0.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 25, 2026.

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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