httomo.cli.PipelineFilePathOrString#
- class httomo.cli.PipelineFilePathOrString(*args: Any, **kwargs: Any)[source]#
Parameter that is either a pipeline filepath or a string containing pipeline data in an external format (for example, YAML or JSON).
Methods
__init__
(types)convert
(value, param, ctx)Attempts to convert given value to either a valid Path or a str, and returns an error otherwise.
Attributes
- convert(value: Any, param, ctx) Path | str [source]#
Attempts to convert given value to either a valid Path or a str, and returns an error otherwise.
- name = 'pipeline_filepath_or_string'#