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