faust.models.typing
¶
Parsing Type Expressions.
This module contains tools for parsing type expressions such as
List[Mapping[str, Tuple[int, Tuple[str, str]]]]
,
then converting that to a generator expression that can be used
to deserialize such a structure.
- class faust.models.typing.NodeType(value)[source]¶
An enumeration.
- ROOT = 'ROOT'¶
- UNION = 'UNION'¶
- ANY = 'ANY'¶
- LITERAL = 'LITERAL'¶
- DATETIME = 'DATETIME'¶
- DECIMAL = 'DECIMAL'¶
- NAMEDTUPLE = 'NAMEDTUPLE'¶
- TUPLE = 'TUPLE'¶
- SET = 'SET'¶
- DICT = 'DICT'¶
- LIST = 'LIST'¶
- MODEL = 'MODEL'¶
- USER = 'USER'¶
- class faust.models.typing.TypeExpression(expr: Type, root: Optional[RootNode] = None, *, user_types: Optional[MutableMapping[Union[Type, Tuple[Type, ...]], Callable[[Any], Any]]] = None, date_parser: Optional[Callable[[Any], datetime]] = None)[source]¶
- DEFAULT_NODE¶
alias of
LiteralNode