Python Bytes  Por  capa

Python Bytes

De: Michael Kennedy and Brian Okken
  • Sumário

  • 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
    Exibir mais Exibir menos
  • #386 Major releases abound
    Jun 4 2024
    Topics covered in this episode: NumPy 2.0 release date is June 16Uvicorn adds multiprocess workerspixiJupyterLab 4.2 and Notebook 7.2 are availableExtrasJokeWatch on YouTube About the show Sponsored by Mailtrap: pythonbytes.fm/mailtrap Connect with the hosts Michael: @mkennedy@fosstodon.orgBrian: @brianokken@fosstodon.orgShow: @pythonbytes@fosstodon.org Join us on YouTube at pythonbytes.fm/live to be part of the audience. Usually Tuesdays 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: NumPy 2.0 release date is June 16 “This release has been over a year in the making, and is the first major release since 2006. Importantly, in addition to many new features and performance improvement, it contains breaking changes to the ABI as well as the Python and C APIs. It is likely that downstream packages and end user code needs to be adapted - if you can, please verify whether your code works with NumPy 2.0.0rc2.”NumPy 2.0.0 Release NotesNumPy 2.0 migration guide including “try just running ruff check path/to/code/ --select NPY201”“Many of the changes covered in the 2.0 release notes and in this migration guide can be automatically adapted in downstream code with a dedicated Ruff rule, namely rule NPY201.” Michael #2: Uvicorn adds multiprocess workers via John HagenThe goal was to no longer need to suggest that people use Gunicorn on top of uvicorn. Uvicorn can now in a sense "do it all”Steps to use it and background on how it works. Brian #3: pixi Suggested by Vic Kelson“pixi is a cross-platform, multi-language package manager and workflow tool built on the foundation of the conda ecosystem.”Tutorial: Doing Python development with PixiSome quotes from Vic: “Pixi is a project manager, written in Rust, that allows you to build Python projects without having Python previously installed. It’s installable with Homebrew (brew install pixi on Linux and MacOS). There’s support in VSCode and PyCharm via plugins. By default, pixi fetches packages from conda-forge, so you get the scientific stack in a pretty reliable and performant build. If a package isn’t on conda-forge, it’ll look on PyPI, or I believe you can force it to look on PyPI if you like.”“So far, it works GREAT for me. What really impressed me is that I got a Jupyter environment with CuPy utilizing my aging Nvidia GPU on the FIRST TRY.” Michael #4: JupyterLab 4.2 and Notebook 7.2 are available JupyterLab 4.2.0 has been released! This new minor release of JupyterLab includes 3 new features, 20 enhancements, 33 bug fixes and 29 maintenance tasks.Jupyter Notebook 7.2.0 has also been releasedHighlights include Easier Workspaces Management with GUIRecently opened/closed filesFull notebook windowing mode by default (renders only the cells visible in the window, leading to improved performance)Improved Shortcuts EditorDark High Contrast Theme Extras Brian: Help test Python 3.13!Help us test free-threaded Python without the GIL both from Hugo van KemenadePython Test 221: How to get pytest to import your code under test is out Michael: Bend follow up from Bernát Gábor “Bend looks roughly like Python but is nowhere there actually. For example it has no for loops, instead you're meant to use bend keyword (hence the language name) to expand calculations and another keyword to join branches. So basically think of something that resembles Python at high level, but without being compatible with that and without any of the standard library or packages the Python language provides. That being said does an impressive job at parallelization, but essentially it's a brand new language with new syntax and paradigms that you will have to learn, it just shares at first look similarities with Python the most.” Joke: Do-while
    Exibir mais Exibir menos
    21 minutos
  • #385 RESTing on Postgres
    May 27 2024
    Topics covered in this episode:
    • PostgresREST
    • How Python Asyncio Works: Recreating it from Scratch
    • Bend
    • The Smartest Way to Learn Python Regular Expressions
    • Extras
    • Joke
    Watch on YouTube

    About the show

    Sponsored by Mailtrap: pythonbytes.fm/mailtrap

    Connect with the hosts

    • Michael: @mkennedy@fosstodon.org
    • Brian: @brianokken@fosstodon.org
    • Show: @pythonbytes@fosstodon.org

    Join us on YouTube at pythonbytes.fm/live to be part of the audience. Usually Tuesdays 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: PostgresREST

    • PostgREST serves a fully RESTful API from any existing PostgreSQL database. It provides a cleaner, more standards-compliant, faster API than you are likely to write from scratch.
    • Speedy
      • First the server is written in Haskell using the Warp HTTP server (aka a compiled language with lightweight threads).
      • Next it delegates as much calculation as possible to the database.
      • Finally it uses the database efficiently with the Hasql library
    • PostgREST handles authentication (via JSON Web Tokens) and delegates authorization to the role information defined in the database. This ensures there is a single declarative source of truth for security.

    Brian #2: How Python Asyncio Works: Recreating it from Scratch

    • Jacob Padilla
    • Cool tutorial walking through how async works, including
      • Generators Review
      • The Event Loop
      • Sleeping
      • Yield to Await
      • Await with AsyncIO
    • Another great async resource is:
      • Build your Own Async
        • David Beasley talk from 2019

    Michael #3: Bend

    • A massively parallel, high-level programming language.
    • With Bend you can write parallel code for multi-core CPUs/GPUs without being a C/CUDA expert with 10 years of experience.
    • It feels just like Python!
    • No need to deal with the complexity of concurrent programming: locks, mutexes, atomics... any work that can be done in parallel will be done in parallel.

    Brian #4: The Smartest Way to Learn Python Regular Expressions

    • Christian Mayer, Zohaib Riaz, and Lukas Rieger
    • Self published ebook on Python Regex that utilizes
      • book form readings, links to video course sections
      • puzzle challenges to complete online
    • It’s a paid resource, but the min is free.

    Extras

    Brian:

    • Replay - A graphic memoir by Prince of Persia creator Jordan Mechner, recounting his own family story of war, exile and new beginnings.

    Michael:

    • PyCon 2026

    Joke: Shells Scripts

    Exibir mais Exibir menos
    24 minutos
  • #384 Force push lightly
    May 21 2024
    Topics covered in this episode: Git: Force push safely with --force-with-lease and --force-if-includesThoughts from PyCon 2024Being friendly: Strategies for friendly fork managementtachExtrasJokeWatch on YouTube About the show Sponsored by Mailtrap: pythonbytes.fm/mailtrap Connect with the hosts Michael: @mkennedy@fosstodon.orgBrian: @brianokken@fosstodon.orgShow: @pythonbytes@fosstodon.org Join us on YouTube at pythonbytes.fm/live to be part of the audience. Usually Tuesdays 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: Git: Force push safely with --force-with-lease and --force-if-includes Adam JohnsonUsing gentle force Avoid stomping on remote changes with a couple extra flags. Michael #2: Thoughts from PyCon 2024 PyCon is special - the connections you make are always more than you expectGreat to see many old friendsDid a ”live” Talk Python episode that’ll be out in a few weeks.The talks look great, we’ll let you know when they land on YouTube.Masks were a mistake - universally heard complaints from fellow attendees. This is my two cents towards a more reasonable next PyCon. Brian #3: Being friendly: Strategies for friendly fork management That’s part 2. Part 1 is Being friendly: Friendly forks 101Lessley Dennington on GitHub BlogExamples of long running friendly forks git-for-windows/git, microsift/git, github/gittwo public, one privateFork management strategies - when pulling changes downstream merging rebase git-for-windows/git uses this proactively and regularlyfake merge + rebasenew branch microsoft/git uses thisnew branch from upstream major versionsmerge previous changes to new branchtraditional merge github/git uses this, conservatively, after a few point bug fix versions Michael #4: tach A Python tool to enforce a modular, decoupled package architecture.tach allows you to define boundaries and control dependencies between your Python packages. Each package can define its public interface.If a package tries to import from another package that is not listed as a dependency, tach will report an error. If a package tries to import from another package and does not use its public interface, with strict: true set, tach will report an error.Zero runtime impact. Extras Brian: Logfire - new observability platform from the pydantic team - free for now Michael: 10% off the new spaCy course throughout May Joke: Evolution of smart products
    Exibir mais Exibir menos
    26 minutos

Sinopse

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

O que os ouvintes dizem sobre Python Bytes

Nota média dos ouvintes. Apenas ouvintes que tiverem escutado o título podem escrever avaliações.

Avaliações - Selecione as abas abaixo para mudar a fonte das avaliações.