dlt.extract.items
SupportsPipe Objects
class SupportsPipe(Protocol)
A protocol with the core Pipe properties and operations
name
Pipe name which is inherited by a resource
parent
A parent of the current pipe
instance_id
Unique id of the pipe assigned when instance is created and preserved when cloning
cutoff_idx
Items moving into steps up to this index are dropped during extraction
gen
@property
def gen() -> TPipeStep
A data generating step
gen_idx
@property
def gen_idx() -> int
Index of the data generating step
replace_gen
def replace_gen(gen: TPipeStep) -> None
Replaces data generating step. Assumes that you know what are you doing
__getitem__
def __getitem__(i: int) -> TPipeStep
Get pipe step at index
__len__
def __len__() -> int
Length of a pipe
has_parent
@property
def has_parent() -> bool
Checks if pipe is connected to parent pipe from which it takes data items. Connected pipes are created from transformer resources
close
def close() -> None
Closes pipe generator
cut_off
def cut_off(idx: int) -> None
Drops items moving into steps up to idx, never moves the cutoff back