Skip to content

Commit 94d1e3a

Browse files
Merge pull request #1 from aiven/main
update from head
2 parents 33e49c0 + fd59907 commit 94d1e3a

File tree

2 files changed

+14
-17
lines changed

2 files changed

+14
-17
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ python main.py \
4747
```
4848
Where
4949
* `security-protocol`: Security protocol for Kafka. PLAINTEXT or SSL are supported.
50-
* `cert-folder`: points to the folder containing the Apache Kafka certificates (see [blog post](https://aiven.io/blog/create-your-own-data-stream-for-kafka-with-python-and-faker?utm_source=github&utm_medium=organic&utm_campaign=blog_art&utm_content=post) for more)
50+
* `cert-folder`: points to the folder containing the Apache Kafka CA certificate, Access certificate and Access key (see [blog post](https://aiven.io/blog/create-your-own-data-stream-for-kafka-with-python-and-faker?utm_source=github&utm_medium=organic&utm_campaign=blog_art&utm_content=post) for more)
5151
* `host`: the Apache Kafka host
5252
* `port`: the Apache Kafka port
5353
* `topic-name`: the Apache Kafka topic name to write to (the topic needs to be pre-created or `kafka.auto_create_topics_enable` parameter enabled)

pizzaproducer.py

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,19 @@ def pizza_name(self):
2020

2121
def pizza_topping(self):
2222
available_pizza_toppings = [
23-
'tomato',
24-
'mozzarella',
25-
'blue cheese',
26-
'salami',
27-
'green peppers',
28-
'ham',
29-
'olives',
30-
'anchovies',
31-
'artichokes',
32-
'olives',
33-
'garlic',
34-
'tuna',
35-
'onion',
36-
'pineapple',
37-
'strawberry',
38-
'banana'
23+
'🍅 tomato',
24+
'🧀 blue cheese',
25+
'🥚 egg',
26+
'🫑 green peppers',
27+
'🌶️ hot pepper',
28+
'🥓 bacon',
29+
'🫒 olives',
30+
'🧄 garlic',
31+
'🐟 tuna',
32+
'🧅 onion',
33+
'🍍 pineapple',
34+
'🍓 strawberry',
35+
'🍌 banana'
3936
]
4037
return random.choice(available_pizza_toppings)
4138

0 commit comments

Comments
 (0)