Module ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If BoolOpOr BoolOpAnd CompareIsNot NameLoad NameLoad CompareLt NameLoad Num BoolOpAnd CompareIsNot NameLoad NameLoad CompareLt NameLoad Num body Raise Call NameLoad Str Return Call NameLoad Call NameLoad NameLoad keyword NameLoad keyword NameLoad decorator_list NameLoad
N/A between between utils validator length N/A N/A value min max N/A None None N/A N/A 
    Return whether or not the length of given string is within a specified
    range.

    Examples::

        >>> length('something', min=2)
        True

        >>> length('something', min=9, max=9)
        True

        >>> length('something', max=5)
        ValidationFailure(func=length, ...)

    :param value:
        The string to validate.
    :param min:
        The minimum required length of the string. If not provided, minimum
        length will not be checked.
    :param max:
        The maximum length of the string. If not provided, maximum length
        will not be checked.

    .. versionadded:: 0.2
     N/A N/A N/A N/A min None N/A min 0 N/A N/A max None N/A max 0 N/A N/A N/A AssertionError `min` and `max` need to be greater than zero. N/A N/A between N/A len value min min max max N/A validator