# phi.projects

Create projects and find the work they contain.

## phi.projects.archive

```python
phi.projects.archive(project_id=project_id)
```

| Parameter | Type | Required |
|---|---|---|
| `project_id` | `str \| uuid.UUID` | Required |

## phi.projects.create

```python
phi.projects.create(name=name)
```

Returns `Project`.

| Parameter | Type | Default | Required |
|---|---|---|---|
| `name` | `str` |  | Required |
| `description` | `str \| None` | `None` | Optional |

### Project fields and schema

```json
{
  "type": "object",
  "required": [
    "id",
    "name",
    "description",
    "target_pdb_uri",
    "target_chain_id",
    "binder_chain_id",
    "status",
    "created_by",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "binder_chain_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "counts": {
      "default": null,
      "anyOf": [
        {
          "$ref": "#/$defs/ProjectCounts"
        },
        {
          "type": "null"
        }
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "created_by": {
      "type": "string"
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "target_chain_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "target_pdb_uri": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "$defs": {
    "ProjectCounts": {
      "type": "object",
      "description": "Run totals grouped by lifecycle state.",
      "required": [
        "running",
        "queued",
        "finished",
        "failed"
      ],
      "properties": {
        "failed": {
          "type": "integer"
        },
        "finished": {
          "type": "integer"
        },
        "queued": {
          "type": "integer"
        },
        "running": {
          "type": "integer"
        }
      }
    }
  }
}
```

## phi.projects.get

```python
phi.projects.get(project_id=project_id)
```

Returns `Project`.

| Parameter | Type | Required |
|---|---|---|
| `project_id` | `str \| uuid.UUID` | Required |

### Project fields and schema

```json
{
  "type": "object",
  "required": [
    "id",
    "name",
    "description",
    "target_pdb_uri",
    "target_chain_id",
    "binder_chain_id",
    "status",
    "created_by",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "binder_chain_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "counts": {
      "default": null,
      "anyOf": [
        {
          "$ref": "#/$defs/ProjectCounts"
        },
        {
          "type": "null"
        }
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "created_by": {
      "type": "string"
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "target_chain_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "target_pdb_uri": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "$defs": {
    "ProjectCounts": {
      "type": "object",
      "description": "Run totals grouped by lifecycle state.",
      "required": [
        "running",
        "queued",
        "finished",
        "failed"
      ],
      "properties": {
        "failed": {
          "type": "integer"
        },
        "finished": {
          "type": "integer"
        },
        "queued": {
          "type": "integer"
        },
        "running": {
          "type": "integer"
        }
      }
    }
  }
}
```

## phi.projects.iter

```python
phi.projects.iter()
```

Returns `Iterator[Project]`.

| Parameter | Type | Default | Required |
|---|---|---|---|
| `page_size` | `int` | `20` | Optional |
| `mine` | `bool` | `False` | Optional |

### Project fields and schema

```json
{
  "type": "object",
  "required": [
    "id",
    "name",
    "description",
    "target_pdb_uri",
    "target_chain_id",
    "binder_chain_id",
    "status",
    "created_by",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "binder_chain_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "counts": {
      "default": null,
      "anyOf": [
        {
          "$ref": "#/$defs/ProjectCounts"
        },
        {
          "type": "null"
        }
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "created_by": {
      "type": "string"
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "target_chain_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "target_pdb_uri": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "$defs": {
    "ProjectCounts": {
      "type": "object",
      "description": "Run totals grouped by lifecycle state.",
      "required": [
        "running",
        "queued",
        "finished",
        "failed"
      ],
      "properties": {
        "failed": {
          "type": "integer"
        },
        "finished": {
          "type": "integer"
        },
        "queued": {
          "type": "integer"
        },
        "running": {
          "type": "integer"
        }
      }
    }
  }
}
```

## phi.projects.list

```python
phi.projects.list()
```

Returns `CursorList[Project]`.

| Parameter | Type | Default | Required |
|---|---|---|---|
| `page` | `int` | `1` | Optional |
| `page_size` | `int` | `20` | Optional |
| `mine` | `bool` | `False` | Optional |
| `cursor` | `str \| None` | `None` | Optional |
| `include_counts` | `bool` | `False` | Optional |

### Project fields and schema

```json
{
  "type": "object",
  "required": [
    "id",
    "name",
    "description",
    "target_pdb_uri",
    "target_chain_id",
    "binder_chain_id",
    "status",
    "created_by",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "binder_chain_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "counts": {
      "default": null,
      "anyOf": [
        {
          "$ref": "#/$defs/ProjectCounts"
        },
        {
          "type": "null"
        }
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "created_by": {
      "type": "string"
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "target_chain_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "target_pdb_uri": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "$defs": {
    "ProjectCounts": {
      "type": "object",
      "description": "Run totals grouped by lifecycle state.",
      "required": [
        "running",
        "queued",
        "finished",
        "failed"
      ],
      "properties": {
        "failed": {
          "type": "integer"
        },
        "finished": {
          "type": "integer"
        },
        "queued": {
          "type": "integer"
        },
        "running": {
          "type": "integer"
        }
      }
    }
  }
}
```

## phi.projects.update

```python
phi.projects.update(project_id=project_id)
```

Returns `Project`.

| Parameter | Type | Required |
|---|---|---|
| `project_id` | `str \| uuid.UUID` | Required |

### Project fields and schema

```json
{
  "type": "object",
  "required": [
    "id",
    "name",
    "description",
    "target_pdb_uri",
    "target_chain_id",
    "binder_chain_id",
    "status",
    "created_by",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "binder_chain_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "counts": {
      "default": null,
      "anyOf": [
        {
          "$ref": "#/$defs/ProjectCounts"
        },
        {
          "type": "null"
        }
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "created_by": {
      "type": "string"
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "target_chain_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "target_pdb_uri": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "$defs": {
    "ProjectCounts": {
      "type": "object",
      "description": "Run totals grouped by lifecycle state.",
      "required": [
        "running",
        "queued",
        "finished",
        "failed"
      ],
      "properties": {
        "failed": {
          "type": "integer"
        },
        "finished": {
          "type": "integer"
        },
        "queued": {
          "type": "integer"
        },
        "running": {
          "type": "integer"
        }
      }
    }
  }
}
```


---
Source: https://dynophi.com/docs/sdk/projects. From the installed client, phi 0.4.2, 2026-11-23.
