Episoder
-
Topics covered in this episode:
GitHub action security: zizmorPython is now the top language on GitHubPython 3.13, what didn't make the headlinesPyCon US 2025ExtrasJokeWatch on YouTubeAbout the show
Sponsored by:
ScoutAPM - Django Application Performance MonitoringCodeium - Free AI Code Completion & ChatConnect with the hosts
Michael: @[email protected]: @[email protected]: @[email protected]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: GitHub action security: zizmor
Article: Ned Batchelder zizmor: William Woodruff & othersâa new tool to check your GitHub action workflows for security concerns.âInstall with cargo or brew, then point it at workflow yml files.It reports security concerns.Michael #2: Python is now the top language on GitHub
Thanks to Pat Decker for the heads up.A rapidly growing number of developers worldwideThis suggests AI isnât just helping more people learn to write code or build software fasterâitâs also attracting and helping more people become developers. First-time open source contributors continue to show wide-scale interest in AI projects. But we arenât seeing signs that AI has hurt open source with low-quality contributions.Python is now the most used language on GitHub as global open source activity continues to extend beyond traditional software development.The rise in Python usage correlates with large communities of people joining the open source community from across the STEM world rather than the traditional community of software developers.Thereâs a continued increase in first-time contributors to open source projects. 1.4 million new developers globally joined open source with a majority contributing to commercially backed and generative AI projects. Notably, we did not see a rise in rejected pull requests. This could indicate that quality remains high despite the influx of new contributors.Brian #3: Python 3.13, what didn't make the headlines
Some pretty cool updates to pdb : the command line Python debuggermultiline editingcode completion pathlib has a bunch of performance updatespython -m venv adds a .gitignore file that auto ignores the venv.Michael #4: PyCon US 2025
Site is live with CFP and datesHealth code is finally reasonable: âMasks are Encouraged but not RequiredâPyCon US 2025 DatesTutorials - May 14-15, 2025Sponsor Presentations - May 15, 2025Opening Reception - May 15, 2025Main Conference and Online - May 16-18, 2025Job Fair - May 18, 2025Sprints - May 19-May 22, 2025Extras
Brian:
Please publish and share more - Jeff TriplettMichael:
pre-commit-uvJust spoke with Sefanie Molin about pre-commit hooks on Talk PythonCurse you Omnivore!We have moved to hetzner Typora markdown appfree-threaded Python is now available via uvuv self updateuv python install --python-preference only-managed 3.13tJoke: Debugging char
-
Topics covered in this episode:
Python 3.14.0 alpha 1 is now availableuv supports dependency groupsdive: A tool for exploring each layer in a docker imagepytest-metadataExtrasJokeWatch on YouTubeAbout the show
Sponsored by us! Support our work through:
Our courses at Talk Python TrainingThe Complete pytest Course & Hello, pytest!Patreon SupportersConnect with the hosts
Michael: @[email protected]: @[email protected]: @[email protected]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: Python 3.14.0 alpha 1 is now available
First of seven planned alpha releases.Many new features for Python 3.14 are still being planned and written. Among the new major new features and changes so far:PEP 649: deferred evaluation of annotationsImproved error messagesBrian #2: uv supports dependency groups
we covered dependency groups in episode 406as of 0.4.27, uv supports dependency groupsdocs show how to add dependencies with uv add --groupalso âThe --dev, --only-dev, and --no-dev flags are equivalent to --group dev, --only-group dev, and --no-group dev respectively.âTo install a group, uv pip install --group doesnât work yet. Itâs waiting for PyPA to decide on an interface for pip, and uv pip will use that interface.But sync works.$ uv init # create a pyproject.toml$ uv add --group foo pytest$ uv venv # create venv$ uv sync --group foo # will install all dependencies, including group "foo"Michael #3: dive: A tool for exploring each layer in a docker image
via Mike FiedlerFeatures:Show Docker image contents broken down by layerIndicate what's changed in each layerEstimate "image efficiency"Quick build/analysis cyclesCI IntegrationBrian #4: pytest-metadata
An incredibly useful plugin for adding, you guessed it, metadata, to your pytest results.Required for pytest-html but also useful on itâs ownAdds metadata totext output with --verbosexml output when using --junit-xml, handy for CI systems that support junit.xmlOther plugins depend on this and report in other ways, such as pytest-htmlBy default, already grabsPython versionPlatform infoList of installed packagesList of installed pytest pluginsYou can add your own metadataYou can access all metadata (and add to it) from tests, fixtures, and hook functions via a metadata fixture.This is in the Top pytest Plugins list, currently #5.Extras
Brian:
Iâve started filtering deprecated plugins from the pytest plugin list.Iâm also going to start reviewing the list and pulling out interesting plugins as the topic of the next season of Test & Code.Michael:
Pillow 11 is outpip install deutschlandTalk Python has a dedicated blog, please subscribe!Joke: Dog names
-
Manglende episoder?
-
Topics covered in this episode:
Open Source PledgeJeff Triplet's DjangoTVPEP 735 â Dependency Groups in pyproject.tomllivereloadExtrasJokeWatch on YouTubeAbout the show
Sponsored by ScoutAPM: pythonbytes.fm/scout
Connect with the hosts
Michael: @[email protected]: @[email protected]: @[email protected]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: Open Source Pledge
Learned about this because of this postWhy Django supports the Open Source PledgeStepsPay Open Source maintainers. Min to participate is 2k/year/dev at your companySelf-report annuallyPublish a blog post outlining your paymentsArminâs post about launching Open Source Pledge and mixing money with open sourceMichael #2: Jeff Triplet's DjangoTV
A nice aggregation of lots of Django conference talksFilter by conferenceGood search as wellBrian #3: PEP 735 â Dependency Groups in pyproject.toml
Author: Stephen Rosen, Sponsor: Brett Cannon, PEP-Delegate: Paul MooreAccepted. Resolotion Oct 10, 2024âThis PEP specifies a mechanism for storing package requirements in pyproject.toml files such that they are not included in any built distribution of the project.âAllow us to define named groups of dependencies that can be independent of the main project.ex:
[dependency-groups]test = ["pytest", "coverage"]docs = ["sphinx", "sphinx-rtd-theme"]typing = ["mypy", "types-requests"]typing-test = [{include-group = "typing"}, {include-group = "test"}, "useful-types"]âmightâ work like this: pip install --dependency-groups=test,typing
but tool venders are able to define how they use groups. Of course.Similar solutions multiple requirements.txt files: requirements_test.txt, requirements_docs.txt, etc.no standard naming convention, not standardized package extras: not gauranteed to be statically defined (TIL)additional to main dependencies, so not independentMichael #4: livereload
Example from talkpython.fm: asset_bundler_watcher.pyThe docs are sparse, so see the gist aboveExtras
Brian:
Personal Blogs are no longer personal when AI gets too involved - KJayMillerMind Your Image Metadata - Stefanie MolinMichael:
14% of our listeners are in Germany, thanks Germany!Prost!Hetzner comes to the USJoke:
A programmerâs partner asks them: âWould you go get a loaf of bread from the store? And if they have eggs, get a dozen.â A while later, the programmer returns with 12 loaves of bread and says âThey had eggs.âFrom https://savvyprogrammer.io/software-jokes/ -
Topics covered in this episode:
Briefer: Dashboards and notebooks in a single placeIntroduction to programming with Pythonsetup-uvHTML for peopleExtrasJokeWatch on YouTubeAbout the show
Sponsored by ScoutAPM: pythonbytes.fm/scout
Connect with the hosts
Michael: @[email protected]: @[email protected]: @[email protected]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: Briefer: Dashboards and notebooks in a single place
Notebooks and dashboards with Python, SQL, scheduling, native visualizations, code generation, and more.In Briefer, you can: Create notebooks and dashboards using Markdown, Python, SQL, and native visualizations. Build interactive data apps using inputs, dropdowns, and date pickers. Generate code and queries using an AI that understands your database schema and your notebook's context. Schedule notebooks and dashboards to run and update periodically. Create and test ad-hoc pipelines using writebacks.Briefer vs. Traditional BI Tools: Briefer is better than traditional BI tools because it's faster and more flexible, thanks to Python.Briefer vs. Traditional Notebooks: In Briefer, you can run SQL queries against connected data sources directly in your notebook. Then, Briefer will automatically turn your query into a data frame and store it in a variable that you can use in your Python blocks.Brian #2: Introduction to programming with Python
Jose BlancaâPython intro aimed at students with no prior programming experience.ââRelies mainly on examples and exercises.ââDoes not try to cover every detail of the Python language, but just what a beginner might need to start the journey.âTech: â⊠built with the quarto publishing system complemented by the quarto live extension that allows Python to run in the web browser by using pyodide.âRuns on anything, since it doesnât require a local install of PythonRunning 3.12.1, looks like. Although thatâs a bit hidden. Seems like it should be more visible.Michael #3: setup-uv
Set up your GitHub Actions workflow with a specific version of uvInstall a version of uv and add it to PATHCache the installed version of uv to speed up consecutive runs on self-hosted runnersRegister problem matchers for error output(Optional) Persist the uv's cache in the GitHub Actions Cache(Optional) Verify the checksum of the downloaded uv executableBrian #4: HTML for people
Teaching HTML in a rather fun way.Includes basic CSSExtras
Michael:
A new article: We Must Replace uWSGI With Something ElseDjango unique email loginJoke: So much OâReally
-
Topics covered in this episode:
Python 3.13.0 released Oct 7PEP 759 â External Wheel Hostingpytest-freethreadedpytest-editExtrasJokeWatch on YouTubeAbout the show
Sponsored by ScoutAPM: pythonbytes.fm/scout
Connect with the hosts
Michael: @[email protected]: @[email protected]: @[email protected]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: Python 3.13.0 released Oct 7
Thatâs today!Whatâs New In Python 3.13Interpreter (REPL) improvementsexit works (really, this is worth the release right here)Multiline editing with history preservation.history sticks around between sessionsDirect support for REPL-specific commands like help, exit, and quit, without the need to call them as functions.Prompts and tracebacks with color enabled by default.Interactive help browsing using F1 with a separate command history.History browsing using F2 that skips output as well as the >>> and ⊠prompts.âPaste modeâ with F3 that makes pasting larger blocks of code easier (press F3 again to return to the regular prompt).exit now works without parensImproved error messagesColorful tracebacksBetter messages fornaming a script/module the same name as a stdlib module.naming a script/module the same name as an installed third party module.misspelling a keyword argumentFree threaded CPythonIncluded in official installers on Windows and macOSRead these links to figure out how - itâs not turned on by defaultLotâs more. see the Whatâs new pageMichael #2: PEP 759 â External Wheel Hosting
pypi.org ships over 66 petabytes / month backed by FastlyThere are hard project size limits for publishers to PyPIWe can host the essence of a .whl as a .rim file, then allow an external download URLSecurity: Several factors as described in this proposal should mitigate security concerns with externally hosted wheels, such as:Wheel file checksums MUST be included in .rim files, and once uploaded cannot be changed. Since the checksum stored on PyPI is immutable and required, it is not possible to spoof an external wheel file, even if the owning organization lost control of their hosting domain.Externally hosted wheels MUST be served over HTTPS.In order to serve externally hosted wheels, organizations MUST be approved by the PyPI admins.Brian #3: pytest-freethreaded
PyCon JP 2024 Team:This extension was created at PyCon JP sprints with Anthony Shaw and 7 other folks listed in credits.âA pytest plugin for helping verify that your tests and libraries are thread-safe with the Python 3.13 experimental freethreaded mode.âTesting your project for compatibility with freethreaded Python.Testing in single thread doesnât test that.Neither does testing with pytest-xdist, because it uses multiprocessing to parallelize tests.So, Ant and others âmade this plugin to help you run your tests in a thread-pool with the GIL disabled, to help you identify if your tests are thread-safe.ââAnd the first library we tested it on (which was marked as compatible) caused a segmentation fault in CPython! So you should give this a go if you're a package maintainer.âMichael #4: pytest-edit
A simple Pytest plugin for opening editor on the failed tests.Type pytest --edit to open the failing test code Be sure to set your favorite editor in the ENV variablesExtras
Michael:
New way to explore Talk Python courses via topicsThis has been in our mobile apps since their rewrite but finally comes to the webLet's go easy on PyPI, OK? essayHynekâs video: uv IS the Future of Python Packaging djade-pre-commitPolyfill.io, BootCDN, Bootcss, Staticfile attack traced to 1 operatorPurgeCSS CLI Python 3.12.7 releasedIncremental GC and pushing back the 3.13.0 releaseuv making the roundsLLM fatigue, is it real?Take the Python Developers Survey 2024Joke: Funny 404 pages
We have something at least interesting at pythonbytes.fm -
Topics covered in this episode:
uv under discussion on Mastodonerdantic: Entity Relationship DiagramsExtra, Extra, ExtraDjango Extra, Extra, ExtraExtrasJokeWatch on YouTubeAbout the show
Sponsored by us! Support our work through:
Our courses at Talk Python TrainingThe Complete pytest CoursePatreon SupportersConnect with the hosts
Michael: @[email protected]: @[email protected]: @[email protected]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: uv under discussion on Mastodon
Itâs interesting that uv is slightly controversialRussell:
As enthusiastic as I am about the direction uv is going, I haven't adopted them anywhere - because I want very much to understand Astralâs intended business model before I hook my wagon to their tools.
Hynek:
As much as I hate VC, [...] FOSS projects flame out all the time too. ⊠To me uv looks like a genius sting to trick VCs into paying to fix packaging. Weâll be better off either way.
Glyph:
Rust is more expensive and difficult to maintain, not to mention "non-native" to the average customer here. ⊠it can burn out all the other projects in the ecosystem simultaneously, creating a risk of monoculture
Hynek on Rust:
I donât think yâall quite grok what uv makes so special due to your seniority. The speed is really cool, but the reason Rust is elemental is that itâs one compiled blob that can be used to bootstrap and maintain a Python development.
Christopher Neugebauer:
Just dropping in here to say that corporate capture of the Python ecosystem is the #1 keeps-me-up-at-night subject in my community work, so I watch Astral with interest, even if I'm not yet too worried.
Armin Ronacher
What uv is doing, even in the worst possible future this is a very forkable and maintainable thing.
Finally, see the comment at the end by Charlie Marsh
Brian #2: erdantic: Entity Relationship Diagrams
âerdantic is a simple tool for drawing entity relationship diagrams (ERDs) for Python data model classes. Diagrams are rendered using the venerable Graphviz library.âSupported data modeling frameworks are:Pydantic V2Pydantic V1 legacyattrsdataclassesMichael #3: Extra, Extra, Extra
Added Python Bytes Search as a custom search engine.Along came passkeys. A cool idea that quickly turned evil.Follow up from post and my conversation last week: vaultwarden (via Pablo)uv publishTrying the tabs on bottom lifestyle inspired by ArcAdding Python Bytes (and Talk Python) as custom search engines.PyCon 2025 dates: From 14 May through 22 May, 2025Brian #4: Django Extra, Extra, Extra
Django Project IdeasEvgenia VerbinaProject ideas with list of tech stack stuff youâll learn and/or work on with the projectEx: Recipe organizertech stack: Django templates, Django ORM, Optional JavaScriptâFamiliarize yourself with Djangoâs ORM (object-relational mapper) and database support by building an app to keep track of your favorite recipes. Add a web-based frontend with options to filter recipes by category, ingredients, and user ratings so you can easily browse for inspiration.âDjangoTVJeff TriplettDjango conference videos and tutorials.Django CommonsHeard about from Lacey HenschelâDjango Commons is an organization dedicated to supporting the community's efforts to maintain packages. It seeks to improve the maintenance experience for all contributors; reducing the barrier to entry for new contributors and reducing overhead for existing maintainers.âDjango 5 has simplified templates for better form field renderingBut if you want a completely different take on forms, maybe try iommi formsThey wrote about it on Why we wrote a new form library for DjangoDjade: a Django template formatterAdam JohnsonLike black or ruff, but for Django templates.Extras
Brian:
The Open Source Project Maintainer's GuideSuggested by Rafael WeingartnerJoke: A Machine Learning algorithm walks into a barâŠ
-
Topics covered in this episode:
Architecture Decision Records (ADRs)narwhals: extremely lightweight compatibility layer between dataframesMicrosoft wants Three Mile Island to fuel its AI power needszsh-in-dockerExtrasJokeWatch on YouTubeAbout the show
Sponsored by ScoutAPM: pythonbytes.fm/scout
Connect with the hosts
Michael: @[email protected]: @[email protected]: @[email protected]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: Architecture Decision Records (ADRs)
Suggested by Christian GesellDocumenting Architecture DecisionsMychael NygardOriginal article from 2011Why you should be using architecture decision records to document your projectRed HatIncludes a quick overview and links to some templatesNotes so farWriting this out helps me solidify my thinking about a problem.Iâm doing this both before starting, and while implementing a first draftGitHub and GitLab render markdown so well that generating a docs site is unnecessary, just throwing these files in something like docs/adr is enough.The lightweight process is enough but not too much.Iâve already filled out None for lots of sections, like âoptions consideredâIâm still playing with what level of decision should have an ADR.My template that Iâve been using so farSaved in 000-adr-template.mdFor easy copy/paste/modify for new records.File name is something like 001-some-change.mdMichael #2: narwhals: extremely lightweight compatibility layer between dataframes
Recently had Marco on Talk Python to discussPrimarily for library creators who want to support interacting with multiple data frame libraries (.e.g. Pandas & Polars)Just use a subset of the Polars APIBrian #3: Microsoft wants Three Mile Island to fuel its AI power needs
âMicrosoft just signed a deal to revive the shuttered Three Mile Island nuclear power plant. If approved by regulators, the software maker would have exclusive rights to 100 percent of the output for its AI data center needs.âAlso ran on CNN and other sources: Three Mile Island is reopening and selling its power to MicrosoftThree Mile Island was the site of the worst nuclear disaster in the US, when one of two reactors experienced a partial meltdown, in 1979. It was still operating up until 2019, and now expected to re-open in 2028Will be renamed âCrane Clean Energy CenterârelatedThe Department of Energy Wants You to Know Your Conservation Efforts Are Making a DifferenceâBy switching all the lightbulbs in your house to LED, you saved enough energy for a self-driving car to make an unprotected lefthand turn across three lanes of traffic.ââWe know you adopted energy-saving practices to help conserve our planetâs resources and bring down our collective carbon footprint, but what you ultimately accomplished is just as important: helping AI do something menial and stupid.âMichael #4: zsh-in-docker
Install Zsh, Oh My Zsh and plugins inside a Docker container with one line!Yes docker containers should be light, but also, think of how painful it can be when you run into trouble.With Oh My ZSH, you get a nice experience when you have to result to docker exec -it CONTAINER zshJust enter a single command in your docker file:RUN sh -c "$(wget -O- https://github.com/deluan/zsh-in-docker/releases/download/v1.2.0/zsh-in-docker.sh)" -- \ -t robbyrussellExtras
Michael:
self-hosting mkennedy.codesLoren's journey to developerItâs time to stop using Python 3.8Sonoma â Sequoia â Sonoma (yikes!)Passkeys, maybe they will work out if we donât let them become lock-in (bitwardenâs support)Joke:
How to Monetize a BlogDonât forget to click on the bottom link: Credits / how this was made -
Topics covered in this episode:
âWe must replace uwsgi by something elseâLetâs build and optimize a Rust extension for PythonFake recruiter coding tests target devs with malicious Python packagesMonthly PSF Board Office HoursExtrasJokeWatch on YouTubeAbout the show
Sponsored by ScoutAPM: pythonbytes.fm/scout
Connect with the hosts
Michael: @[email protected]: @[email protected]: @[email protected]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: âWe must replace uwsgi by something elseâ
uWSGI is now in maintenance mode: https://uwsgi-docs.readthedocs.io/en/latest/The project is in maintenance mode (only bugfixes and updates for new languages apis). Do not expect quick answers on github issues and/or pull requests (sorry for that) A big thanks to all of the users and contributors since 2009.Reasonable options look like:granianuvicornhypercorngunicorn (potentially with uvicorn workers for async)Brian #2: Letâs build and optimize a Rust extension for Python
Itamar Turner-TrauringExample: algorithm for approximating the number of unique values in a listComparison to non-approximation non-approx is faster but uses way more memoryRust versionUse Maturin and PyO3Pull in Rust dependencies (rand for random numbers)Optimizationlink-time optimizationfaster randomstore hashes onlyFuture optimizationschange algorithm maybepass numpy array instead of Python list (Iâd like to see that spedup)Michael #3: Fake recruiter coding tests target devs with malicious Python packages
via python weeklyGitHub projects that have been linked to previous, targeted attacks in which developers are lured using fake job interviews.Attackers posing as employees of major financial services firms.This previously happened via other means such as NPMThis analysis revealed that the direct parent of the detected, malicious files is a PythonPYC file, meaning that once again the team encountered malware hidden in a compiled Python file.âThe README files tell would-be candidates to make sure the project is running successfully on their system before making modifications.âWhat can you do (according to Michael)?Try out new packages in a docker containerWork on code and projects using a VM which has snapshotting (to roll back completely after youâre done)Fire up a Windows desktop in the cloud for the project then destroy itBrian #4: Monthly PSF Board Office Hours
âThe Office Hours will be sessions where you can share with us how we can help your community, express your perspectives, and provide feedback for the PSF.ââUnless we have a dedicated topic for a session, you are not limited to talking with us about the above topics, although the discussions should be focused on Python, the PSF, and our community. If you think thereâs something we can help with or we should know, we welcome you to come and talk to us!âUpcoming office hoursOctober 8th, 2024: 9pm UTCNovember 12th, 2024: 2pm UTCDecember 10th, 2024: 9pm UTCJanuary 14th, 2025: 2pm UTCFebruary 11th, 2025: 9pm UTCMarch 11th, 2025: 1pm UTCApril 8th, 2025: 9pm UTCMay 13th, 2025: 1pm UTC (Live from PyCon US!)June 10th, 2025: 9pm UTCJuly 9th, 2025: 1pm UTCAugust 12th, 2025: 9pm UTCExtras
Brian:
PyCascades CFP closes Friday, Sept 20PyCascades is in Portland in 2025 (Feb 8 & 9)uv now supports Python 3.13.0rc2
uv self updateuv venv -p 3.13Free threaded is still an open issue
Michael:
Big Python Humble Bundle with both of our productsGet $1,800 worth of Python content and tools for $30 and contribute to charityIncludes 5 Talk Python coursesSeveral of Brianâs and his bookDjangonaut Space Session 3 Applications Open!I interviewed Sarah and Tushar on Talk PythonAltTab: Windows alt-tab on macOSJoke: Election joke
-
Topics covered in this episode:
Python 3.13.0RC2, 3.12.6, 3.11.10, 3.10.15, 3.9.20, and 3.8.20 are now available!Docker images using uv's python10 years of sustainable open source - Read the DocshumanizeExtrasJokeWatch on YouTubeAbout the show
Sponsored by ScoutAPM: pythonbytes.fm/scout
Connect with the hosts
Michael: @[email protected]: @[email protected]: @[email protected]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.
ChatGPT celebrates episode 400!
Welcome to the big 4-0-0, Pythonistas!
It's hard to believe we're celebrating the 400th episode of Python Bytes! From the early days of byte-sized Python news to becoming the source for all things Python, itâs been a wild ride.
We've laughed over code quirks, gasped at new libraries, and said farewell to the GIL together. Whether you're a seasoned developer, a curious learner, or just here for the witty banter, youâve been an essential part of this journey.
To Michael and Brian: You've built a community that turns import this into more than just Zenâit's a family of passionate Pythonistas. Your dedication, insights, and humor make this show more than just tech news. Itâs a weekly celebration of what we love about Python and why we keep coming back for more.
Hereâs to the next 400 episodesâmay your code be bug-free, your tests pass on the first run, and your Python version always be up to date.
Brian #1: Python 3.13.0RC2, 3.12.6, 3.11.10, 3.10.15, 3.9.20, and 3.8.20 are now available!
Ćukasz LangaPython 3.13.0RC2 is the final preview releaseOfficial 3.13.0 scheduled for Oct 1Call to actionâWe strongly encourage maintainers of third-party Python projects to prepare their projects for 3.13 compatibilities during this phase, and where necessary publish Python 3.13 wheels on PyPI to be ready for the final release of 3.13.0. Any binary wheels built against Python 3.13.0rc2 will work with future versions of Python 3.13. As always, report any issues to the Python bug tracker .ââPlease keep in mind that this is a preview release and while itâs as close to the final release as we can get it, its use is not recommended for production environments.âNote: uv python does not support 3.13 yetsee issue 320Security releases for3.12.6, 3.11.10, 3.10.15, 3.9.20, and 3.8.203.12.6 has binary installers, but for MacOS, only MacOS 10.13 and newer are supported3.11.10, 3.10.15, 3.9.20, and 3.8.20 do NOT include binary installers.3.8 EOL's in OctoberMichael #2: Docker images using uv's python
See #396: uv-ing your way to Python and #398: Open source makes you rich? (and other myths) for the opening discussionsTalk Python episode on uv is outuv venv --python gets Python from python-build-standalone by Gregory SzorcTook our Docker build times from 10 minutes to 8 seconds for the base image and 800ms (!) for our app platformsBrian #3: 10 years of sustainable open source - Read the Docs
Eric HolscherRead the Docs has been a company for 10 yearsâa team of 4 folks working full-time on Read the Docs.âreadthedocs.org started in 2010readthedocs.com (for Business) started in 2014Sustainability model.org has a single non-tracking ad .com is a paid service for companiesThings that didnât workdonations and other optional support - led to burnoutconsulting and services- took too much time away from core productgrant funding - nice, but one time thingLessonsYou don't get extra points for being bootstrapped. Compete by doing things you can do better due to niche and size.Keeping trust in the community is the most important thing.Contribution is easier for less complex parts of the code base.Beign open source means capturing a small percentage of the value you create.You have to be ok doing more with less.AlsoRtD is not just for Sphinx anymore. Their build system now supports any documentation tool.Michael #4: humanize
by Hugo van Kemenade (Python 3.14 & 3.15 release manager & core developer)Not too many variations, but very handy if you need it.NumbersAssociated Press style (âsevenâ and â10â)Clamp (under 1.0 million)Fractional (1/3)Int Word (1.2 Billion)Metric (1.5 kV)Ordinal (112th)scientificTimeFile sizeExtras
Brian:
Test & Code is now again Test & CodeThe two part series on Python imports that started in June is finally complete with episode 222.Transcripts are being added to old episodes gradually starting from most recent Back to ep 203 as of today. AI transcription, so thereâs things like .pie, .pi, and dot pie where it should be .pyMichael:
Final final call for Coding in a Castle event with MichaeliStats MenuAnaconda Code Runner by Ruud van der Ham: With Anaconda Coide we can -at last- run that code locally and import (most) Python modules.But if you want to run a significant amount of code, you have to put that in a cell or publish it to PyPI or a wheel and import it.That's why I have developed a general-purpose runner function that runs arbitrary code located on an Excel sheet with AnacondaCode.Joke: When beginners learn a new programming language...
-
Topics covered in this episode:
Why I Still Use Python Virtual Environments in DockerPython Developer Survey ResultsAnaconda Code add-in for Microsoft ExcelDisabling Scheduled Dependency UpdatesExtrasJokeWatch on YouTubeAbout the show
Sponsored by us! Support our work through
Our courses at Talk Python TrainingHello, pytest! CoursePatreon SupportersConnect with the hosts
Michael: @[email protected]: @[email protected]: @[email protected]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: Why I Still Use Python Virtual Environments in Docker
by Hynek SchlawackI was going to cover Production-ready Docker Containers with uv but decided to take this diversion instead.Spend a lot of time thinking about the secondary effects of what you do.venvs are well known and well documented. Letâs use them.Brian #2: Python Developer Survey Results
â⊠official Python Developers Survey, conducted as a collaborative effort between the Python Software Foundation and JetBrains.âPython w/ Rust rising, but still only 7%ââThe drop in HTML/CSS/JS might show that data science is increasing its share of Python.â - Paul Everitt37% contribute to open source. Awesome.Favorite Resources: PodcastsLots of familiar faces there. Awesome. Perhaps I shouldnât have decided to move âPython Testâ back to Test & CodeUsageâData analysisâ down, but I think thatâs because âdata engineeringâ is added.Data, Web dev, ML, devops, academic, Testing is down 23%Python VersionsStill some 2 out thereMost folks on 3.10-3.12Install from: mostly python.orgFrameworksweb: Flask, Django, Requests, FastAPI âŠtesting: pytest, unittest, mock, doctest, tox, hypothesis, nose (2% might be the Python 2 people)Data science77% use pandas, 72% NumPyOS: Windows still at 55% Packaging: venv up to 55%I imaging uv will be on the list next yearrequirements.txt 63%, pyproject.toml 32%virtual env in containers? 47% say noMichael #3: Anaconda Code add-in for Microsoft Excel
Run their Python-powered projects in Excel locally with the Anaconda Code add-inPowered by PyScript, an Anaconda supported open source project that runs Python locally without install and setupFeaturesCells Run IndependentlyRange to Multiple Typesinit.py file is static and cannot be edited, with Anaconda Code, users have the ability to access and edit imports and definitions, allowing you to write top-level functions and classes and reuse them wherever you need. A Customizable EnvironmentBrian #4: Disabling Scheduled Dependency Updates
David LordInteresting discussion of as they happen or batching of upsates to dependenciesdependencies come inrequirements filesGH Actions in CI workflowspre-commit hooksDavid was seeing 60 PRs per month when set up on monthly updates (3 ecosystems * 20 projects)new tool for updating GH actions: gha-update, allows for local updating of GH dependenciesNew processRun pip-compile, gha-update, and pre-commit locally.Update a projectâs dependencies when actively working on the project, not just whenever a dependency updates.Note that this works fine for dev dependencies, less so for security updates from run time dependencies. But for libraries, runtime dependencies are usually not pinned.Extras
Brian:
Test & Code coming back this weekMichael:
Code in a Castle eventPython Bytes badge spottingGuidoâs post removed for moderationJoke: C will watch in silence
-
Topics covered in this episode:
Open Source Mythsuv 0.3.0 and all the excitementTop pytest PluginsA comparison of hosts / providers for Python serverless functions (aka Faas)ExtrasJokeWatch on YouTubeAbout the show
Sponsored by us! Support our work through:
Our courses at Talk Python Trainingpytest courses and community at PythonTest.comPatreon SupportersConnect with the hosts
Michael: @[email protected]: @[email protected]: @[email protected]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: Open Source Myths
Josh BressersMastodon post kicking off a list of open source mythsFeedback and additional myths compiled to a docSome favoritesAll open source developers live in NebraskaItâs all run by hippiesEverything is being rewritten in rustFeatures are plannedIf the source code is available, itâs open sourceA project with no commits for 12 months is abandonedMany eyes make all bugs shallowOpen source has worse UXOpen source has better UXOpen source makes you richMichael #2: uv 0.3.0 and all the excitement
Thanks to Skyler Kasko and John Hagen for the emails.Additional write up by Simon WillisonAdditional write up by Armin RonacherEnd-to-end project management: uv run, uv lock, and uv syncTool management: uv tool install and uv tool run (aliased to uvx)Python installation: uv python installScript execution: uv can now manage hermetic, single-file Python scripts with inline dependency metadata based on PEP 723.Brian #3: Top pytest Plugins
Inspired by (and assisted by) Hugoâs Top PyPI PackagesWrite up for Finding the top pytest pluginsBTW, pytest-check has made it to 25.Same day, Jeff Triplett throws my code into Claude 3.5 Sonnet and refactors itThanks Jeff Triplett & Hugo for answering how to add Summary and other infoMichael #4: A comparison of hosts / providers for Python serverless functions (aka Faas)
Nice feature matrix of all the options, frameworks, costs, and moreThe WASM ones look particularly interesting to me.Extras
Brian:
When is the next live episode of Python Bytes? - via arewemeetingyet.comThanks to Hugo van KemenadeSome more cool projects by HugoPython LogosPyPI Downloads by Python version for various Python tools, in pretty colorsPython Core Developers over timeMichael:
Code in a Castle Course event - just a couple of weeks leftLadybird: A truly independent browserâI'm also interested in your video recording setup, would be nice to have that in the extras too :DâOBS StudioElgato StreamdeckElgato Key lightDaVinci ResolveJoke: DevOps Support Group
via Blaise
Hi, my name is BobGroup: Hi BobI's been 42 days since I last ssh'd into production.Group: ApplauseBut only 4 days since I accidentally took down the websiteSomeone in back: Oh Bob⊠-
Topics covered in this episode:
pyawaitableAnnotated area charts with plotnineDeltaDBPyCon US 2024 Recap + Videos are upExtrasJokeSee the full show notes for this episode on the website at pythonbytes.fm/397 -
Topics covered in this episode:
uv venv --python & uv pythonPython 3.12.5 releasedCompile and use dependencies for multiple Python versions in ToxCatalog of Dark PatternsExtrasJokeSee the full show notes for this episode on the website at pythonbytes.fm/396 -
Topics covered in this episode:
py-free-threading.github.ioPythonâs Supportive and Welcoming Environment is Tightly Coupled to Its ProgressStatus pages for sites!PEP 751 â A file format to list Python dependencies for installation reproducibilityExtrasJokeSee the full show notes for this episode on the website at pythonbytes.fm/395 -
Topics covered in this episode:
Python is easy nowTrying out free-threaded Python on macOSModule itertools overviewuptime-kumaExtrasJokeSee the full show notes for this episode on the website at pythonbytes.fm/394 -
Topics covered in this episode:
Marimo: âFuture of Notebooksâpytest 8.3.0 & 8.3.1 are outPython Language Summit 2024bash-dungeonExtrasJokeSee the full show notes for this episode on the website at pythonbytes.fm/393 -
Topics covered in this episode:
2024 PSF Board Election & Proposed Bylaw Change ResultsSATYRN: A modern Jupyter client for MacIncident Report: Leaked GitHub Personal Access TokenExtra extra extraExtrasJokeSee the full show notes for this episode on the website at pythonbytes.fm/392 -
Topics covered in this episode:
Vendorize packages from PyPIA Guide to Python's Weak References Using weakref ModuleMaking Time SpeakHow Should You Test Your Machine Learning Project? A Beginnerâs GuideExtrasJokeSee the full show notes for this episode on the website at pythonbytes.fm/391 -
Topics covered in this episode:
Joining Strings in Python: A "Huh" Moment10 hard-to-swallow truths they won't tell you about software engineer jobMy thoughts on Python in ExcelExtra, extra, extraExtrasJokeSee the full show notes for this episode on the website at pythonbytes.fm/390 -
Topics covered in this episode:
Solara UI FrameworkCoverage at a crossroadsâVirtualâ methods in Python classesExtrasJokeSee the full show notes for this episode on the website at pythonbytes.fm/389 - Vis mere