restricted-input (pypi): Alternative to classic input with support for restricting certain characters
Keywords: input|filter|restricted|getpass|integer|smart