SrcDef
class SrcDef(
type_: str,
system: str,
src_version: str,
conn: Type[Conn],
src: Type[S],
table_mode: TableMode,
cardinality: Callable[[S], int],
plugin: Type[SrcPlugin],
explorer: Type[Explorer] | None,
icon: str | None,
)
Categories: spi
Entry-point registration for a batch Src binding.
Registered via the tabsdatak.connectors entry point. Binds a
Src config type to the SrcPlugin that reads it.
Parameters
parameter
type_strWire-stable identifier, unique across all plugins
(sources, stream sources and destinations share one
namespace), e.g. "s3-file-in". The registry's key.
parameter
systemstrHuman-readable name of the target system (e.g.
"AWS S3"); shown by tdk connection types.
parameter
Callable returning the number of output slots
src declares (e.g. lambda s: len(s.paths)).
parameter
iconstr | NonePath to the connector's icon relative to the
tabsdatak namespace root (e.g.
"conn/s3/resources/s3.svg"), or None for none.