bsie.reader.builder module#

class bsie.reader.builder.ReaderBuilder(kwargs: Dict[str, Dict[str, Any]] | None = None)#

Bases: object

Build bsie.base.Reader instances.

Readers are defined via their qualified class name (e.g., bsie.reader.path.Path) and optional keyword arguments that are passed to the constructor via the kwargs argument (name as key, kwargs as value). The ReaderBuilder keeps a cache of previously built reader instances, as they are anyway built with identical keyword arguments.

build(name: str) Reader#

Return an instance for the qualified class name.