str2int(value)

Parse a string into an integer value.

This is just an alias for int.

Parameters:

value (str) – The integer string value to parse.

Raises:

ValueError – If the string cannot be converted to an integer.

Return type:

int

Returns:

The parsed integer value.