class_docstr: A project is a namespace for runs.
class_docstr_tok: ["A","project","is","a","namespace","for","runs","."]
code: def sweeps(self):
      query = gql(
          """
              query GetSweeps($project: String!, $entity: String!) {
                  project(name: $project, entityName: $entity) {
                      totalSweeps
                      sweeps {
                          edges {
                              node {
                                  ...SweepFragment
                              }
                              cursor
                          }
                          pageInfo {
                              endCursor
                              hasNextPage
                          }
                      }
                  }
              }
              %s
              """
          % public.SWEEP_FRAGMENT
      )
      variable_values = {"project": self.name, "entity": self.entity}
      ret = self.client.execute(query, variable_values)
      if ret["project"]["totalSweeps"] < 1:
          return []
  
      return [
          # match format of existing public sweep apis
          public.Sweep(
              self.client,
              self.entity,
              self.name,
              e["node"]["name"],
              attrs={
                  "id": e["node"]["id"],
                  "name": e["node"]["name"],
                  "bestLoss": e["node"]["bestLoss"],
                  "config": e["node"]["config"],
              },
          )
          for e in ret["project"]["sweeps"]["edges"]
      ]
  
imports: from wandb_gql import gql
  from wandb.apis import public
  from wandb.apis.attrs import Attrs
  from wandb.apis.normalize import normalize_exceptions
  from wandb.apis.paginator import Paginator
  from wandb.sdk.lib import ipython
label_desc: Use image node_id 8 for calling the Project obj's underlying member method code with example usage: obj.sweeps() and returns: unknown, list