str_is_int

ketos.utils.str_is_int(s, signed=True)[source]

Check if a given string represents a (signed) integer.

Args:
s: str

Input string.

signed: bool

Check if string represents a signed integer (default) or unsigned.

Returns:
res: bool

Result of check