Python Bytes  By  cover art

Python Bytes

By: Michael Kennedy and Brian Okken
  • Summary

  • 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
    Show more Show less
Episodes
  • #381 Python Packages in the Oven
    Apr 30 2024
    Topics covered in this episode: Announcing py2wasm: A Python to Wasm compilerExploring Python packages with Oven and PyPI BrowserPyCharm Local LLMGoogle shedding Python devs (at least in the US).ExtrasJokeWatch on YouTube About the show Sponsored by ScoutAPM: pythonbytes.fm/scout 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 11am 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: Announcing py2wasm: A Python to Wasm compiler py2wasm converts your Python programs to WebAssembly, running them at 3x faster speedsthanks to Nuitka Brian #2: Exploring Python packages with Oven and PyPI Browser pypi.org is great, but there are some handy alternativesOven Shows how to install stuff with pip, pdm, rye, and poetrySimilar meta and description as PyPIIncludes README.md view (no tables yet, though)Nice listing of versionsAbility to look at what files are in wheels and tarballs (very cool) Can deploy yourself. Node/Remix app.Really slick.PyPI Browser View versionsView wheel and tarball contents.Metadata and contents.No README viewIs a Starlette app that you can deploy on your on with a private registry. So that’s cool. Michael #3: PyCharm Local LLM Pretty awesome full line completer based on a local LLM for PyCharmRequires PyCharm ProfessionalAn example, given this partial function in Flask: @blueprint.get('/listing') def listing(): videos = video_service.all_videos() Typing ret → That is, typing ret autocompletes to: return flask.render_template('home/listing.html', videos=videos) Which is pretty miraculous, and correct. Brian #4: Google shedding Python devs (at least in the US). Google lays off staff from Flutter, Dart and Python teams weeks before its developer conference - techcrunchPython, Flutter teams latest on the Google chopping block - The Register “Despite Alphabet last week reporting a 57 percent year-on-year jump in net profit to $23.66 billion for calendar Q1, more roles are being expunged as the mega-corp cracks down on costs.”“As for the Python team, the current positions have reportedly been "reduced" in favor of a new team based in Munich.”MK: Related and timely: How one power-hungry leader destroyed Google search Extras Brian: Python Gotcha: strip, lstrip, rstrip can remove more than expected Reminder: You probably want .removesuffix() and .removeprefix() Michael: Using Llama3 in LMStudio Joke: Broken System
    Show more Show less
    29 mins
  • #380 Debugging with your eyes
    Apr 23 2024
    Topics covered in this episode: NumFOCUS concernsleaping pytest debugger llmExtra, Extra, Extra,PyPI has completed its first security auditExtrasJokeWatch 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.orgBrian: @brianokken@fosstodon.orgShow: @pythonbytes@fosstodon.org Join us on YouTube at pythonbytes.fm/live to be part of the audience. Usually Tuesdays at 11am 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: NumFOCUS concerns Suggested by Pamphile RoyWrite up of the current challenges faced by NumFOCUS, by Paul Ivanov (one of the OG of Scientific Python: Jupyter, Matplotlib, etc.) Struggling to meet the needs of sponsored and affiliated projects.In February, NumFOCUS announced it is moving in a new direction.NumFOCUS initiated an effort to run an election for open board seats and proposed changing its governance structure.Some projects are considering and actively pursuing alternative venues for fiscal sponsorship.Quite a bit more detail and discussion in the article.NumFOCUS covers a lot of projects NumPy, Matplotlib, pandas, Jupyter, SciPy, Astropy, Bokeh, Dask, Conda, and so many more. Michael #2: leaping pytest debugger llm You can ask Leaping questions like: Why am I not hitting function x?Why was variable y set to this value?What was the value of variable x at this point?What changes can I make to this code to make this test pass? Brian #3: Extra, Extra, Extra, 2024 Developer Summit Also suggested by Pamphile, related to Scientific PythonThe Second Scientific Python Developer Summit , June 3-5, Seattle, WALots of great work came out of the First Summit in 2023pytest-regex - Use regexs to specify tests to run Came out of the ’23 summitI’m not sure if I’m super happy about this or a little afraid that I probably could use this.Still, cool that it’s here.Cool short example of using __init__ and __call__ to hand-roll a decorator.ruff got faster Michael #4: PyPI has completed its first security audit Trail of Bits spent a total of 10 engineer-weeks of effort identifying issues, presenting those findings to the PyPI team, and assisting us as we remediated the findings.Scope: The audit was focused on "Warehouse", the open-source codebase that powers pypi.orgAs a result of the audit, Trail of Bits detailed 29 different advisories discovered across both codebases. When evaluating severity level of each advisory, 14 were categorized as "informational", 6 as "low", 8 as "medium" and zero as "high". Extras Brian: pytest course community to try out Podia Communities.Anyone have a podia community running strong now? If so, let me know through Mastodon: @brianokken@fosstodon.orgWant to join the community when it’s up and running? Same. Or join our our friends of the show list, and read our newsletter. I’ll be sure to drop a note in there when it’s ready. Michael: VS Code AMA @ Talk Python [video]Gunicorn CVETalk submissions are now open for both remote and in-person talks at the 2024 PyConZA? The conference will be held on 3 and 4 October 2024 in Cape Town, South Africa. Details are on za.pycon.org.FlaskCon 2024 will be happening Friday, May 17 inside PyCon US 2024. Call for proposals are now live! Joke: Debugging with your eyes
    Show more Show less
    24 mins
  • #379 Constable on the debugging case
    Apr 16 2024
    Topics covered in this episode:
    • How to Set Up Pre-Commit Hooks A step-by-step guide to installing and configuring pre-commit hooks on your project.
    • difftastic
    • Quarto
    • constable
    • Extras
    • Joke
    Watch on YouTube

    About the show

    Sponsored by us! Support our work through:

    • Our courses at Talk Python Training
    • The Complete pytest Course
    • Patreon Supporters

    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 11am 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: How to Set Up Pre-Commit Hooks A step-by-step guide to installing and configuring pre-commit hooks on your project.

    • by Stefanie Molin
    • Pre-commit hooks are code checks that run as part of the “pre-commit” stage of the git commit process.
    • If any of these checks fail, git aborts the commit
    • Sometimes, we need to bypass the hooks temporarily. For these instances, we can pass the --no-verify option when we run git commit

    Brian #2: difftastic

    • Found this a couple years ago, but really using it a lot now.
    • Excellent structurally diff tool that compares code based on syntax, not line by line.

    Michael #3: Quarto

    • via Mathias Johansson
    • An open-source scientific and technical publishing system
    • Transforming a notebook into a pdf / HTML / MS Word / ePub with minimal effort, or even all formats at once.
    • Author using Jupyter notebooks or with plain text markdown in your favorite editor.
    • Write using Pandoc markdown, including equations, citations, crossrefs, figure panels, callouts, advanced layout, and more.

    Brian #4: constable

    • “inserts print statements directly into the AST at runtime “
    • “If you find yourself aimlessly adding print statements while debugging your code, this is for you. !”
    • Add decorators like @constable.trace('a', 'b') to functions and you’ll get nice output showing when and how a and b changed.
    • see also icecream for another fun debugging with print project.

    Extras

    Brian:

    • pointers being added to the standard library
      • A couple weeks old, but still worth covering
      • Guido’s take on adding this, "Why the hell not?"

    Michael:

    • Python 3.12.3 is out

    Joke: Hugo SciFi Award

    Show more Show less
    20 mins

What listeners say about Python Bytes

Average customer ratings
Overall
  • 5 out of 5 stars
  • 5 Stars
    1
  • 4 Stars
    0
  • 3 Stars
    0
  • 2 Stars
    0
  • 1 Stars
    0
Performance
  • 5 out of 5 stars
  • 5 Stars
    1
  • 4 Stars
    0
  • 3 Stars
    0
  • 2 Stars
    0
  • 1 Stars
    0
Story
  • 5 out of 5 stars
  • 5 Stars
    1
  • 4 Stars
    0
  • 3 Stars
    0
  • 2 Stars
    0
  • 1 Stars
    0

Reviews - Please select the tabs below to change the source of reviews.

Sort by:
Filter by:
  • Overall
    5 out of 5 stars
  • Performance
    5 out of 5 stars
  • Story
    5 out of 5 stars

Great content for Python programmers

I've listened for years and am grateful for its content. If you listen, you'll learn much about Python, its ecosystem. and its contributors.

Something went wrong. Please try again in a few minutes.

You voted on this review!

You reported this review!