@degenpump_crypto_pump_signals · Post #504720 · 14.05.2026 г., 09:09
#LAYER/USDT Take-Profit target 1 ✅ Profit: 20.3689% 📈 Period: 1 hr 37 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
Пребарај: #layer
@degenpump_crypto_pump_signals · Post #504720 · 14.05.2026 г., 09:09
#LAYER/USDT Take-Profit target 1 ✅ Profit: 20.3689% 📈 Period: 1 hr 37 min ⏰
Hashtags
@degenpump_crypto_pump_signals · Post #504717 · 14.05.2026 г., 09:08
#LAYER/USDT Take-Profit target 2 ✅ Profit: 28.6135% 📈 Period: 1 hr 37 min ⏰
Hashtags
@degenpump_crypto_pump_signals · Post #504172 · 09.05.2026 г., 22:26
#LAYER/USDT Take-Profit target 1 ✅ Profit: 18.3113% 📈 Period: 17 min ⏰
Hashtags
@CoinSonar · Post #243385 · 17.04.2026 г., 00:54
#LAYER | Volume spike (USDT PAIR) 31 times the average volume 129.36K USDT traded in 15 min └Buying vol: 81.42K USDT 🟢 Boost score: 4/10 24h Vol: 394.58K USDT (Binance) Price: 0.0902 (-1.2% in 24h)
Hashtags
@shark_grp · Post #20667 · 11.05.2026 г., 11:37
#LAYER/USDT All targets achieved 😎 Profit: 101.7812% 📈 Period: 17 hr 31 min ⏰
Hashtags
@shark_grp · Post #20641 · 10.05.2026 г., 23:43
#LAYER/USDT Take-Profit target 2 ✅ Profit: 68.7023% 📈 Period: 9 hr 29 min ⏰
Hashtags
@shark_grp · Post #20633 · 10.05.2026 г., 20:02
#LAYER/USDT Take-Profit target 1 ✅ Profit: 45.8015% 📈 Period: 5 hr 25 min ⏰
Hashtags
@MEXC_FairPrice_Spreads · Post #1426 · 27.02.2026 г., 12:27
#LAYER | 10.21% | LONG🟢 Last Price: 0.102 Fair Price: 0.1136 Max Leverage: 20x Max Size: 6.12K$ MEXC Fair Price Spreads
Hashtags
@MEXC_FairPrice_Spreads · Post #1424 · 27.02.2026 г., 12:26
#LAYER | 10.11% | LONG🟢 Last Price: 0.1014 Fair Price: 0.1128 Max Leverage: 20x Max Size: 6.08K$ MEXC Fair Price Spreads
Hashtags
@pumpleaks · Post #678 · 06.01.2024 г., 00:36
Pump Result: One of the best pumps we’ve had. The volume crossed an unprecedented $3.2 million in the first 15 minutes, catapulting #LAYER to our 10x target (957%) and making all of our members huge profits, that’s exactly why we’re the best in the world. Our coin held as the top gainers for hours after our signal, demonstrating the real power of our whales and market makers. Even though we saw a huge volume of external selling (very likely coming from the coin team), we truly delivered on the expected exceptional first pump of the year, and things are just going to get better from here. We’re still receiving an overwhelming amount of gratitude messages from members that scored big, and asking for our next pump. No stress, enjoy the profits, we’ll announce it soon. In the meantime, we’re focusing our efforts on never used before marketing strategies to bring in over 1 million new members for our next Kucoin Mega Pump, which will absolutely dwarf anything we’ve seen until now. Stay tuned for our next pump announcement.
Hashtags
@wallstreetgems · Post #583 · 06.01.2024 г., 00:37
Pump Result: One of the best pumps we’ve had. The volume crossed an unprecedented $3.2 million in the first 15 minutes, catapulting #LAYER to our 10x target (957%) and making all of our members huge profits, that’s exactly why we’re the best in the world. Our coin held as the top gainers for hours after our signal, demonstrating the real power of our whales and market makers. Even though we saw a huge volume of external selling (very likely coming from the coin team), we truly delivered on the expected exceptional first pump of the year, and things are just going to get better from here. We’re still receiving an overwhelming amount of gratitude messages from members that scored big, and asking for our next pump. No stress, enjoy the profits, we’ll announce it soon. In the meantime, we’re focusing our efforts on never used before marketing strategies to bring in over 1 million new members for our next Kucoin Mega Pump, which will absolutely dwarf anything we’ve seen until now. Stay tuned for our next pump announcement.
Hashtags
@pepe_pumps_signals · Post #293 · 06.01.2024 г., 00:36
Pump Result: One of the best pumps we’ve had. The volume crossed an unprecedented $3.2 million in the first 15 minutes, catapulting #LAYER to our 10x target (957%) and making all of our members huge profits, that’s exactly why we’re the best in the world. Our coin held as the top gainers for hours after our signal, demonstrating the real power of our whales and market makers. We truly delivered on the expected exceptional first pump of the year, and things are just going to get better from here. We’re still receiving an overwhelming amount of gratitude messages from members that scored big, and asking for our next pump. No stress, enjoy the profits, we’ll announce it soon. In the meantime, we’re focusing our efforts on never used before marketing strategies to bring in over 1 million new members for our next Kucoin Mega Pump, which will absolutely dwarf anything we’ve seen until now. Stay tuned for our next pump announcement.
Hashtags