Base interface for parsing and transforming source data to match defined schemas with flexible mapping support
DataParser
class provides a standardized interface for converting source data into the format required by a defined schema. It supports flexible field mapping and serves as the foundation for all data parsing operations in Superlinked.
SchemaField
to str
pairs, such as {movie_schema.title: "movie_title"}
.InvalidInputException
if the schema
parameter is of an invalid type.set_allow_bytes_input()
method.
list[ParsedSchema]
- A list of ParsedSchema objects conforming to the target schema.
list[SourceTypeT]
- A list of data in the original source format.
DataParser
class serves as an abstract base class for specialized parsers:
Specialized Parsers
unmarshal()
.