@tonevents_en · Post #834 · 11.09.2024 г., 13:00
$WAT is coming. Are you ready? Launch 🪙September 23rd, 2024 🪙 🔠🔠🔠🙂🔠🔠🔠🔠 🏎Hurry up and mine more! #TON#Gamee#WAT#race
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
Пребарај: #gamee
@tonevents_en · Post #834 · 11.09.2024 г., 13:00
$WAT is coming. Are you ready? Launch 🪙September 23rd, 2024 🪙 🔠🔠🔠🙂🔠🔠🔠🔠 🏎Hurry up and mine more! #TON#Gamee#WAT#race
@tonevents_en · Post #873 · 23.09.2024 г., 19:19
🪙 You can claim your $WAT tokens now 1️⃣ In GAMEE App 2️⃣ In TokenTable App Need help claiming, fren? WatBird's frens at #GAMEE make this video guide for you! 😜 If you still confused — ask your question in our chat. Claim $WAT to TON wallet and trade on 🎰🎰🎰💫 app.ston.fi/swap/WAT/TON Wat a day! ❤️ #listing#TGE#Gamee#WAT#p2e#airdrop
@airdropgoldchannel · Post #157677 · 23.09.2024 г., 17:13
💵 List of projects that will have #Airdrop in 2024. The list is not complete and will be constantly updated. ✔️#Gamee - 23 September 2024 ✔️ Rocky Rabbit - September 23, 2024 ✔️#hamsterkombat - September 26, 2024 ✔️#Major - October 1, 2024 ✔️#TonStation - October 6, 2024 ✔️#MemeFi - October 9, 2024 ✔️ X Empire - October 15, 2024 ✔️#Cats - October 2024 ✔️#TapCoins - October 2024 ✔️#Tomarket - October 2024 ✔️#SEED - November 2024 ✔️#Time Farm - November 2024 ✔️CEX.IO - December 2024 ✔️#Blum - Q4 2024 ✔️#Vertus - Q4 2024 💎 Share it By @Airdropgoldchannel Join Channel at once https://t.me/addlist/W62NCEpw6WoyY2Q0
@tonevents_en · Post #1367 · 29.03.2025 г., 12:06
🌑TON Festival: the First Gameplay Presentation is Live! The event format has grown: now #Festies is a full 3 days of activity in❤️TON, from May 23 to 25. This is the first experience of its kind in the ecosystem: interactive 3D environment, meetings with Web3 projects, quests, live challenges, prize pools and rewards directly in the on-chain. Gameplay demo is already available 👁 🚘🚘More partners, brands, announcements and surprises are coming soon! 🎟Tickets are still available at the current price, but🔥April 4 – price increase and launch of the STAMINA phase. Yesterday, an AMA "TMA: The Visual Aspect" was held at X Space— the organizers revealed details of the upcoming event 🎞Play Recording #Festies#TON#Web3#Gaming#TMA#Blum#YesCoin#Boinkers#Gamee
@tonevents_en · Post #781 · 22.08.2024 г., 20:18
😼Catizen Mini Game Center Open Beta now LIVE!🚀🎮 👌 Dive into a world of top-tier games that blend fun with innovative earning opportunities. Enjoy exclusive rewards like game airdrops and referral bonuses. 👌 Earn a 10% top-up rebate from all your referrals across all games, including Catizen! Don’t miss out — start your adventure in the Catizen Mini Game Center today! 🌟 🔡 🔡 🔡 Open beta is live! Report bugs or game feedback to earn 300 Catizen FishCoins 🪙 😸Explore Catizen Mini Game Center #catizen#gamee#play#p2e#web3#gamefi#dogs#telegram#dapp#notcon#hamsetr