Create a Flower Server Function
Define a flower-server Function with its source dependencies and optional image settings.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| project | str | (✓) | Project name. Required only when creating from the library; otherwise MUST NOT be set. |
| name | str | ✓ | Name that identifies the object. |
| kind | str | ✓ | Function kind. Must be flower-server. |
| uuid | str | Object ID in UUID4 format. | |
| description | str | Description of the object. | |
| labels | list[str] | List of labels. | |
| embedded | bool | Whether to embed the object in the project. | |
| image | str | Custom image name for the built container. | |
| base_image | str | Base Docker image to use for the build. | |
| requirements | list[str] | str | Additional Python requirements or a supported requirements file path. |
Requirements
Requirements can be a list of strings or a path to a supported requirements file. The SDK parses them when saving the Function. For an unversioned package available in the local environment, it may add the installed version; use an explicit version or constraint to avoid this inference.