@fight4f · Post #9103 · 24.03.2025 г., 18:13
土耳其局勢 我一直強調,以色列是一個小國,它的侵略性離不開歐美的支持。 巴勒斯坦週邊的阿拉伯國家也在經濟和軍事上向歐美(以色列)投降。 非阿拉伯土耳其(泛突厥)也深受歐美經濟影響,在軍事上不會支持加薩。 現在甚至被西方世俗主義者(反對派)在國內組織起來,搞顏色革命。 #note
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
Пребарај: #note
@fight4f · Post #9103 · 24.03.2025 г., 18:13
土耳其局勢 我一直強調,以色列是一個小國,它的侵略性離不開歐美的支持。 巴勒斯坦週邊的阿拉伯國家也在經濟和軍事上向歐美(以色列)投降。 非阿拉伯土耳其(泛突厥)也深受歐美經濟影響,在軍事上不會支持加薩。 現在甚至被西方世俗主義者(反對派)在國內組織起來,搞顏色革命。 #note
Hashtags
@fight4f · Post #9102 · 23.03.2025 г., 15:53
Many people do not realize that the tragic situation in Gaza is part of Western neo-colonialism's plan of comprehensive aggression against all non-Western countries, especially the further invasion of the Arab world, which is the frontline victim group. #note
Hashtags
@swift_airdrops · Post #5979 · 30.03.2026 г., 05:37
👉 Earn up to $20/hr on Fluffle for just talking with your friends via phone call 👉 Join & Call me on Fluffle https://www.fluffle.world/?ref=asr7 ➖ Install app ➖ Use my code :- asr7 ➖ set-up country and language ➖ call friends for up to 11mins #Note :- You will give consent for your voice to be used for AI training & hope you get something stimmy from this
Hashtags
@swift_airdrops · Post #5971 · 12.03.2026 г., 13:42
👉 𝗝𝗼𝗶𝗻 𝗡𝗼𝗶𝘀𝗲 𝗪𝗮𝗶𝘁𝗹𝗶𝘀𝘁 ⏰ time: 20 secs 👉 Join with your gmail :- https://www.noise.xyz/?ref=DS4P4A4B ➖ DONE #Note :- Further info will be poste
Hashtags
@swift_airdrops · Post #5970 · 11.03.2026 г., 06:35
New airdrop: OmniPact Reward: Earn 20 PS ($2) Daily Rate: ⭐️⭐️⭐️⭐️ Winners: For Everyone Distribution: after the airdrop ends 👉 Airdrop Link :- https://omni.omnipact.io/invite?code=VFP8Q8YB 🔹Use a new BSC wallet to connect to the airdrop page 🔹Click "Create" to create an airdrop order 🔹Complete interaction (limited to 2 times per day) #Note :- This airdrop will end on July and rewards will be distributed after the airdrop ends
Hashtags
@swift_airdrops · Post #5969 · 08.03.2026 г., 10:08
👉 Arc Astra New Mining 👉 No Presale, Early Sale 👉 Total Supply 50B 👉 Community 80% Token Distribute 💓Listing Q1, 2027🔥🔥🔥🔥 📎 ARC Astra Network SignUp Link :- https://play.google.com/store/apps/details?id=com.arcastra.network 👉 Use my referral code and get 50 ARCASTRA bonus! 👉 Referral Code :- Asr7 #Note :- Friends, Archastra Network is a new strong mining app. All those who want to create an account in the early phase and keep mining daily.
Hashtags
@swift_airdrops · Post #5968 · 07.03.2026 г., 07:43
🪙 MooArmy Airdrop 💰 Rewards 15,000 $USDT Worth of $MOO Tokens 😨 300 Random Winners 👉 Join not here :- https://t.me/MooArmy_Bot?start=c_Wu9XdFdLKmUIdPyrNW4qxw 🔥 Start Join Whitelist 🔥 Complete All The Task 🔥 Earn Points Done Yhww #Note :- soon it will viral
Hashtags
@swift_airdrops · Post #5967 · 07.03.2026 г., 05:06
👉 Wallet Offer SeeGoodW 🤑 Get 1k $SGW tokens Claim 👉 Join Link :- https://t.me/SeeGoodWbot?startapp=1048396301 ➖ Open Bot & Click Profile ➖ Verify Your Face ➖ Check in Daily & Complete Tasks ➖ Staking Launching Soon.. ➖ Done #Note :- One of the best Airdrop ever join guys get free 10$ for everyone
Hashtags
@swift_airdrops · Post #5957 · 22.09.2025 г., 09:07
Providence Airdrop (6.1M) Rewards :- Point & Token Distribution date :- At TGE 👉 Airdrop Link :- https://hub.playprovidence.io/referral-signin/9C09797F ➖ Log in with your Google Account ➖ Connect New Metamask address ➖ Complete All Tasks of the airdrop #Note :- Don't skip and wait for next update of the Airdrop
Hashtags
@swift_airdrops · Post #5951 · 19.08.2025 г., 16:27
✨ Airdrop BlokDuel (FCFS Only) 💸 Reward :- 20,000,000 BLD 💲 Distribution :- At TGE 👉 Airdrop Link :- https://blokduel.xyz/airdrop?ref=U7YNxy ➖ Click "Start" to Spin your reward ➖ Submit your BSC Wallet address ➖ Complete All Task of the airdrop ➖ Try Complete task to get more SPIN opportunities and reward #Note :- BlokDuel is listed on DappRadar and will launch on BNBChain
Hashtags
@swift_airdrops · Post #5949 · 18.08.2025 г., 08:18
✨ Airdrop Syntetika (3.5M) 💲 Rewards :- Point & Token 💸 Distribution :- At TGE 👉 Airdrop Link :- https://syntetika.io/hub?ref=oi_oU9im ➖ Connect Metamask ➖ Connect your socials ➖ Complete All tasks ➖ Earn More SP points ➖ Done #Note :- Don't skip it guys Potential gain So do daily tasks before end
Hashtags
@swift_airdrops · Post #5948 · 17.08.2025 г., 09:26
✨ Airdrop waitlist Adoptionbegins 👉 Registration link :- https://www.adoptionbegins.site?ref=R2H2CH ➖ Submit Twitter Username ➖ Follow Twitter & Retweet ➖ Submit ETH Address ➖ Done #Note :- it's almost end Tommorow so join today secure your spot
Hashtags