datalad_next.constraints.EnsureGeneratorFromFileLike

class datalad_next.constraints.EnsureGeneratorFromFileLike(item_constraint: Callable, exc_mode: str = 'raise')[source]

Bases: Constraint

Ensure a constraint for each item read from a file-like.

A given value can either be a file-like (the outcome of open(), or StringIO), or - as an alias of STDIN, or a path to an existing file to be read from.

short_description()[source]

This method is deprecated. Use input_synopsis instead