Python Bytes

著者: Michael Kennedy and Brian Okken
  • サマリー

  • Python Bytes is a weekly podcast hosted by Michael Kennedy and Brian Okken. The show is a short discussion on the headlines and noteworthy news in the Python, developer, and data science space.
    Copyright 2016-2024
    続きを読む 一部表示

あらすじ・解説

Python Bytes is a weekly podcast hosted by Michael Kennedy and Brian Okken. The show is a short discussion on the headlines and noteworthy news in the Python, developer, and data science space.
Copyright 2016-2024
エピソード
  • #415 Just put the fries in the bag bro
    2024/12/23
    Topics covered in this episode: dbos-transact-pyTyped Python in 2024: Well adopted, yet usability challenges persistRightTyperLazy self-installing Python scripts with uvExtrasJokeWatch 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: dbos-transact-py DBOS Transact is a Python library providing ultra-lightweight durable execution.Durable execution means your program is resilient to any failure.If it is ever interrupted or crashes, all your workflows will automatically resume from the last completed step.Under the hood, DBOS Transact works by storing your program's execution state (which workflows are currently executing and which steps they've completed) in a Postgres database.Incredibly fast, for example 25x faster than AWS Step Functions. Brian #2: Typed Python in 2024: Well adopted, yet usability challenges persist Aaron Pollack on Engineering at Meta blog“Overall findings 88% of respondents “Always” or “Often” use Types in their Python code.IDE tooling, documentation, and catching bugs are drivers for the high adoption of types in survey responses,The usability of types and ability to express complex patterns still are challenges that leave some code unchecked.Latency in tooling and lack of types in popular libraries are limiting the effectiveness of type checkers.Inconsistency in type check implementations and poor discoverability of the documentation create friction in onboarding types into a project and seeking help when using the tools. “Notes Seems to be a different survey than the 2023 (current) dev survey. Diff time frame and results. July 29 - Oct 8, 2024 Michael #3: RightTyper A fast and efficient type assistant for Python, including tensor shape inference Brian #4: Lazy self-installing Python scripts with uv Trey HunnerCreating your own ~/bin full of single-file command line scripts is common for *nix folks, still powerful but underutilized on Mac, and trickier but still useful on Windows.Python has been difficult in the past to use for standalone scripts if you need dependencies, but that’s no longer the case with uv.Trey walks through user scripts (*nix and Mac) Using #! for scripts that don’thave dependenciesUsing #! with uv run --script and /// script for dependenciesDiscussion about how uv handles that. Extras Brian: Courses at pythontest.com If you live in a place (or are in a place in your life) where these prices are too much, let me know. I had a recent request and I really appreciate it. Michael: Python 3.14 update releasedTop episodes of 2024 at Talk PythonUniversal check for updates macOS: Settings > Keyboard > Keyboard shortcuts > App shortcuts > +Then add shortcut for single app, ^U and the menu title. Joke: Python with rizz
    続きを読む 一部表示
    33 分
  • #414 Because we are not monsters
    2024/12/16
    Topics covered in this episode: New project to shorten django-admin to django because we are not monstersdjango-unicorn: The magical reactive component framework for Django Testing some tidbitsThe State of Python 2024 articleExtrasJokeWatch 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. Brian #1: New project to shorten django-admin to django because we are not monsters Jeff Tripplet has created django-cli-no-admin to shorten django-admin to just django.“One of the biggest mysteries in Django is why I have to run django-admin from my terminal instead of just running django. Confusingly, django-admin has nothing to do with Django’s admin app.”Instead of typing things like: django-admin startproject mysite projectnameWe can type the shorter: django startproject mysite projectnameI love this kind of developer speedup / comfort improvementsAnd yes, Jeff wants Django to eventually include this as the default way to run the command line utilities. Michael #2: django-unicorn: The magical reactive component framework for Django Add modern site functionality: Quickly add in simple interactions to regular Django templates without learning a new templating language.Skip the JavaScript build toolsNo API required: Skip creating a bunch of serializers and just use Django. Brian #3: Testing some tidbits Ned BatchelderDifferent ways to test to see if a string has only 0 or 1 in it.And also, a way to check all the different ways to make sure they work.Fun post, and I learned about cleandoc - a way to strip leading blank space and maintain code block indentation I usually use textwrap.dedent()partition - splitting strings based on a substringUsing | to pass imports to eval() - I don't use eval much.However, no pytest! Here’s a way to check all this with pytest: Testing some tidbits with pytest Michael #4: The State of Python 2024 article Python usage with other languages drops as general adoption grows41% of Python developers have under 2 years of experiencePython learning expands through diverse channelsThe Python 2 vs. 3 divide is in the distant pastFlask, Django, and FastAPI remain top Python web frameworksMost Python web apps run on hyperscale cloudsContainers over VMs over hardwareuv takes Python packaging by storm Extras Brian: More Django: Dracula Theme for Django Admin Michael: Zen Browser updateOffice refreshTranscripts (in some players) Joke: Volkswagen, passing all the tests
    続きを読む 一部表示
    30 分
  • #413 python-build-standalone finds a home
    2024/12/09
    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
    続きを読む 一部表示
    31 分

Python Bytesに寄せられたリスナーの声

カスタマーレビュー:以下のタブを選択することで、他のサイトのレビューをご覧になれます。