nodes¶
- count_source(limit: int = 1000, 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" }, "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" } }, "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" }, "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" } }, "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" } }, "$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" } }, "required": [ "type", "id" ], "title": "NodeSpecification", "type": "object" } }, "additionalProperties": false, "required": [ "id" ] }
- Config:
extra: str = forbid
- Fields: