Python Bytes
#225 SELECT Pydantic FROM MongoDB
- Autor: Vários
- Narrador: Vários
- Editor: Podcast
- Duración: 0:39:18
- Mas informaciones
Informações:
Sinopsis
Sponsored by Linode! pythonbytes.fm/linode Special guest: Sebastian Witowski Watch on YouTube Brian #1: Raspberry Pi Pico Release Announcement A review $4 microcontroller Small Extremely low power needs. Built on RP2040, a brand-new chip developed by Raspberry Pi Related: Mu : codewith.mu, 1.1.0-beta.2 Mu is “a simple Python editor for beginner programmers.” 1.1.0 support new boards, including Pico, Lego Spike, plus lots of new fixes. Michael #2: New MongoDB ODM: Beanie via PyCoders Beanie - is an asynchronous ODM for MongoDB, based on Motor and Pydantic. Very new but also very exciting. Main component of Beanie is Pydantic. It helps to implement the main feature - data structuring. Beanie Document - is an abstraction over the Pydantic BaseModel that allows working with Python objects at the application level and JSON objects at the database level. Example, classes: class TagColors(str, Enum): RED = "RED" BLUE = "BLUE" GREEN = "GREEN" class Tag(BaseModel):