faust.utils.codegen

Utilities for generating code at runtime.

faust.utils.codegen.Function(name: str, args: List[str], body: List[str], *, globals: Dict[str, Any] = None, locals: Dict[str, Any] = None, return_type: Any = <object object>, argsep: str = ', ') → Callable[source]
Return type:Callable
faust.utils.codegen.Method(name: str, args: List[str], body: List[str], **kwargs) → Callable[source]
Return type:Callable
faust.utils.codegen.InitMethod(args: List[str], body: List[str], **kwargs) → Callable[None][source]
Return type:Callable[[], None]
faust.utils.codegen.HashMethod(attrs: List[str], **kwargs) → Callable[None][source]
Return type:Callable[[], None]
faust.utils.codegen.EqMethod(fields: List[str], **kwargs) → Callable[None][source]
Return type:Callable[[], None]
faust.utils.codegen.CompareMethod(name: str, op: str, fields: List[str], **kwargs) → Callable[None][source]
Return type:Callable[[], None]