> ## 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.

# Produce Messages

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

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

Run the producer by executing the following command:

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

You should see output resembling this:

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