nodes¶
- count_source(limit: int = 10000, start: int = 0) Generator[Annotated[int, Name(name=index)], None, None][source]¶
- sporadic_word(every: int = 3) Generator[Annotated[str, Name(name=word)] | None, None, None][source]¶
- word_counts() Generator[tuple[Annotated[str, Name(name=word)], Annotated[list[int], Name(name=counts)]]][source]¶
- multiply(left: int, right: int = 2) int[source]¶
Return value purposely unnamed, to be used as {nodename}.value
- pydantic model CountSource[source]¶
Show JSON schema
{ "title": "CountSource", "type": "object", "properties": { "id": { "title": "Id", "type": "string" }, "spec": { "anyOf": [ { "$ref": "#/$defs/NodeSpecification" }, { "type": "null" } ], "default": null }, "enabled": { "default": true, "title": "Enabled", "type": "boolean" }, "stateful": { "default": true, "title": "Stateful", "type": "boolean" }, "limit": { "default": 1000, "title": "Limit", "type": "integer" }, "start": { "default": 0, "title": "Start", "type": "integer" } }, "$defs": { "NodeSpecification": { "description": "Specification for a single processing node within a tube .yaml file.", "properties": { "type": { "title": "Type", "type": "string" }, "id": { "title": "Id", "type": "string" }, "depends": { "anyOf": [ { "items": { "anyOf": [ { "type": "string" }, { "additionalProperties": { "type": "string" }, "maxProperties": 1, "minProperties": 1, "type": "object" } ] }, "type": "array" }, { "type": "string" }, { "type": "null" } ], "default": null, "title": "Depends" }, "params": { "anyOf": [ { "additionalProperties": true, "type": "object" }, { "type": "null" } ], "default": null, "title": "Params" }, "enabled": { "default": true, "title": "Enabled", "type": "boolean" }, "stateful": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "title": "Stateful" }, "description": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Description" } }, "required": [ "type", "id" ], "title": "NodeSpecification", "type": "object" } }, "additionalProperties": false, "required": [ "id" ] }
- Config:
extra: str = forbid
- Fields:
- pydantic model UnannotatedGenerator[source]¶
Show JSON schema
{ "title": "UnannotatedGenerator", "type": "object", "properties": { "id": { "title": "Id", "type": "string" }, "spec": { "anyOf": [ { "$ref": "#/$defs/NodeSpecification" }, { "type": "null" } ], "default": null }, "enabled": { "default": true, "title": "Enabled", "type": "boolean" }, "stateful": { "default": true, "title": "Stateful", "type": "boolean" }, "limit": { "default": 1000, "title": "Limit", "type": "integer" }, "start": { "default": 0, "title": "Start", "type": "integer" } }, "$defs": { "NodeSpecification": { "description": "Specification for a single processing node within a tube .yaml file.", "properties": { "type": { "title": "Type", "type": "string" }, "id": { "title": "Id", "type": "string" }, "depends": { "anyOf": [ { "items": { "anyOf": [ { "type": "string" }, { "additionalProperties": { "type": "string" }, "maxProperties": 1, "minProperties": 1, "type": "object" } ] }, "type": "array" }, { "type": "string" }, { "type": "null" } ], "default": null, "title": "Depends" }, "params": { "anyOf": [ { "additionalProperties": true, "type": "object" }, { "type": "null" } ], "default": null, "title": "Params" }, "enabled": { "default": true, "title": "Enabled", "type": "boolean" }, "stateful": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "title": "Stateful" }, "description": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Description" } }, "required": [ "type", "id" ], "title": "NodeSpecification", "type": "object" } }, "additionalProperties": false, "required": [ "id" ] }
- Config:
extra: str = forbid
- Fields:
- pydantic model Multiply[source]¶
Show JSON schema
{ "title": "Multiply", "type": "object", "properties": { "id": { "title": "Id", "type": "string" }, "spec": { "anyOf": [ { "$ref": "#/$defs/NodeSpecification" }, { "type": "null" } ], "default": null }, "enabled": { "default": true, "title": "Enabled", "type": "boolean" }, "stateful": { "default": true, "title": "Stateful", "type": "boolean" } }, "$defs": { "NodeSpecification": { "description": "Specification for a single processing node within a tube .yaml file.", "properties": { "type": { "title": "Type", "type": "string" }, "id": { "title": "Id", "type": "string" }, "depends": { "anyOf": [ { "items": { "anyOf": [ { "type": "string" }, { "additionalProperties": { "type": "string" }, "maxProperties": 1, "minProperties": 1, "type": "object" } ] }, "type": "array" }, { "type": "string" }, { "type": "null" } ], "default": null, "title": "Depends" }, "params": { "anyOf": [ { "additionalProperties": true, "type": "object" }, { "type": "null" } ], "default": null, "title": "Params" }, "enabled": { "default": true, "title": "Enabled", "type": "boolean" }, "stateful": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "title": "Stateful" }, "description": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Description" } }, "required": [ "type", "id" ], "title": "NodeSpecification", "type": "object" } }, "additionalProperties": false, "required": [ "id" ] }
- Config:
extra: str = forbid
- Fields:
- input_party(one: int, two: float, three: str, four: bool, five: list, six: dict, seven: set) Annotated[bool, Name(name=works)][source]¶
- jump(generator: count, n: int = 1) tuple[Annotated[count, Name(name=skirttt)], Annotated[int, Name(name=next)]][source]¶
- rewind(generator: count, n: int = 1) Annotated[count, Name(name=skrittt)][source]¶
Purposely designed to mutate the input and return a new object
- increment(iterator: Iterator[int]) tuple[Annotated[Iterator[int], Name(name=iterator)], Annotated[int, Name(name=value)]][source]¶
- pydantic model InitCounter[source]¶
Count how many times we have been initialized and deinitalized
Show JSON schema
{ "title": "InitCounter", "description": "Count how many times we have been initialized and deinitalized", "type": "object", "properties": { "id": { "title": "Id", "type": "string" }, "spec": { "anyOf": [ { "$ref": "#/$defs/NodeSpecification" }, { "type": "null" } ], "default": null }, "enabled": { "default": true, "title": "Enabled", "type": "boolean" }, "stateful": { "default": true, "title": "Stateful", "type": "boolean" } }, "$defs": { "NodeSpecification": { "description": "Specification for a single processing node within a tube .yaml file.", "properties": { "type": { "title": "Type", "type": "string" }, "id": { "title": "Id", "type": "string" }, "depends": { "anyOf": [ { "items": { "anyOf": [ { "type": "string" }, { "additionalProperties": { "type": "string" }, "maxProperties": 1, "minProperties": 1, "type": "object" } ] }, "type": "array" }, { "type": "string" }, { "type": "null" } ], "default": null, "title": "Depends" }, "params": { "anyOf": [ { "additionalProperties": true, "type": "object" }, { "type": "null" } ], "default": null, "title": "Params" }, "enabled": { "default": true, "title": "Enabled", "type": "boolean" }, "stateful": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "title": "Stateful" }, "description": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Description" } }, "required": [ "type", "id" ], "title": "NodeSpecification", "type": "object" } }, "additionalProperties": false, "required": [ "id" ] }
- Config:
extra: str = forbid
- Fields: