# flytekit.interaction.parse_stdin

## Directory

### Methods

| Method | Description |
|-|-|
| [`parse_stdin_to_literal()`](#parse_stdin_to_literal) | Parses the user input from stdin and converts it to a literal of the given type. |

## Methods

#### parse_stdin_to_literal()

```python
def parse_stdin_to_literal(
    ctx: FlyteContext,
    t: typing.Type,
    message: typing.Optional[str],
    lt: typing.Optional[LiteralType],
) -> Literal
```
Parses the user input from stdin and converts it to a literal of the given type.

| Parameter | Type | Description |
|-|-|-|
| `ctx` | `FlyteContext` | |
| `t` | `typing.Type` | |
| `message` | `typing.Optional[str]` | |
| `lt` | `typing.Optional[LiteralType]` | |

---
**Source**: https://github.com/unionai/unionai-docs/blob/main/content/api-reference/flytekit-sdk/packages/flytekit.interaction.parse_stdin.md
**HTML**: https://www.union.ai/docs/v1/union/api-reference/flytekit-sdk/packages/flytekit.interaction.parse_stdin/
