@jonafzan · Post #446 · 20.06.2018 г., 08:14
📂 G-Dragon 🎤#BigBang 🎤#GDragon 📥 Link 👇👇 🌸🌸🌸Pack 1 🌸🌸🌸 t.me/addstickers/GDragonStickers 🌸🌸🌸 Pack 2 🌸🌸🌸 T.me/addstickers/BigbangStickers ⚙️@Jonafzan
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
Пребарај: #bigbang
@jonafzan · Post #446 · 20.06.2018 г., 08:14
📂 G-Dragon 🎤#BigBang 🎤#GDragon 📥 Link 👇👇 🌸🌸🌸Pack 1 🌸🌸🌸 t.me/addstickers/GDragonStickers 🌸🌸🌸 Pack 2 🌸🌸🌸 T.me/addstickers/BigbangStickers ⚙️@Jonafzan
@jonafzan · Post #39 · 19.02.2018 г., 06:42
G-Dragon #GDragon#BigBang
@jonafzan · Post #32 · 19.02.2018 г., 06:36
G-Dragon #GDragon#BigBang
@bubbletealuv · Post #3115 · 08.02.2025 г., 18:43
ᝬ 🤩𖠵 ゛ (( 🐰) new post by bubbletealuv ↝ #GDragon➛ #BigBang#Solo.. ✨ …( emoji ) 💭 взяли? буду рад увидеть плюсы и реакции.
@bubbletealuv · Post #1910 · 22.12.2023 г., 18:13
Тэян [BigBang] 🍱🍱🍱 💫установить пак💫 tag - #Taeyang#BigBang#solo#kpop
@bubbletealuv · Post #1909 · 21.12.2023 г., 19:51
Джи Драгон [BigBang] 🍜🍜🍜 🦖установить пак🦖 tag - #GDragon#BigBang#solo#kpop
@cosmomyst · Post #439 · 17.10.2025 г., 20:21
🪐 The cosmic microwave background is not just a faint afterglow—embedded within it are tiny, swirling patterns called "polarization anomalies," first mapped in detail by the Planck satellite. These twists in the microwave light tell scientists how matter and light interacted in the early universe, revealing clues about the first few moments after the Big Bang and hinting at processes like cosmic inflation—an explosive expansion that happened in fractions of a second. ✨ #cosmology⚡#universe⚡#bigbang⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels
@bubbletealuv · Post #1911 · 22.12.2023 г., 19:43
Дэсон [BigBang] 🍲🍲🍲 🐰установить пак🐰 tag - #Daesung#BigBang#solo#kpop
@abmedia_news · Post #23950 · 17.04.2026 г., 10:00
【🚀 交易市場|HYBE、SM、JYP、YG 合體推「Phenomenon」:韓版 Coachella 音樂節啟動 】 #BIGBANG#BTS#Coachella 📍 請見報導: https://abmedia.io/hybe-sm-jyp-yg-phenomenon 💸 [活動]:BingX 推出 SpaceX IPO 前資產的鏈上交易機制,進一步拓展未來高價值資產布局
Hashtags
@cosmomyst · Post #570 · 20.12.2025 г., 22:21
🪐 When the European Space Agency’s Planck satellite mapped the cosmic microwave background—the faint afterglow of the Big Bang—it found the universe’s temperature is nearly uniform everywhere, but with subtle hot and cold spots only millionths of a degree apart. These tiny temperature variations, scattered across the sky, serve as a cosmic “fossil record,” encoding clues to how galaxies, clusters, and the vast cosmic web evolved from the universe’s earliest moments. ✨ #microwaveradiation⚡#bigbang⚡#universe⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels
@cosmomyst · Post #724 · 27.03.2026 г., 22:21
🪐 The cosmic microwave background, first detected by Arno Penzias and Robert Wilson in 1965, is the faint, ancient light left over from the Big Bang that fills all of space and bathes galaxies like the Milky Way in low-energy microwaves. This "baby picture" of the universe reveals information about the cosmos just 380,000 years after its beginning, before any stars or galaxies existed, giving astronomers a unique window into how everything started and evolved. ✨ #microwaves⚡#bigbang⚡#universe⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels
@cosmomyst · Post #289 · 18.09.2025 г., 03:11
🪐 The cosmic microwave background is filled with "anisotropies"—tiny temperature variations only millionths of a degree apart, mapped in stunning detail by the Planck satellite. These subtle patterns show how matter and energy were distributed just 380,000 years after the Big Bang, providing a cosmic blueprint that led to the galaxies and clusters we see today. ✨ #microwaverelic⚡#bigbang⚡#universe⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#cosmos⚡#space 👉subscribe Universe Mysteries