base_loader
A = TypeVar('A', bound=BaseArtifact)
module-attribute
F = TypeVar('F')
module-attribute
S = TypeVar('S')
module-attribute
BaseLoader
Bases: FuturesExecutorMixin
, ABC
, Generic[S, F, A]
Fetches data from a source, parses it, and returns an Artifact.
Attributes:
Name | Type | Description |
---|---|---|
reference |
Optional[Reference]
|
The optional |
Source code in griptape/loaders/base_loader.py
reference: Optional[Reference] = field(default=None, kw_only=True)
class-attribute
instance-attribute
fetch(source)
abstractmethod
load(source)
load_collection(sources)
Loads a collection of sources and returns a dictionary of Artifacts.
Source code in griptape/loaders/base_loader.py
parse(data)
abstractmethod
to_key(source)
Converts the source to a key for the collection.