forked from Aiven-Labs/grocery-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
groceryLists.py
242 lines (231 loc) · 6.84 KB
/
groceryLists.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
easter_groceries = {
"1 dozen Easter eggs": 5.99,
"Easter bunny chocolate": 3.49,
"Hot cross buns (6 pack)": 4.99,
"Leg of lamb (1kg)": 19.99,
"Ham (1kg)": 14.99,
"Potatoes (1kg)": 1.99,
"Carrots (1kg)": 2.49,
"Green beans (500g)": 3.99,
"Asparagus (500g)": 4.99,
"Pineapple": 2.99
}
xmas_groceries = {
"Turkey (5kg)": 35.99,
"Ham (1kg)": 14.99,
"Roast beef (1kg)": 22.99,
"Potatoes (1kg)": 1.99,
"Carrots (1kg)": 2.49,
"Brussels sprouts (500g)": 2.99,
"Stuffing mix": 2.49,
"Cranberry sauce": 3.99,
"Mince pies (6 pack)": 4.99,
"Christmas pudding": 7.99
}
new_years_groceries = {
"Champagne": 29.99,
"Sparkling wine": 12.99,
"Party hats (10 pack)": 5.99,
"Noise makers (10 pack)": 6.99,
"Cheese platter": 19.99,
"Crackers": 2.99,
"Assorted nuts": 7.99,
"Shrimp cocktail": 15.99,
"Vegetable platter": 12.99,
"Chocolate truffles": 9.99
}
valentines_groceries = {
"Box of chocolates": 14.99,
"Bouquet of flowers": 39.99,
"Heart-shaped cake": 24.99,
"Red wine": 19.99,
"Champagne": 29.99,
"Strawberries (500g)": 4.99,
"Whipped cream": 2.99,
"Filet Mignon (500g)": 29.99,
"Salmon fillet (500g)": 19.99,
"Cheese fondue set": 39.99
}
thanksgiving_groceries = {
"Turkey (5kg)": 35.99,
"Gravy mix": 2.99,
"Stuffing mix": 2.49,
"Cranberry sauce": 3.99,
"Mashed potatoes (1kg)": 2.99,
"Sweet potatoes (1kg)": 3.99,
"Green beans (500g)": 3.99,
"Brussels sprouts (500g)": 2.99,
"Pumpkin pie": 8.99,
"Apple pie": 12.99
}
groceries = {
"Apples (1kg)": 2.99,
"Bananas (1kg)": 1.49,
"Oranges (1kg)": 3.49,
"Pears (1kg)": 2.99,
"Grapes (1kg)": 5.99,
"Strawberries (500g)": 4.99,
"Raspberries (500g)": 3.99,
"Blueberries (500g)": 4.99,
"Pineapple": 2.99,
"Watermelon": 5.99,
"Cantaloupe": 2.99,
"Honeydew melon": 2.99,
"Carrots (1kg)": 2.49,
"Broccoli (1kg)": 3.99,
"Cauliflower (1kg)": 3.49,
"Cabbage (1kg)": 1.99,
"Lettuce (1 head)": 1.99,
"Spinach (250g)": 1.99,
"Kale (250g)": 2.49,
"Cucumber": 1.49,
"Tomatoes (1kg)": 3.99,
"Bell peppers (1kg)": 4.99,
"Onions (1kg)": 1.99,
"Garlic (100g)": 1.49,
"Potatoes (1kg)": 1.99,
"Sweet potatoes (1kg)": 3.99,
"Butternut squash": 2.99,
"Zucchini (1kg)": 2.99,
"Eggplant": 1.99,
"Mushrooms (250g)": 2.99,
"Avocado": 1.99,
"Lemons (1kg)": 3.99,
"Limes (1kg)": 2.99,
"Ginger (100g)": 2.49,
"Basil (25g)": 2.99,
"Cilantro (25g)": 1.99,
"Rosemary (25g)": 2.49,
"Thyme (25g)": 2.49,
"Parsley (25g)": 1.99,
"Sage (25g)": 2.99,
"Oregano (25g)": 1.99,
"Bay leaves (25g)": 1.99,
"Ground beef (1kg)": 8.99,
"Ground turkey (1kg)": 9.99,
"Boneless chicken breasts (1kg)": 10.99,
"Bone-in chicken thighs (1kg)": 7.99,
"Salmon fillet (500g)": 19.99,
"Tilapia fillet (500g)": 11.99,
"Tuna steak (500g)": 21.99,
"Shrimp (500g)": 15.99,
"Pork chops (1kg)": 12.99,
"Bacon (500g)": 6.99,
"Sausages (500g)": 5.99,
"Ham (1kg)": 14.99,
"Steak (1kg)": 25.99,
"Lamb chops (1kg)": 32.99,
"White rice (1kg)": 2.99,
"Brown rice (1kg)": 3.49,
"Quinoa (500g)": 5.99,
"Pasta (500g)": 1.99,
"Bread loaf": 2.49,
"Tortillas (10 pack)": 2.99,
"Bagels (6 pack)": 3.49,
"English muffins (6 pack)": 2.99,
"Hamburger buns (6 pack)": 2.49,
"Hot dog buns (6 pack)": 2.49,
"Milk (1L)": 1.99,
"Almond milk (1L)": 2.99,
"Soy milk (1L)": 2.49,
"Orange juice (1L)": 2.49,
"Apple juice (1L)": 1.99,
"Cranberry juice (1L)": 3.49,
"Grapefruit juice (1L)": 2.99,
"Grape juice (1L)": 3.49,
"Sparkling water (1L)": 1.99,
"Still water (1L)": 0.99,
"Soda (2L)": 1.99,
"Coffee (500g)": 9.99,
"Tea bags (50 pack)": 2.99,
"Sugar (1kg)": 2.99,
"Flour (1kg)": 2.49,
"Baking powder (100g)": 1.49,
"Baking soda (100g)": 1.49,
"Yeast (100g)": 2.49,
"Olive oil (1L)": 7.99,
"Vegetable oil (1L)": 2.99,
"Coconut oil (500ml)": 6.99,
"Salt (500g)": 1.99,
"Pepper (100g)": 1.99,
"Garlic powder (100g)": 2.49,
"Onion powder (100g)": 2.49,
"Cumin (100g)": 2.99,
"Paprika (100g)": 1.99,
"Chili powder (100g)": 2.49,
"Curry powder (100g)": 2.99,
"Soy sauce (500ml)": 3.99,
"Hot sauce (250ml)": 2.99,
"Ketchup (1L)": 3.99,
"Mayonnaise (500g)": 2.99,
"Mustard (500ml)": 2.99,
"Barbecue sauce (500ml)": 3.99,
"Honey (500g)": 6.99,
"Peanut butter (500g)": 3.99,
"Jam (500g)": 2.99,
"Nutella (350g)": 3.99,
"Cheese (250g)": 3.99,
"Feta cheese (250g)": 4.99,
"Parmesan cheese (100g)": 2.99,
"Cheddar cheese (250g)": 4.49,
"Mozzarella cheese (250g)": 3.99,
"Yogurt (500g)": 1.99,
"Sour cream (500g)": 2.99,
"Cream cheese (250g)": 2.99,
"Cottage cheese (250g)": 1.99,
"Ice cream (1L)": 4.99,
"Frozen vegetables (1kg)": 3.99,
"Frozen fruit (500g)": 4.99,
"Frozen pizza": 5.99,
"Potato chips (200g)": 2.49,
"Tortilla chips (200g)": 2.49,
"Popcorn (200g)": 1.99,
"Peanuts (500g)": 3.99,
"Almonds (500g)": 7.99,
"Cashews (500g)": 9.99,
"Pistachios (500g)": 12.99,
"Raisins (500g)": 3.99,
"Dried cranberries (500g)": 5.99,
"Chocolate chips (500g)": 4.99,
"Cocoa powder (250g)": 2.99,
"Marshmallows (200g)": 1.99,
"Graham crackers (200g)": 2.99,
"Granola (500g)": 3.99,
"Oatmeal (1kg)": 2.99,
"Cereal (500g)": 3.49,
"Energy bars (10 pack)": 7.99,
"Protein bars (10 pack)": 12.99,
"Protein powder (1kg)": 19.99,
"Multivitamins (100 count)": 9.99,
"Fish oil capsules (100 count)": 14.99,
"Vitamin C tablets (100 count)": 7.99,
"Pain reliever (24 count)": 4.99,
"Antacid tablets (24 count)": 3.99,
"Allergy medication (24 count)": 5.99,
"Toilet paper (12 pack)": 7.99,
"Paper towels (6 pack)": 4.99,
"Facial tissues (3 pack)": 3.99,
"Dish soap (500ml)": 2.99,
"Laundry detergent (1L)": 7.99,
"Hand soap (250ml)": 1.99,
"Shampoo (500ml)": 4.99,
"Conditioner (500ml)": 4.99,
"Body wash (500ml)": 3.99,
"Toothpaste (100g)": 1.99,
"Toothbrush": 2.49,
"Razors (10 pack)": 9.99,
"Shaving cream (200ml)": 2.99,
"Deodorant (50g)": 2.99,
"Feminine hygiene products (24 pack)": 5.99,
"Diapers (40 pack)": 15.99
}
def sort_groceries_by_price(groceries_dict):
sorted_groceries = sorted(groceries_dict.items(), key=lambda x: x[1])
return dict(sorted_groceries)
class GroceryList:
xmas = sort_groceries_by_price(xmas_groceries)
new_year = sort_groceries_by_price(new_years_groceries)
valentines = sort_groceries_by_price(valentines_groceries)
easter = sort_groceries_by_price(easter_groceries)
thanksgiving = sort_groceries_by_price(thanksgiving_groceries)
general = sort_groceries_by_price(groceries)