ItemParser

class pydelfini.delfini_core.models.item_parser.ItemParser(name, cache_max_ttl=Unset, options=Unset)[source]

Bases: object

ItemParser model

Example:

>>> model = ItemParser.from_dict({'name': 'auto'})
Parameters:
name
Type:

str

cache_max_ttl

Cache max age in seconds, or null for unlimited

Type:

Union[None, Unset, float]

options
Type:

Union[Unset, ItemParserOptions]

Attributes

name

cache_max_ttl

options

classmethod from_dict(src_dict)[source]

Create an instance of ItemParser from a dict

Parameters:

src_dict (Dict[str, Any])

Return type:

T

to_dict()[source]

Convert to a dict

Return type:

Dict[str, Any]