@voir_yeux · Post #12340 · 30.03.2026 г., 16:38
🇹🇭🇷🇺 Des plats de la haute cuisine russe sont présentés lors d’un festival gastronomique à Bangkok. #festival#cuisine#bangkok
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #397 · 12 ное.
Использование Pydantic сегодня стало нормой, и это правильно. Но иногда на ревью вижу, что используют его не всегда корректно. Например, метод BaseModel.model_dump() по умолчанию не преобразует стандартные типы, такие как datetime, UUID или Decimal, в простой сериализуемый для JSON вид. Тогда пишут кастмоный сериализатор для этих типов чтобы функция json.dump() не падала с ошибкой. import uuid from datetime import datetime from decimal import Decimal from uuid import UUID from pydantic import BaseModel class MyModel(BaseModel): id: UUID date: datetime value: Decimal obj = MyModel( id=uuid.uuid4(), date=datetime.now(), value='1.23' ) print(obj.model_dump()) # не подходит для json.dump # { # 'id': UUID('4f8c1bc4-25fd-40cd-9dbe-2c73639b0dc1'), # 'date': datetime.datetime(2025, 12, 12, 12, 12, 12, 111111), # 'value': Decimal('1.23') # } # добавляем свой кастомный сериализатор json.dumps(obj.model_dump(), cls=MySerializer) # { # 'id': '4f8c1bc4-25fd-40cd-9dbe-2c73639b0dc1', # 'date': '2025-12-12T12:12:12.111111', # 'value': '1.23' # } В данном случае класс MySerializer обрабатывает datetime, UUID и Decimal. Например так: class MySerializer(json.JSONEncoder): def default(self, o): if isinstance(o, Decimal): return str(o) elif isinstance(o, datetime): return o.isoformat() elif isinstance(o, UUID): return str(o) return super().default(o) Специально для тех, кто всё еще так делает - в этом нет необходимости! Pydantic может это сделать сам, просто нужно добавить параметр mode="json". json.dumps(obj.model_dump(mode="json")) # { # 'id': '4f8c1bc4-25fd-40cd-9dbe-2c73639b0dc1', # 'date': '2012-12-12T12:12:12.111111', # 'value': '1.23' # } #pydantic#libs
Пребарај: #cuisine
@voir_yeux · Post #12340 · 30.03.2026 г., 16:38
🇹🇭🇷🇺 Des plats de la haute cuisine russe sont présentés lors d’un festival gastronomique à Bangkok. #festival#cuisine#bangkok
@voir_yeux · Post #11801 · 17.02.2026 г., 18:39
🇧🇯🇷🇺🍽 La patronne de l'unique restaurant russe au Bénin, Natalia Souslova, raconte l'histoire de son établissement, parle de sa clientèle et explique ses choix culinaires. #bénin#restaurant#russie#cuisine
Hashtags
@voir_yeux · Post #11765 · 16.02.2026 г., 18:08
🇫🇷🇷🇺 À l’occasion du début de la semaine de Maslenitsa (la fête du gras) en Russie, le chef Éric Le Provos, propriétaire d’un restaurant français à Moscou, revient sur l’histoire récente de la cuisine française dans la capitale russe et explique qu’elle permet un échange culturel. #restaurant#maslenitsa#cuisine#moscou
@Wallpaper_Prime · Post #23537 · 21.12.2025 г., 09:02
#еда#кухня#десерт#food#cuisine#dessert ⭐️ «Wallpaper Prime» ⭐️
@Wallpaper_Prime · Post #23059 · 08.12.2025 г., 09:03
#еда#кухня#десерт#food#cuisine#dessert ⭐️ «Wallpaper Prime» ⭐️
@voir_yeux · Post #11797 · 17.02.2026 г., 15:19
🇫🇷🇷🇺 À l’occasion du début de la semaine de Maslenitsa (la fête du gras) en Russie, Éric Le Provos, propriétaire d’un restaurant français à Moscou, explique que les Russes veulent toujours retrouver le goût de la cuisine française et sont la nation qui aime le plus la France. #restaurant#mardigras#cuisine#moscou
@sarconsulurals · Post #2811 · 18.11.2025 г., 02:46
🍛Two Iconic South African Curries 🇿🇦 Two of the most famous curries in South African cuisine represent the two port cities — Cape Town on the west coast and Durban on the east. ⚓️ Even their names reflect their origins: 🌶Cape Malay Curry Powder refers to Cape Town’s Malay community, 🔥Durban Curry Masala — to Durban’s Indian community. The Cape curry is slightly sweeter and milder, while the Durban curry is hotter and more vibrant thanks to the addition of Kashmiri red chili. 🌶 Source: https://t.me/africamother/800 #SouthAfrica#Food#Cuisine#Cooking#CapeTown#Durban#Spices#Curry
@m1r0slavakarpovich · Post #1601 · 13.09.2024 г., 18:05
ПЯТНИЦА 13-ое Кухня Мира 😎😜😂🖤 Кто придумает оригинальное название кулинарного шоу ,я нарисую лучшие билеты в театр 😉 С пылу с жару создавала кадры @p.pollyyyyyyyyyy Розочки,корсеты,подвязки от @pppppppppp.ssssssssss Вишни,персики,игристость от @villlllss Кухонные интерьеры от @villa_rossa_s #дикаякухня#отчаяннаяповариха#дорогаякухня#ожогиподжогитомления#сукиякитериякихаракири#тостерблендердвастола#достатьножи#дичь#фартукипрочь#woldwidekitchen#queenofthewild#chopchopchop#cookingheaven#photooftheday#moodoftheday#blackandwhitephotography#photography#actress#kitchen#mira#femme#sensitive#purelove#fashion#blackdress#friday#fridayvibes#lady#chef#cuisine
Hashtags