def uid(username):
  try:
    return int(execute("getent passwd %s" % (username)).split(':')[2])
  except:
    return -1
Return the uid for username
dataset/ETHPy150Open NumentaCorp/agamotto/agamotto/user.py/uid