@borkena · Post #5726 · 16.01.2026 г., 02:52
የኢትዮ ቴሌኮም ሰራተኞችን ያገቱት ታጣቂዎች በሚሊዮኖች የሚቆጠር ገንዘብ መጠየቃቸው ተሰማ https://shorturl.at/BMNcQ#Ethiopia#News#ዜና#kidnapping
Hashtags
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
Пребарај: #kidnapping
@borkena · Post #5726 · 16.01.2026 г., 02:52
የኢትዮ ቴሌኮም ሰራተኞችን ያገቱት ታጣቂዎች በሚሊዮኖች የሚቆጠር ገንዘብ መጠየቃቸው ተሰማ https://shorturl.at/BMNcQ#Ethiopia#News#ዜና#kidnapping
Hashtags
@EvaKarene_Bartlett · Post #29256 · 04.01.2026 г., 08:19
"The American flag is being burned and protested on a large scale, and the streets are ablaze in the French capital #Paris, in condemnation of the American aggression against #Venezuela and the #kidnapping of the president." https://t.me/SYRTREND/33015
Hashtags
@borkena · Post #5700 · 06.01.2026 г., 17:11
ከአዲስ አበባ ወደ አማራ ክልል ሲጓዙ የነበሩ ስድስት መንገደኞች በታጣቂዎች መገደላቸው ተገለፀ https://shorturl.at/XrZrg#Ethiopia#News#kidnapping#crime#Oromia
@America · Post #10446 · 01.04.2026 г., 13:08
🎥🇺🇸US JOURNALIST KIDNAPPED IN BAGHDAD 🔹 Freelance reporter Sarah Mitchell abducted in Baghdad's Green Zone while covering Iran war spillover effects 📹 🔹 State Department confirms kidnapping, believes Iran-backed militias responsible 🏛️ 🔹 Mitchell was investigating civilian casualties from US airstrikes when armed group surrounded her convoy 🚗 🔹 Pentagon launches rescue operation as family pleads for safe return on television 🆘 🔹 This marks the third Western journalist taken hostage in Iraq since conflict began 📰 Journalism is becoming a death sentence in this war 😬🔥 #USNews#Iraq#journalism#kidnapping @america
@reutersworldchannel · Post #149535 · 18.10.2021 г., 21:06
FBI involved in getting kidnapped missionaries 'to safety,' White House says President Joe Biden has been briefed of the missionaries who had been kidnapped in Haiti and the FBI is part of a coordinated U.S. government effort to get the U.S. citizens to safety, White House press secretary Jen Psaki said. #Haiti#kidnapping#missionaries#JenPsaki#News#Reuters Subscribe: http://smarturl.it/reuterssubscribe Reuters brings you the latest business, finance and breaking news video from around the globe. Our reputation for accuracy and impartiality is unparalleled. Get the latest news on: http://reuters.com/ Follow Reuters on Facebook: https://www.facebook.com/Reuters Follow Reuters on Twitter: https://twitter.com/Reuters Follow Reuters on Instagram: https://www.instagram.com/reuters/?hl=en ➖@reutersworldchannel➖
@venturevillagewall · Post #3959 · 23.01.2025 г., 13:00
Phemex Alert and Balland Kidnapping Update 🔍 Phemex flagged for suspicious fund outflows from hot wallets, raising concerns. 📅 Paris Prosecutors confirmed Ledger co-founder David Balland released after a kidnapping incident demanding cryptocurrency ransom. 📊 Coinbase seeks court ruling on crypto trades as non-securities amidst ongoing SEC lawsuit. #Phemex#Crypto#SEC#Ledger#Kidnapping#DavidBalland#Cryptocurrency#Coinbase#BlockChain#AI