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
CatalogServicewith an access resolver lists only what that user may see.FlowfileCatalogthen 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_tablecan change a table's name and namespace, and table ids can be reused after a delete, so neither is an identity on its own. Calltable_renamedfrom the update path and everything known about the table moves with it. A fullsync()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. Useglosslayer.client.Federationto 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 themanage/read/adminvalues passed toview(), so no database lookups happen inside a batch. - Descriptions. Gloss owns meaning. When a table description is accepted,
Embeddedwrites it to Flowfile's owndescriptionfield (own_descriptions=Falseturns 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; giveglosslayer.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")forglosslayer/ossie/ossie-schema.json(only needed forvalidate()). - 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.2.0
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 |
|---|---|---|---|---|
| glosslayer_flowfile-0.2.0.tar.gz | 16.6 kB | With provenance | Details for glosslayer_flowfile-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| glosslayer_flowfile-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for glosslayer_flowfile-0.2.0-py3-none-any.whl |
Total release size: 33.3 kB
Release files / glosslayer_flowfile-0.2.0.tar.gz
| Download URL | glosslayer_flowfile-0.2.0.tar.gz |
|---|---|
| Size | 16.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5840ee2a5e5b3f32d439365e90ee02c05d14f4bc39749c842936d45406c05e0e
|
|
BLAKE2b-256 checksum How to use checksums |
2ebf252b7c462488965cd241fe746b9ad7c3a5e608736718dc6a27de27b54f23
|
| 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 logRelease files / glosslayer_flowfile-0.2.0-py3-none-any.whl
| Download URL | glosslayer_flowfile-0.2.0-py3-none-any.whl |
|---|---|
| Size | 16.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
14c6ddb3bdcf1d5c45f80e108d539e4331caef147c60f1eeb6c2f809333fa09f
|
|
BLAKE2b-256 checksum How to use checksums |
ee36ee2138ae9a2abdf48ddca675bfb6ccf5bd4b3103cbd25b4c18a1a900c9df
|
| 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 logSecurity for glosslayer-flowfile 0.2.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.
Attestation for glosslayer_flowfile-0.2.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 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.