@degenpump_crypto_pump_signals · Post #504625 · 13.05.2026 г., 04:33
#1000PEPE/USDT Take-Profit target 1 ✅ Profit: 21.8596% 📈 Period: 7 hr 20 min ⏰
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
Пребарај: #1000pepe
@degenpump_crypto_pump_signals · Post #504625 · 13.05.2026 г., 04:33
#1000PEPE/USDT Take-Profit target 1 ✅ Profit: 21.8596% 📈 Period: 7 hr 20 min ⏰
Hashtags
@coin_signals · Post #16537 · 21.04.2025 г., 04:22
Binance Futures, ByBit USDT #1000PEPE/USDT Take-Profit target 2 ✅ Profit: 50.5062% 📈 Period: 3 Days 16 Hours 56 Minutes ⏰
Hashtags
@binancesignals · Post #6480 · 16.04.2026 г., 02:34
#1000PEPE BULLISH pepe is back
Hashtags
@signal_bitcoins · Post #5077 · 16.12.2024 г., 11:26
Bingx Futures (LONG) 📶#1000PEPE/USDT 📈Enter price: 0.0237200 🔛 0.0233000 1️⃣ Target: 0.0241750 2️⃣ Target: 0.0246320 3️⃣ Target: 0.025098 ⛔️ Normal Stop Loss: 0.0227985 ⚠️ 1% Risk (Isolated 3X)
Hashtags
@michaelvandepoppeanalyst · Post #4089 · 03.07.2024 г., 12:10
#1000PEPE Close 1/4 Position✅ Profit: +323% 🚀🚀🚀🚀
Hashtags
@michaelvandepoppeanalyst · Post #4088 · 03.07.2024 г., 11:57
Bingx, Binance Futures, ByBit USDT, KuCoin Futures #1000PEPE/USDT All take-profit targets achieved Profit: 375.89% 📈 Period: 23 Hours 45 Minutes ⏰
Hashtags
@michaelvandepoppeanalyst · Post #4087 · 03.07.2024 г., 11:53
Bingx, Binance Futures, ByBit USDT, KuCoin Futures #1000PEPE/USDT All take-profit targets achieved Profit: 375.89% 📈 Period: 23 Hours 45 Minutes ⏰
Hashtags
@michaelvandepoppeanalyst · Post #3872 · 18.06.2024 г., 15:55
#1000PEPE All Target Done 👍 Profit: +1126% 🚀🚀🚀🚀
Hashtags
@michaelvandepoppeanalyst · Post #3776 · 14.06.2024 г., 04:40
#1000PEPE Close 1/4 Position✅ Profit: +276% 🚀🚀🚀🚀
Hashtags
@michaelvandepoppeanalyst · Post #3774 · 13.06.2024 г., 15:26
Bingx, Binance Futures, ByBit USDT, KuCoin Futures #1000PEPE/USDT All take-profit targets achieved Profit: 375.58%📈 Period: 1 Day 4 Hours 52 Minutes ⏰
Hashtags
@michaelvandepoppeanalyst · Post #3561 · 22.05.2024 г., 21:59
#1000PEPE All Target Done 👍 Profit: +485% 🚀🚀🚀🚀
Hashtags
@alphavave · Post #2081 · 14.05.2025 г., 22:29
Look at #1000PEPE now! 🔥 💰A nice 99.8X return from this single Signal⭐ Went from 2,785% to 9,985%, that's 7,200% extra profit just by holding it a bit more 🔥 game, and nobody can match our skills. We've got the strategies, the knowledge, and the hustle to turn every opportunity into a cash-making machine 💯🤑 🎄Right now LIFETIME Membership Only $249 Want to experience the same results? DM away💰👇 @Kevindexter✅
Hashtags