def exists(username):
  try:
    return int(execute("getent passwd %s | wc -l" % (username))) > 0
  except:
    return False
Check if username exists
dataset/ETHPy150Open NumentaCorp/agamotto/agamotto/user.py/exists