Page de couverture de Python Bytes

Python Bytes

Auteur(s): Michael Kennedy and Brian Okken
  • Résumé

  • 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
    Voir plus Voir moins
Épisodes
  • #383 Why aren’t devs shipping faster?
    May 14 2024
    Topics covered in this episode: I asked 100 devs why they aren’t shipping faster. Here’s what I learnedPython 3.13.0 beta 1 releasedA theme editor for JupyterLabrich-argparseExtrasJokeWatch 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. Michael #1: I asked 100 devs why they aren’t shipping faster. Here’s what I learned by Daksh Gupta (via PyCoders)What’s stopping you from shipping faster? Dependency bugs Complicated codebase >There is so much undocumented in our service, including poor records of new features, nonexistent or outdated info on our dependencies, or even essential things like best practices for testing, a lot of time is wasted in syncs trying to find the right informationQA LoopsWaiting for spec > At Amazon? Meetings, approval, talking to 10 different stakeholders because changing the color of a button affects 15 micro servicesWriting testsDeployment/build speedScope creep > The human tendency to stuff last-minute items into the crevices of their luggage minutes before leaving for the airport manifests itself at software companies as scope creep.Unclear requirementsExcessive meetingsMotivation >honest answer is i was on ads>and that’s a very old / complicated / large stack (edited)>and i didn’t understand it>my friends on younger teams seemed happier, i was miserableDORA metrics Brian #2: Python 3.13.0 beta 1 released "Python 3.13 is still in development. This release, 3.13.0b1, is the first of four beta release previews of 3.13.”New REPL, featuring multi-line editing, color support, colorized exception tracebacksCool GIL, JIT, and GC featuresTyping changes, including typing.TypeIs . See last weeks episode and TypeIs does what I thought TypeGuard would do in PythonSome nice dead battery removalsand moreBut seriously, the REPL is cool. Just ask Trey The new REPL in Python 3.13 - Trey Hunner Michael #3: A theme editor for JupyterLab by Florence HaudinA new tool for authoring JupyterLab themesTo lower the bar for customizing JupyterLab we created a new tool providing a simple interface for tuning the JupyterLab appearance interactively.See jupyterlab-theme-editor on github Brian #4: rich-argparse “Format argparse and optparse help using rich.”“rich-argparse improves the look and readability of argparse's help while requiring minimal changes to the code.”They’re not kidding. 2 line code change. from rich_argparse import RichHelpFormatter parser = argparse.ArgumentParser(..., formatter_class=RichHelpFormatter) Extras Brian: pytest course is now switched to the new platform. I sent out an email including how to save their spot on the old site and mark that spot complete on the new site.There’s now comments on the course now. Trying that out. If you’ve got a question, just ask in that section. Michael: A new Talk Python course: Getting Started with NLP and spaCy Joke: Testing holiday
    Voir plus Voir moins
    31 min
  • #382 A Simple Game
    May 7 2024
    Topics covered in this episode: act: Run your GitHub Actions locally! portrAnnotating args and kwargs in Pythongithub badgesExtrasJokeWatch 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. Brian #1: act: Run your GitHub Actions locally! Why? “Fast Feedback - Rather than having to commit/push every time you want to test out the changes you are making to your .github/workflows/ files (or for any changes to embedded GitHub actions), you can use act to run the actions locally. The environment variables and filesystem are all configured to match what GitHub provides.”“Local Task Runner - I love make. However, I also hate repeating myself. With act, you can use the GitHub Actions defined in your .github/workflows/ to replace your Makefile!”Docs: nektosact.comUses Docker to run containers for each action. Michael #2: portr Open source ngrok alternative designed for teamsExpose local http, tcp or websocket connections to the public internetWarning: Portr is currently in beta. Expect bugs and anticipate breaking changes.Server setup (docker basically). Brian #3: Annotating args and kwargs in Python Redowan DelowarI don’t think I’ve ever tried, but this is a fun rabbit hole.Leveraging bits of PEP-5891, PEP-6462, PEP-6553, and PEP-6924.Punchline: from typing import TypedDict, Unpack *# Python 3.12+* *# from typing_extensions import TypedDict, Unpack # < Python 3.12* class Kw(TypedDict): key1: int key2: bool def foo(*args: Unpack[tuple[int, str]], **kwargs: Unpack[Kw]) -> None: ... A recent pic from Redowan’s blog: TypeIs does what I thought TypeGuard would do in Python Michael #4: github badges A curated list of GitHub badges for your next project Extras Brian: Fake job interviews target developers with new Python backdoorLater this week, course.pythontest.com will shift from Teachable to Podia Same great content. Just a different backend.To celebrate, get 25% off at pythontest.podia.com now through this Sunday using coupon code PYTESTGetting the most out of PyCon, including juggling - Rob Ludwick Latest PythonTest episode, also cross posted to pythonpeople.fm3D visualization of dom Michael: Djangonauts Space Session 2 Applications Open! More background at Djangonauts, Ready for Blast-Off on Talk Python.Self-Hosted Open Source - Michael Kennedy on Django Chat Joke: silly games Closing song: Permission Granted
    Voir plus Voir moins
    28 min
  • #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
    Voir plus Voir moins
    29 min

Ce que les auditeurs disent de Python Bytes

Moyenne des évaluations de clients

Évaluations – Cliquez sur les onglets pour changer la source des évaluations.