> ## Documentation Index
> Fetch the complete documentation index at: https://docs.streamnative.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Consume Messages

Make the `consumer.py` file executable by running the following command:

```bash theme={null}
chmod +x consumer.py
```

Run the consumer by executing the following command:

```bash theme={null}
./consumer.py
```

You should see output resembling this:

```bash theme={null}
Consumed event from topic purchases: key = awalther     value = batteries
Consumed event from topic purchases: key = awalther     value = gift card
Consumed event from topic purchases: key = awalther     value = book
Consumed event from topic purchases: key = htanaka      value = book
Consumed event from topic purchases: key = jbernard     value = alarm clock
Consumed event from topic purchases: key = eabara       value = gift card
Consumed event from topic purchases: key = jsmith       value = batteries
Consumed event from topic purchases: key = sgarcia      value = alarm clock
Consumed event from topic purchases: key = jsmith       value = book
Consumed event from topic purchases: key = sgarcia      value = alarm clock
```

Enter `Ctrl-C` to terminate the consumer application.
