# phi.designs

Read and export the designs in a project.

## phi.designs.export_csv

```python
phi.designs.export_csv(project_id=project_id)
```

Returns `Iterator[str]`.

| Parameter | Type | Default | Required |
|---|---|---|---|
| `project_id` | `str \| uuid.UUID` |  | Required |
| `type` | `str \| None` | `None` | Optional |
| `tool` | `str \| None` | `None` | Optional |
| `mode` | `str \| None` | `None` | Optional |
| `no_structure_uris` | `bool` | `False` | Optional |

## phi.designs.iter

```python
phi.designs.iter(project_id=project_id)
```

Returns `Iterator[Design]`.

| Parameter | Type | Default | Required |
|---|---|---|---|
| `project_id` | `str \| uuid.UUID` |  | Required |
| `type` | `str \| None` | `None` | Optional |
| `tool` | `str \| None` | `None` | Optional |
| `mode` | `str \| None` | `None` | Optional |
| `page_size` | `int` | `50` | Optional |

### Design fields and schema

```json
{
  "type": "object",
  "required": [
    "id",
    "type",
    "root_design_id",
    "project_id"
  ],
  "properties": {
    "config_fingerprint": {
      "default": null,
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "created_at": {
      "default": null,
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    },
    "curated_at": {
      "default": null,
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    },
    "curated_by": {
      "default": null,
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "curation_status": {
      "type": "string",
      "default": "unreviewed"
    },
    "dataset_id": {
      "default": null,
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ]
    },
    "evaluations": {
      "default": null,
      "anyOf": [
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Evaluation"
          }
        },
        {
          "type": "null"
        }
      ]
    },
    "extra": {
      "default": null,
      "anyOf": [
        {
          "type": "object",
          "additionalProperties": true
        },
        {
          "type": "null"
        }
      ]
    },
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "import_id": {
      "default": null,
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ]
    },
    "is_starred": {
      "type": "boolean",
      "default": false
    },
    "length": {
      "default": null,
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ]
    },
    "name": {
      "default": null,
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "parent_id": {
      "default": null,
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ]
    },
    "pipeline_node_id": {
      "default": null,
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "project_id": {
      "type": "string",
      "format": "uuid"
    },
    "root_design_id": {
      "type": "string",
      "format": "uuid"
    },
    "run_id": {
      "default": null,
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ]
    },
    "sequence": {
      "default": null,
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "source_method": {
      "default": null,
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "source_method_type": {
      "default": null,
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "structure_uri": {
      "default": null,
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "type": {
      "type": "string"
    },
    "updated_at": {
      "default": null,
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "$defs": {
    "Evaluation": {
      "type": "object",
      "required": [
        "tool",
        "mode",
        "status",
        "metrics",
        "created_at"
      ],
      "properties": {
        "config_fingerprint": {
          "default": null,
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "error": {
          "default": null,
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "metrics": {
          "type": "object",
          "additionalProperties": true
        },
        "mode": {
          "type": "string"
        },
        "pae_json_uri": {
          "default": null,
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "params": {
          "default": null,
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ]
        },
        "pipeline_node_id": {
          "default": null,
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "run_id": {
          "default": null,
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "status": {
          "type": "string"
        },
        "tool": {
          "type": "string"
        }
      }
    }
  }
}
```

## phi.designs.list

```python
phi.designs.list(project_id=project_id)
```

Returns `CursorList[Design]`.

| Parameter | Type | Default | Required |
|---|---|---|---|
| `project_id` | `str \| uuid.UUID` |  | Required |
| `type` | `str \| None` | `None` | Optional |
| `tool` | `str \| None` | `None` | Optional |
| `mode` | `str \| None` | `None` | Optional |
| `cursor` | `str \| None` | `None` | Optional |
| `page` | `int` | `1` | Optional |
| `page_size` | `int` | `50` | Optional |

### Design fields and schema

```json
{
  "type": "object",
  "required": [
    "id",
    "type",
    "root_design_id",
    "project_id"
  ],
  "properties": {
    "config_fingerprint": {
      "default": null,
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "created_at": {
      "default": null,
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    },
    "curated_at": {
      "default": null,
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    },
    "curated_by": {
      "default": null,
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "curation_status": {
      "type": "string",
      "default": "unreviewed"
    },
    "dataset_id": {
      "default": null,
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ]
    },
    "evaluations": {
      "default": null,
      "anyOf": [
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Evaluation"
          }
        },
        {
          "type": "null"
        }
      ]
    },
    "extra": {
      "default": null,
      "anyOf": [
        {
          "type": "object",
          "additionalProperties": true
        },
        {
          "type": "null"
        }
      ]
    },
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "import_id": {
      "default": null,
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ]
    },
    "is_starred": {
      "type": "boolean",
      "default": false
    },
    "length": {
      "default": null,
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ]
    },
    "name": {
      "default": null,
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "parent_id": {
      "default": null,
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ]
    },
    "pipeline_node_id": {
      "default": null,
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "project_id": {
      "type": "string",
      "format": "uuid"
    },
    "root_design_id": {
      "type": "string",
      "format": "uuid"
    },
    "run_id": {
      "default": null,
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ]
    },
    "sequence": {
      "default": null,
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "source_method": {
      "default": null,
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "source_method_type": {
      "default": null,
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "structure_uri": {
      "default": null,
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "type": {
      "type": "string"
    },
    "updated_at": {
      "default": null,
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "$defs": {
    "Evaluation": {
      "type": "object",
      "required": [
        "tool",
        "mode",
        "status",
        "metrics",
        "created_at"
      ],
      "properties": {
        "config_fingerprint": {
          "default": null,
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "error": {
          "default": null,
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "metrics": {
          "type": "object",
          "additionalProperties": true
        },
        "mode": {
          "type": "string"
        },
        "pae_json_uri": {
          "default": null,
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "params": {
          "default": null,
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ]
        },
        "pipeline_node_id": {
          "default": null,
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "run_id": {
          "default": null,
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "status": {
          "type": "string"
        },
        "tool": {
          "type": "string"
        }
      }
    }
  }
}
```


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