def valid_username(user):
    if not isinstance(user, string_types):
        return False

    if len(user) > 32:
        return False

    return VALID_USERNAME.match(user) is not None
Internal helper function that returns a function for recording
dataset/ETHPy150Open saltstack/salt/salt/utils/validate/user.py/valid_username--crossover with--dataset/ETHPy150Open hhstore/flask-annotated/flask-0.5/flask/module.py/_register_module