def isint(value):
    """Check if input can be converted to an integer

    :param value: value to check
    :type value: a ``string`` or ``int``
    :return: ``True`` if value can be converted to an integer
    :rtype: ``bool``
    :raise: :class:`ValueError` when value can't be converted to an integer
    """
    try:
        int(value)
        return True
    except ValueError:
        return False
