@priceactionexpert · Post #8274 · 11.04.2025 г., 15:42
TRADE WAR USA AND CHINA#FUNDAMENTALS☑️☑️
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
Пребарај: #fundamentals
@priceactionexpert · Post #8274 · 11.04.2025 г., 15:42
TRADE WAR USA AND CHINA#FUNDAMENTALS☑️☑️
Hashtags
@bjjfanaticsinstructionals · Post #1870 · 15.10.2025 г., 17:54
🔥NEW RELEASE🔥 😁Jiu Jitsu University By Saulo Ribeiro😁 ➡️More than a decade after revolutionizing how jiu-jitsu is taught through the iconic Jiu-Jitsu University book, Saulo Ribeiro returns with perhaps the most anticipated instructional of the last 20 years ➡️This isn't just an instructional—it's a masterclass in BJJ fundamentals, progression, and philosophy from one of the most respected minds in the art. Saulo doesn’t just show techniques—he explains why they work, when to use them, and how to build a bulletproof foundation that lasts from white to black belt. $197😍$19.99😍 ❗️Channel Info and FAQ (MUST CHECK BEFORE BUY)❗️ 📱Payment: 📱📱📱 💰Submeta FOR FREE 🌈UFC Picks 👑MasterClass ✈️@bjjfanaticsinstructionals #SauloRibeiro#Fundamentals#Gi#IBJJF 💁♀️Buy 💁♀️
@bjjfanaticsinstructionals · Post #1902 · 05.01.2026 г., 19:35
🔥NEW RELEASE🔥 😁Geekological Approach Introduction to Jiu Jitsu Daisy Fresh Style by Heath Pedigo😁 ➡️Unlock the hidden systems behind one of the most dominant teams in jiu jitsu today. Heath Pedigo, the mastermind behind the Daisy Fresh BJJ phenomenon, unveils his revolutionary Geekological Approach – a methodical, principle-based system designed to fast-track your jiu jitsu from white to purple belt. ➡️This isn't just another fundamentals course. This is a battle-tested blueprint used to build the winningest lower belt team in the sport, straight from the gritty mats of Mt. Vernon, Illinois. Heath's style is raw, effective, and unapologetically structured – designed to produce measurable results through simple, repeatable training "games." $197😍$14.99😍 ❗️Channel Info and FAQ (MUST CHECK BEFORE BUY)❗️ 📱Payment: 📱📱📱 💰Submeta FOR FREE 👑MasterClass ✈️@bjjfanaticsinstructionals #HeathPedigo#Fundamentals#Gi#DaisyFresh 💁♀️Buy 💁♀️
@CryptoM · Post #65089 · 11.04.2026 г., 00:04
🚀 AI and Web3 Integration Shifts Focus from Hype to Fundamentals The integration of Web3 and AI is moving beyond its initial phase. According to PANews, the market's examination of the AI crypto sector is transitioning from early 'conceptual hype' to a focus on 'fundamentals and technological implementation.' During this shift, projects demonstrating strong resilience and technological breakthroughs are reshaping the market's valuation system. #AI#Web3#Crypto#TechInnovation#MarketTrends#Blockchain#Fundamentals#TechnologicalImplementation
@venturevillagewall · Post #3710 · 25.12.2024 г., 07:00
Justin Sun Transfers $245M in ETH Justin Sun's team has transferred 70,182 ETH to HTX, valued at approximately $245 million. This includes 42,905 ETH unlocked from Lido Finance and 27,277 ETH from Etherfi. Since November 10, Sun has deposited 179,101 ETH worth about $645 million in total, averaging $3,601 per ETH. Analysts suggest Ethereum could outperform Bitcoin in January 2025, potentially increasing the ETH/BTC ratio above 0.04, which may spur altcoin growth. Historical Bitcoin prices show significant growth leading up to Christmas over the years with predictions continuing for 2025. Spot On Chain | Cointelegraph | Simply Bitcoin TV #Ethereum#BTC#JustinSun#HTX#LidoFinance#Etherfi#Crypto#PriceAnalysis#MarketTrends#Altcoins#ETHBTC#Deposits#Blockchain#Trading#Fundamentals#Investing#CryptoHistory#FuturePredictions#ETFs#Growth
@CryptoM · Post #65257 · 12.04.2026 г., 11:28
🚀 STOCKS | Citic Securities Predicts A-Share Market Recovery Amid Improved Conditions On April 12, Jin10 reported that Citic Securities released a research note indicating a recovery trend in the A-share market this week. According to Jin10, this improvement is attributed to enhanced market risk appetite, liquidity, and fundamentals. Looking ahead, while the pace of growth may slow, the market is expected to continue its upward trajectory in the short term, with medium-term risks posed by sustained high oil prices. April is anticipated to see a return to fundamentals, with a focus on first-quarter reports and identifying promising industries. Industry allocation should center on sectors with high first-quarter prosperity, marginal fundamental improvements, and those benefiting from policy, low allocation levels, and seasonal demand. Key sectors to watch include resources (gold, energy metals, aluminum, minor metals), AI (optical communication, fiberglass, gas turbines), lithium batteries (battery and lithium materials), oil transportation, chemical raw materials, brokerage firms, coal, general equipment, infrastructure construction, and service consumption. #STOCKS#Ashare#MarketRecovery#CiticSecurities#Liquidity#RiskAppetite#Fundamentals#OilPrices#IndustryAllocation#Resources#Gold#EnergyMetals#Aluminum#MinorMetals#AI#OpticalCommunication#Fiberglass#GasTurbines#LithiumBatteries#BatteryMaterials#LithiumMaterials#OilTransportation#ChemicalRawMaterials#Brokerage#Coal#GeneralEquipment#InfrastructureConstruction#ServiceConsumption
Hashtags