def positive_int(string):
    """Type checker for positive integers
    """
    value = int(string)
    if value <= 0:
        raise ValueError('integer is not positive: {}'.format(value))
    return value
