-
サマリー
あらすじ・解説
Topics covered in this episode: jiterA new home for python-build-standalonemoka-pyuv: An In-Depth GuideExtrasJokeWatch on YouTube About the show Sponsored by us! Support our work through: Our courses at Talk Python TrainingThe Complete pytest CoursePatreon Supporters Connect with the hosts Michael: @mkennedy@fosstodon.org / @mkennedy.codes (bsky)Brian: @brianokken@fosstodon.org / @brianokken.bsky.socialShow: @pythonbytes@fosstodon.org / @pythonbytes.fm (bsky) Join us on YouTube at pythonbytes.fm/live to be part of the audience. Usually Monday at 10am PT. Older video versions available there too. Finally, if you want an artisanal, hand-crafted digest of every week of the show notes in email form? Add your name and email to our friends of the show list, we'll never share it. Michael #1: jiter Fast iterable JSON parser.About to be the backend for Pydantic and Logfire. Currently powers OpenAI / ChatGPT (along with Pydantic itself), at least their Python library, maybe more.jiter has three interfaces: JsonValue an enum representing JSON dataJiter an iterator over JSON dataPythonParse which parses a JSON string into a Python objectjiter-python - This is a standalone version of the JSON parser used in pydantic-core. The recommendation is to only use this package directly if you do not use pydantic Brian #2: A new home for python-build-standalone Charlie MarshSee also Transferring Python Build Standalone Stewardship to Astral from Gregory Szorcpython-build-standalone is the project that has prebuilt binaries for different architectures.used by uv python install 3.12 and uv venv .venv --python 3.12 and uv syncThis is good stability news for everyone.Interesting discussion of prebuilt Python from Charlie Michael #3: moka-py A high performance caching library for Python written in Rustmoka-py is a Python binding for the highly efficient Moka caching library written in Rust. This library allows you to leverage the power of Moka's high-performance, feature-rich cache in your Python projects.Features Synchronous Cache: Supports thread-safe, in-memory caching for Python applications.TTL Support: Automatically evicts entries after a configurable time-to-live (TTL).TTI Support: Automatically evicts entries after a configurable time-to-idle (TTI).Size-based Eviction: Automatically removes items when the cache exceeds its size limit using the TinyLFU policy.Concurrency: Optimized for high-performance, concurrent access in multi-threaded environments. Brian #4: uv: An In-Depth Guide On SaaS Pegasus blog, so presumably by Cory ZueGood intro to uvAlso a nice list of everyday commands Install python: uv python install 3.12 I don’t really use this anymore, as uv venv .venv --python 3.12 or uv sync install if necessarycreate a virtual env: uv venv .venv --python 3.12install stuff: uv pip install djangoadd project dependenciesbuild pinned dependenciesAlso discussion about adopting the new workflow Extras Brian: PydanticAI - not sure why I didn’t see that comingIn the “good to know” and “commentary on society” area: Anti-Toxicity Features on BlueskyThe WIRED Guide to Protecting Yourself From Government Surveillance Michael: Go sponsor a bunch of projects on GitHubRegistration is open for PyCon Joke: Inf