mufasa.io.inputs.python_object#
Classes#
Module Contents#
- class mufasa.io.inputs.python_object.LocationInput(data)#
Bases:
mufasa.io.inputs.base.InputNode- property output_type: type#
Type this node emits. Derived from
_output_type.- Return type:
type
- items() list[mufasa.location.Location]#
Return items from this input in temporal order.
File-based nodes return a sorted list. Streaming nodes return a blocking generator that yields as items arrive via ingest().
- Return type:
list[mufasa.location.Location]
- get_config() dict#
Return all constructor arguments as a plain JSON-serializable dict.
Requires that the dict is JSON-serializable and that the node is reconstructed when passing the dict as kwargs to its constructor like so:
SomeNode(**some_node.get_config())Used by
Graph.to_config()to serialize the pipeline.- Return type:
dict
- class mufasa.io.inputs.python_object.MapInput(data)#
Bases:
mufasa.io.inputs.base.InputNode- items() list[mufasa.map.Map]#
Return items from this input in temporal order.
File-based nodes return a sorted list. Streaming nodes return a blocking generator that yields as items arrive via ingest().
- Return type:
list[mufasa.map.Map]
- get_config() dict#
Return all constructor arguments as a plain JSON-serializable dict.
Requires that the dict is JSON-serializable and that the node is reconstructed when passing the dict as kwargs to its constructor like so:
SomeNode(**some_node.get_config())Used by
Graph.to_config()to serialize the pipeline.- Return type:
dict