tube¶
- pydantic model TubeNode[source]¶
A node that contains another tube within it
Show JSON schema
{ "title": "TubeNode", "description": "A node that contains another tube within it", "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" }, "tube": { "anyOf": [ { "format": "path", "type": "string" }, { "pattern": "[\\w\\-\\/#]+", "type": "string" } ], "title": "Tube" } }, "$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", "tube" ] }
- Config:
extra: str = forbid
- Fields:
- field tube: Path | PathLike[str] | Annotated[str, FieldInfo(annotation=NoneType, required=True, metadata=[_PydanticGeneralMetadata(pattern='[\\w\\-\\/#]+')])] [Required]¶
- init(context: RunnerContext) None[source]¶
- model_post_init(_Node__context: Any) None¶
See docstring of
process()for description of post init wrapping of generators
- property tube_spec: TubeSpecification¶