Topics covered in this episode: PyPI's redesigned project pages now warn when provenance changes gilguard catches the import that turns the GIL back on pip 26.3: pylock extras, and pip says plainly that untrusted wheels aren't safe All developer tools Extras Joke Watch on YouTube About the show Sponsored by LongLink: Open-source platform for building and running custom business applications with Python and FastAPI Connect with the hosts Michael: Mastodon / BlueSky / X / LinkedIn Calvin: Mastodon / BlueSky / X / LinkedIn Show: Mastodon / BlueSky / X Join us on YouTube at pythonbytes.fm/live to be part of the audience. Usually Tuesday at 7am 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. Calvin #1: PyPI's redesigned project pages now warn when provenance changes Live now on pypi.org (Nov 6). Announced in July, shaped by user research, funded by OpenSSF and built by Kabu Creative. New Security tab on every project page shows each release's provenance state and per-file attestations, with a link to the transparency log. Two attestation types: PyPI Publish (uploaded by a Trusted Publisher) and SLSA Build Provenance (ties a file to its source commit, build platform and instructions). "No provenance" isn't a malware flag; it means the file's origin can't be cryptographically verified. That's typical for older releases or projects without Trusted Publishing. Four new provenance warnings: Incomplete (e.g. wheels via Trusted Publishing but sdist via API token), Inconsistent (mixed build systems or repos), Change (different repo or workflow than last release), Loss (stopped publishing attestations). Warnings are meant to catch files that may not have come from the maintainers, such as after an account or publishing-workflow takeover. PyPI says a Change of Provenance "can also indicate a compromised pipeline or account takeover," and an unexpected Loss of Provenance should be treated "with skepticism until verified.” Warnings now sit at the top of the page with yanked, archived and pre-release banners. A quarantine banner overrides all of them. Sidebar metadata is labeled "PyPI data" or "Data verified by PyPI." Release files tab gets search, filters, a per-file provenance column and orange icons for "late" files (uploaded more than 14 days after release). Those only appear on releases from before July 2026, when PyPI started rejecting new files after 14 days. Michael #2: gilguard catches the import that turns the GIL back on gilguard catches a nasty free-threading surprise: importing a C extension without declared free-threading support can turn the GIL back on for the rest of the process. Import gilguard first and it raises a detailed error naming the extension, distribution/version, import chain, and the line of your code responsible. A transitive dependency can undo your move to free-threaded Python. Fail at the offending import instead of discovering lost parallelism in a benchmark. Uses import hooks plus CPython's warning path to catch GIL activation; GILEnabledError inherits BaseException, so even except Exception won't swallow it. python -m gilguard audits installed top-level packages in fresh interpreters. Supports targeted modules and JSON output; exits 1 when it finds an offender for CI. The audit misses extensions loaded lazily on first use. Exercise those paths in tests with gilguard installed early; one process can identify only its first GIL-flipping import. GILGUARD_ACTION=warn reports without stopping; off permits standard builds. Default mode raises on standard Python or an already-enabled GIL. PYTHON_GIL=0 prevents activation, so the guard cannot detect offenders there. Published on PyPI as 0.1.0. Install with uv pip install gilguard. Python 3.13+, MIT; no runtime dependencies. Calvin #3: pip 26.3: pylock extras, and pip says plainly that untrusted wheels aren't safe pip 26.3 released Nov 2. Its security policy now says pip "has never considered installing untrusted wheels safe," because Python's import system is dynamic, so pip can't guarantee installing a wheel won't execute third-party code (#14412). The change: pip blocks unexpected imports during wheel installation "to avoid loading code from packages being replaced." It loads what it needs for installing and error reporting up front (PR #14247, merged Nov 2: https://github.com/pypa/pip/pull/14247). CLI vs. library use: from the command line, imports stay blocked until pip exits. Code that calls pip programmatically gets warnings after control returns. Rolled out in steps: pip 26.1 started warning ("Unexpected import of '...' after pip install started. pip 26.3 will enforce this behavior change"), and 26.3 turns it into an error. Tracking issue #13842 collected reports before enforcement: https://github.com/pypa/pip/issues/13842 What tripped it in the wild: a .pth startup hook at Pradyun Gedam's workplace that registers an atexit handler to report interpreter usage metrics over HTTP (https://github.com/pypa/pip/issues/13842#issuecomment-4613463933), plus warnings involving lark_oapi and rich._emoji_codes. Escape-hatch debate: the author, Damian Shaw (notatallshaw), suggested appending module names to pip._internal.commands.install._EAGER_IMPORTS. Pradyun objected that this requires importing from pip._internal, that importing pip's install command is expensive (about 689 ms with no .pyc files and a cold filesystem cache), and that pip isn't necessarily installed in every environment. Shaw's reply: it "just moves where the import cost is," and turning the warning into an error is "crucial." Interrupted installs: pip now writes recovery metadata and reports recovery failures and where it kept backups. An interrupted uninstall may need manual recovery, and an interrupted --target install can leave a partial target directory. Also in 26.3: -r pylock.toml[extra1,extra2] for extras, --group pylock.toml:docs for non-default groups, --no-binary with pylock files, and pip refuses to follow an HTTP redirect to a file: URL. Michael #4: All developer tools HeyUtils is a collection of 306 free developer utilities in 41 categories, with no account or installation required. The full catalog covers data conversion, APIs, networking, DevOps, frontend work and binary protocols. Python developers get model generation and packaging helpers alongside the everyday formatters and decoders worth bookmarking. One bookmark for the tiny jobs that interrupt coding: inspect a payload, compare configs, decode a token or figure out a cron schedule. Data tools include JSON/YAML/TOML conversion, CSV joins, JSONPath and JMESPath testers, a jq playground, and a SQLite viewer with read-only queries. Python-specific options go beyond regex: generate dataclasses or Pydantic models from JSON, check PEP 440 versions, and inspect requirements.txt or pyproject.toml dependencies. The collection also covers JWT/OAuth debugging, DNS and TLS checks, Docker Compose, Kubernetes YAML, GitHub Actions, and frontend helpers such as color contrast checks. Most tools process input locally, according to the site. Network tools make requests after you start them and explain what they send; don't assume every page is offline. Generated models need review: sample data cannot describe a complete validation contract, and dataclass type hints do not validate incoming values. Extras Calvin: Coldframe: a stdlib-only honeypot that poses as a supermarket fridge controller** Michael: Announcing new Security Developer at the PSF Brett Smith is joining the PSF as a Security Developer, a new role funded by Anthropic. He'll work with Seth Larson and Mike Fiedler on vulnerability response and PyPI malware removal, with more time for proactive work as the team's workload grows. More paid security capacity for the Python and PyPI infrastructure we depend on every day. The PSF reports 3-4x the volume of reports and CVEs for Python and pip compared with a year ago. Malware published and removed from PyPI is up 60% year over year. That's a workload measure, not a claim that 60% more packages are malicious. Planned work includes scaling PyPI's autonomous quarantine program and streamlining how the Python Security Response Team handles reports. Smith brings software development and Linux administration experience, including work at W3C and Software Freedom Conservancy. Joke: No papa
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
Michael KennedyHello and welcome to Python Bytes, where we deliver Python news and headlines directly to your earbuds. This is episode 504, recorded Monday, November 9th, 2026. I'm Michael Kennedy.
Michael KennedyAnd this episode is brought to you by Longlink. They're a really awesome platform for building business applications on top of things like FastAPI and Python. So I'm really excited to tell you more about them later. Connect with us, Mastodon, Bluesky, X, LinkedIn, all the things, all that stuff's at the top. And we've got this great newsletter, really fun stuff that we share with people every week, almost every week, almost every week, and sign up for it and you'll get it as well. You'll enjoy it, I'm sure. So with that,
Michael Kennedyfeeling like some things could use, I don't know, some redesigns. What do you think?
Calvin Hendryx-ParkerHow about a new view on life? A new view on life. Okay.
Michael KennedyYeah,
Calvin Hendryx-Parkerhow about a new view for PyPI?
Michael KennedyOh, I'm here for that, yes, let's do it.
Calvin Hendryx-ParkerI am too. That's kind of critical to a lot of things we do. So PyPI has redesigned the project pages, which is pretty nice because it now warns when there's provenance changes. So LiveNow, I think as of like three days ago, at least they announced it, that they were basically doing some user research that they talked about in July. This was funded by OpenSSF and built by the Kabu Creative, there is a new security tab on every project page, which is gonna show the releases,
Calvin Hendryx-Parkerprovenance state and per file attestations. So actually I'll scroll down and through here. There's this new security tab. So if you go to PyPI today and look at any project that's up there, you'll see a new security tab. I think you'll see a sense of some of the theme of my updates lately have been very much supply chain and attack vector related. And so this is in response to a lot of that as well. You get basically two attestation types. There is the on the PyPI publish one,
Calvin Hendryx-Parkerwhich is basically uploaded by a trusted publisher. So there's a trusted publisher plan or program that you can sign up for. And then there is the SLSA build provenance, which ties into a files commit, the build platform and the instructions. So there's two different kinds of provenance that's up there. So you can see here, there's the PI PI trusted publisher at the station. You're gonna see this for any project that has done any of the digital attestations to date. So projects like, for example, I pulled up SQLAlchemy.
Calvin Hendryx-ParkerSQLAlchemy has a security tab now, well, all of them do. And you'll see that the last 72 files in this release have been uploaded with Providence metadata. So all these releases here have that metadata. So obviously the crew over there on SQLAlchemy ahead of the game and we're publishing these before they were really visible to end users. So this solves that problem of making these attestations visible to folks in the community. There's also the SLSA style. So you'll see this orange icons which give you the identity,
Calvin Hendryx-Parkerthe build, the commit, the hash, and all the pieces that basically tie this directly back into the CI pipeline. There's also in addition to the there's warnings now you'll see. So there's like a no providence is not necessarily a malware flag. It just means that the file's origins couldn't be cryptographically verified. That's typical for older releases and things not using trusted publishing. So don't take that as a necessarily a bad sign. But there are four new providence warnings down here for incomplete,
Calvin Hendryx-Parkerinconsistent, and change or loss of providence. And those are all described here in that release specifically. But you'll see here now you'll get a warning at the top of that PyPI product page for incomplete providence, for example, with an explanation. Like, for example, two of the five files were uploaded without the providence metadata, which could be signals that you may encounter a supply chain attack. But I don't think it should be the end-all be-all definitive answer. You have to obviously go do your own search on that.
Calvin Hendryx-ParkerThese are meant to catch files that may not have come from maintainers, such as after an account or publishing workflow takeover. PyPI says a change of providence can also indicate a compromised pipeline or the account takeover or an unexpected loss of providence should be treated with skepticism until verified. And so I think that's the state of most security folks who are in the community, treat everything with skepticism until verified. The warnings will sit on top of the page until it is yanked, for example,
Calvin Hendryx-Parkerarchived or with pre-release banners, the quarantine banner overrides all of them. So that's kind of the top one you'll see on there. You also notice that the redesigned product detail page has some new niceties other than the providence bit. But probably the more interesting one is the file release files and release history will now clearly state or clearly show when there's things that are pre-release or release that has been yanked. That's always a big question for me when I'm looking at like trying to figure out why maybe a build failed or why I find something. So now you can actually see that there's a yanked reason,
Calvin Hendryx-Parkeryou know, set up blunder, breaking some bind gen code paths, for example, in the one that's in their blog post. But I think this is really great to highlight or bring to the, you know, the top of the stack when there's potential problems with the dependency packages in there. Mike, what do you think of the redesign?
Michael KennedyI like it. I mean, it's pretty familiar. There's not a whole lot of change, but functionally, I think it's a very important change, right? I think we've had trusted publishing, but.
Calvin Hendryx-ParkerIt just wasn't very visible. Like you had to kind of know this, this puts it a little more into the direct line of sight for everyday users or everyday developers who are, you know, maybe not as critical as they should be.
Michael KennedyYeah. Scroll into the partial provenance, the one with the reddish orange bar.
Calvin Hendryx-ParkerYeah. Yeah. Here we go.
Michael KennedyThere you go.
Calvin Hendryx-ParkerThis one.
Michael KennedyAs a person who did Python stuff on the web back in the day, how about that pyramid debug toolbar in the screenshot? Come on now.
Calvin Hendryx-ParkerThat was a good catch. Right over here at the Pyramid Debug Bar.
Michael KennedyYeah. Clicking it will do nothing because it's an image, but still.
Calvin Hendryx-ParkerRight. Obviously, they made the screenshots from a pre-release version of Warehouse.
Michael KennedyYeah, that's cool. I don't know if this is out. Is this out yet? Do you know?
Calvin Hendryx-ParkerThis is out. This is live. The screen I showed from SQLAlchemy was real. I went through and had to search a couple of projects before I found one that had full provenance or were using the digital attestations. A lot of common projects aren't yet. So for example, I searched for Django. It was not, the Django project's not currently using digital adaptations, but boy, it should. And hopefully this highlights that for package maintainers. So they start doing this.
Michael KennedyYeah, it makes a lot of sense. And you're making me realize I should probably do it for one of my projects I'm just about to talk about. So let's talk about it.
Calvin Hendryx-ParkerAll right, Michael, get on it.
Michael KennedySo I, was it last week, week before I introduced my chameleon-rs. I think that was two weeks ago. project, which is the chameleon, speaking of pyramid, the chameleon template language rebuilt for free threading and faster in Rust, all these kinds of things, right? And that is, maybe I hinted at this. This is just, that was just the first deposit in a bigger goal that I have to make free threading better for Python. And I've, it's been out for two years, two years. How many projects support it?
Michael KennedyAlmost none. It's really, I think, honestly, it's a little bit disheartening for me. I don't know how you feel about this, but I'm sitting here with, you know, 18 cores on my machine. I get like 5% use out of them on my projects. And it's just like, I get it. It's new last year. You know what I mean?
Calvin Hendryx-ParkerRight.
Michael KennedyBut it's like, okay, we're, we're into the third release, third yearly release of Python with free threading. And I don't know, maybe I was either inspired or grumpy. I don't know which way you want to perceive it, but I'm just like, that's it.
Calvin Hendryx-ParkerI don't know, Michael, what's your hurry?
Michael KennedyCome on. Can't you be a little patient? I'm like, okay. A lot of these projects, I'm like, oh, well, if I could like kind of poke at the edge, maybe this little thing that'll make a little better. I'm like, you know what? Maybe if it's not going to get moved forward, maybe I can make an alternative version that's somehow API compatible or API similar or just not at all, but kind of moves that forward. And so the Chameleon-RS one was the first one. And that's like full free threading support. I'm working on some others I'll talk about. But one of the things I had Chris Ariza, Christopher Ariza on Talk Python. It's not out yet,
Michael Kennedybut he has recorded the episode. It'll be out in two weeks. Yeah. And we talked about free threading. And one of the things, I don't know, let me know if you know this, because I did not know this. This totally surprised me. If I get Python, free threaded Python, it's not that the GIL is not there. The GIL is still there. It's just a feature flag turned off, even in the Python T, right? And here's where this gets kind of crazy. If you import something that does not, that has native extensions, I think this is not sufficient, but
Michael Kennedynative extensions, like a C extension sort of thing. If it does not explicitly say that it is thread safe, the gil gets turned back on for the whole process permanently. That's it. Like what? I thought we had free threaded Python. Like, no, you get the possibility of maybe, and then eventually it could potentially turn itself back off. I'm like, all right, that is just nuts. So what I would like is some kind of library or some kind of indicator that this is a problem and it is turned back on. Because if I have something like eight threads working on something and I have eight cores
Michael Kennedyon it, that's fine. But if it turns out that it gets turned back into a single thing with the gill, the collapse of performance, it doesn't just fall back to single threaded. It falls below, like possibly quite a bit below the performance you would have got if you just used one thread, right? Because there's just contention, all this contention and sharing and locking over still computed in parallel, right? All that. So I'm introducing to the world my next release, and there will be more, like I said, called Gilguard, the Gilguard. And here's what the Gilguard does.
Michael KennedyIt's a simple, pure Python package that only runs in free-threaded Python. What it does is, is you literally import the project, import Gilguard at the top. Now, you probably need to do some kind of like rough or hashtag ignore this unused import.
Calvin Hendryx-ParkerIs this for development only? Like you wouldn't want to release this into production?
Michael KennedyProbably not. Well, okay. Let me show you the features. Then you talk about it.
Calvin Hendryx-ParkerOkay. Okay.
Michael KennedyThe way it's written here, probably not. So what you can do is you can put import Gilguard at the top before all of your other imports. You don't want it to get reordered because it's I sort, you know, the sort the imports. That's going to change what it means. So it has to be the first because what it does is it knows it's running on free thread of Python and that the Gil is not enabled because it's the first thing. And then anything else that gets imported, either on this page, the next page, lazy imported in some other module that imports another module that then turns the gil back on. What you get is an exception with a whole ton of details.
Michael KennedyCrash, the gil has been re-enabled. And then this module from this file, this version, and this is the import sequence that it took to get there. All that kind of stuff. That's cool, right?
Calvin Hendryx-ParkerThat's really cool. It's not like you just named the package. You're like, no, it's right here. Exactly.
Michael KennedyYes, exactly. And here's the file. And then here is the sequence of import statements that got you to this file. Right. Exactly.
Calvin Hendryx-ParkerSo if you'd like to go fix it, here's the pointer.
Michael KennedyAnd I mean, the fix is like you go complain to the maintainer or you do a PR. I don't know. You stop using it. Yeah. Yeah. But there is no fix. Like the gills coming back on. I mean, I guess you can ignore it, but it's kind of like it's there's a way to say like, I don't care, like YOLO mode sort of for the runtime. But that's not the default. You got to choose it. Okay. So this is what it does by default. And if you ask about the, do I run this in production? Probably not like this. Maybe, but let's say probably not. I don't know, unless you want it to crash and then just like,
Michael KennedyI'd rather crash and then have like such a horrible performance. But I'm going to go with no on that. So another thing you can do on any virtual environment is you can just run python-m-gilgard. And instead of running your app, it will individually create a separate Python runtime and import each module separately. and to give you a report. It'll say like, I imported all these modules and one of them turned the GIL on. For example, I ran this on Talk Python training, 114 modules it imported. When it checked the virtual environment for the runtime stuff, 113 of them were fine,
Michael Kennedybut one of them, this PDF thing, turned the GIL back on. And guess what? It's not running in process anymore. I don't know what we're doing with it, but it's, I mean, just running as a, so this is like a generated PDF. I could easily just do that as a multi-processing or sub-process and get the answer. and that fixes that, right? It's not always you gotta replace it.
Calvin Hendryx-ParkerI kinda like that you could run this as like a pre-commit hook, like so I can just continually get a report or after an event of like, I added a new import into my project or new dependency, I'd wanna know.
Michael KennedyYeah, or CI, how about this? The next feature is it also has a pytest plugin. So you could just run it, run your pytests with the GoR.
Calvin Hendryx-ParkerWhy would you not do this? This is gonna save a lot of head scratching from a lot of people who are like, why is my thing not running faster? right it went for a while and then it gets worse right and they may be blaming free threading when it's not actually free threading's fault it's some dependency that brought in and permanently
Michael Kennedydisabled this for you comes from the fact like you what do you mean the gil can get turned back on i ran the free threaded one like that's insane to me yeah so all right also anything else oh yeah so if you go over to the docs um this is not the docs but i have a security tab it has no astestations don't tell anyone but if you go over the documentation which is that'll be fixed tonight it's um built on great docs which is a glorious glorious thing um but if you go to the user guide audit environment scroll down till you see some stuff and then where is it here um gosh i forgot
Michael Kennedythe guy's name who sent me this message on linkedin when i talked about this but there's a way to run it even if you're on like python 312 non free threaded version you can run this uv run command against your requirements file. And then it will basically sample it. Yeah, so you're like, I don't want to touch my code or nothing, but let me just run this command, these two commands against, with uv against the project, right? And then off it goes. And because uv is so awesome, it manages the environments, the installing a free-threaded Python to make it work, all that stuff, right?
Calvin Hendryx-ParkerYep. And I think that's something we mentioned in last week's episode was about uv making brand new isolated environment, multiple isolated environments, even inside of one project.
Michael KennedyYeah. Yeah, that's crazy. So anyway, there it is. That's my new project, Gilguard, G-I-L guard. And hopefully people, it's just one more contribution to help people move to at least potentially supporting free-threaded Python. And I think this is, even though it's a simple little package, I think it'll be pretty significant because you turn it on and it catches a lot of these errors automatically.
Calvin Hendryx-ParkerYeah, I'm not sure about the import part of that in my code, but definitely the pytest version, the running as an inline module or this isolated run of that, Like it's just completely hands off and not going to mutate or potentially affect the output of the run to my code.
Michael KennedyYou can also put it in warning mode for the import and it'll just give like detailed reports with like super big warnings. So you can choose to not have it crash your production.
Calvin Hendryx-ParkerIf you're touching free threading, you better be using this package.
Michael KennedyWhy not? Why not? It's totally free.
Calvin Hendryx-ParkerFor real.
Michael KennedyMIT, go out there and just have at it. All right.
Calvin Hendryx-ParkerI love that.
Michael KennedyYeah. Awesome. Thanks. let me switch this around all right so i want to tell you all now about our sponsor longlink so longlink is a cool project so if you go over to their main website first of all their most important call to action is you know please could you just star the GitHub project and give it a look but here's the deal so this is made by a growing startup out of switzerland and if you've got a company that's not a pure tech company or maybe even if it is like you ask yourself how much your company still runs on spreadsheets and unrepeatable,
Michael Kennedyunreliable things. So for most businesses, that's a lot of the, a lot of the runtime is Excel, right? Approvals might live in an email thread, tracking lives in a shared Excel file. Off the shelf software rarely fits the way that work actually happens. So you kind of got to work around it. And now, obviously we're in 2026, that AI has totally changed that math. So you could build custom software pretty easily for your business. But keeping it simple and affordable to maintain, that's now the hard part. So the problem Longlink is trying to solve is making that easy to maintain reliable by providing a platform
Michael Kennedyfor all these things to be built on to run business processes. You write your business apps in plain Python with familiar libraries and standard development practices. Longlink provides the platform underneath. Authentication, permission, deployment, storage, routing, and logging are all handled for you. You focus on the business logic, maybe you and Claude. You think purchase approval, vendor onboarding, work orders, or complaint tracking. Start with one process, then build the next. See how it goes. Getting started is one command, uvx long link init.
Michael KennedyThere's uv again. The platform has a free tier, no credit card required. The project is open source and in beta, and the team would love for you to try it and share your feedback. And while you're there, they'd really appreciate it at GitHub Star as well. So check them out at pythonbytes.fm/long link. Link is in your podcast player show notes. So pretty neat project. Check it out, everyone.
Calvin Hendryx-ParkerIt is cool.
Michael KennedyYeah.
Calvin Hendryx-ParkerWhen you first said that, I wondered if there were the opposite of a URL shortener, but no.
Michael KennedyExactly. I want something completely obscured as a URL.
Calvin Hendryx-ParkerLonger the better.
Michael KennedyRemember Bitly? Give me the opposite of that.
Calvin Hendryx-ParkerSounds like a total vibe-coded project.
Michael KennedyYeah, exactly. And it's going to exist pretty soon now. I'm sure it will. Long week's a cool project. Check it out. And pip, I mean, we talk about uv, but it's not the only way.
Calvin Hendryx-ParkerNo, that's true. And pip has a new release, which again, a little more on the supply chain security bandwagon. PIP 26.3 has a couple really interesting features and some documentation update. But most importantly, since the November 2nd release, its security policy and the documentation got updated basically to clarify that pip has never considered installing untrusted wheels safe but because python's import system is dynamic pip can't guarantee that installing a wheel won't
Calvin Hendryx-Parkerexecute third-party code so this should sound familiar to folks out in the audience because a lot of these have been relying on some startup hooks and path pth file exploits to basically get things thrown where they probably shouldn't belong. Another thing that the big change is there's been a warning since 26.1 around avoiding loading code from packages being replaced. So pip now blocks unexpected imports during wheel installation. So it'll load what needs for installing and it'll
Calvin Hendryx-Parkerreport the error up front. If you're using a command line, the CLI like pip, for example, you'll get basically blocked until pip exits. The import won't happen and the execution won't happen. The code that calls pip programmatically will get warnings after the return controls from the pip library. And this has been rolled out in steps. Like I mentioned, it first started in 26.1 with a warning at the unexpected import of blank after pip started. 26.3 now enforces this behavior change and it will turn it into an error and stop.
Calvin Hendryx-ParkerSo there's quite a few links I put in the show notes about the issue and the pull requests and some of the comments. Basically what tripped this up in the wild was one of the user's organizations had a at exit handler that was reporting interpreter usage metrics over HTTP. And that basically gave some warnings. And there's a couple other projects that are in the Python space that have maybe stumbled across this, like Rich in the Emoji Codes was doing this.
Calvin Hendryx-ParkerThe Lark API project was doing this. It was not without controversy. There is a slight issue right now is that there's an additional overhead to running this check. So the author and a couple of people went back and forth inside of the various pull requests. But basically importing pip's install command, which is where they were putting the kind of list of things that we're going to possibly lazily import during the install process, is adding about 700 milliseconds of latency to the install process.
Calvin Hendryx-ParkerSo others were complaining because, you know, yes, it's not pip isn't necessarily installed in every environment and it could be called. But the authors reply. So this is Damien Shaw said that just moves where the import cost is. And turning this on or turning this warning into an error is now crucial, given the stance of security and supply chain attacks that are out there. So if there's any kind of interrupted install, PIP will now write recovery metadata and reports to allow you to understand what happened. An interrupted uninstall may need a manual recovery. That's an uninstall,
Calvin Hendryx-Parkernot install. So check that out. Another thing in 26.3, so if you are still a pip user, there are pylock.toml improvements for installing extras. And then there's also some new --group for installing non-default groups of dependencies. So a couple of little nice little dependencies. And another thing that pip will also refuse to do is follow a file URL redirect, which obviously can lead to hilarity or most likely security and supply chain issues also.
Calvin Hendryx-ParkerSo again, I linked in the show notes to the issue, the PR and that other kind of details in there. I know it's a small thing, but again, anything we can do to make sure folks are not susceptible to these supply chain issues and chain problems, I want to make sure we're all on top of. So I'm also not a pip user anymore. I'm a uv all the way, but I know that that's not normal. there's probably a tremendous majority of people who are probably still out there using pip for
Michael Kennedythings yeah absolutely and you know security is good this is all very important also just beginners you know a lot of beginners come on they're not like oh the first thing i learned is uv yes exactly how many docs still say pip install xyz you know yeah don't install i don't know what package that
Calvin Hendryx-Parkeris by the way so but yes it's it's just interesting because during the pip install lazy imported pieces of code were the problem like it's like you were i'm going to install this thing And then like in the middle of it, as you were like raising the curtain and getting ready to put down the next piece of like stuff, something else would happen that you weren't expecting. And that is where this is blocking it now. Probably a wise thing to do. Just tightening everything up.
Michael KennedyI'm here for it. Sounds good to me. All right. Let's talk about some developer tools.
Calvin Hendryx-ParkerHow about all of them?
Michael KennedyAll of them. All of them. So guy behind this sent me and said, hey, I want to tell you about some regex tool that I made. I'm like, I don't know. I mean, regex, like we talked, there's a lot of regex. But then I kind of poke around this place called HeyUtils.com.
Calvin Hendryx-ParkerI've never heard of it.
Michael KennedyFlash tools. I hadn't either. There are 306 tools. So look at this. You got some JSON and you want it in Tommel and you don't feel like making your AI do it. Just go in here, paste that bad boy in there and boom, you got Tommel. Or you've got... Oh, that's cool.
Calvin Hendryx-ParkerSo the tools are all online. You can use them in line from here?
Michael KennedyExactly. It's a JSON path tester. There's a JSON diff over there, which probably if they're out of order, it doesn't matter, I'm guessing. JSON to Go, JSON to Java, to TypeScript, to Python. What do we get? We get data classes. Yeah, that's pretty sweet. Like there's a note about a Pydantic one. Yeah, oh wait, hold on. You might be able to get more. Target is Pydantic or data classes. How about that? That's pretty solid. Scroll, there's CSV stuff. There's file stuff, text encoding, regex. There we go. That's what I said. UUID generators, time and math,
Michael Kennedyyou know.
Calvin Hendryx-ParkerThat's pretty handy because I can't tell you the number of times I have like JSON I want to validate in my clipboard. And I'm just like, I just want to go to a web page. So I go search for a new tool every time I do it.
Michael KennedyCourse tester. Exactly. I'm like, every time, JSON validator online. And it feels like it's purple. I'm like, yeah, it's purple. But I just, I don't remember, right? Certificates. Anyway, we're only like 75% of the way through. So there's a lot of stuff here. I just thought, you know what? I was, you have no idea. I mean, you have an idea. But the general you out there has no idea how many tools we get sent. It's honestly kind of overwhelming. to open up my email in the morning. I get so many. Hey, Michael and Brian, we just, I really enjoyed your episode.
Michael KennedyAnd I'm like, no, I did not misspeak and forget Calvin's name. That's what the email says. Hi, Michael and Brian. Because they got some crap AI that was trained six months ago that's trying to submit their stuff to every podcast they can find. You know what I mean? And I'm like, erase, erase, erase. But I feel bad because every now and then I'll get a real one, a real legitimate, somebody's taking the time to send in something. And I'm like, oh, I almost deleted you you were the ninth one in a row you know what i mean so anyway that's why i put emojis in my
Michael Kennedysubject lines so i always stand out exactly i'm just kidding hashtag drop a dolphin if you if you
Calvin Hendryx-Parkeralso use right how about uh how about dropping an extra i got an extra for you i got a fun little one here uh you've heard of all the refrigerator and freezer hacks going on in europe because people didn't patch their OSs or left the default password on there. So someone developed a nice little honeypot project, which, okay, I'm not into hacking refrigerators, but it is an interesting research project. And they managed to build a single file Python with no dependencies other
Calvin Hendryx-Parkerthan the standard library version of a honeypot that acts like it's one of these supermarket refrigeration controllers from Dan Foss or Dixle. And so it'll return login pages and all the pieces that make it look like it's actually doing the thing that the malicious attackers would do. And then it writes out a nice little report for you as the person running the honeypot. If you're a security researcher or you want to just kind of tinker with security research, this is a fun little way to get started. So check it out. It is called Cold Frame.
Calvin Hendryx-ParkerI like to play on the pun on refrigeration controllers, but looks pretty fun. I haven't tried it myself so maybe it maybe itself is a honeypot it's only a few days old but can you believe they installed it oh my god yeah well i went and looked at the code like the honeypot file itself is only 735 lines of code so it has in there again all the login screens all the the bit that makes it look like it's real to one of the potential attackers that's kind of fun i mean
Michael Kennedynot cool that it's happening but i love the idea of honeypots and these canaries and type of things
Calvin Hendryx-Parkerthey're really great especially if it's your hobby and you want to like see what's going on and experience it if you can get one of them hitting your honeypot then you'll gather data
Michael Kennedyfrom the attackers yeah absolutely now before we move on to my extra i just we were talking before the show but it feels like maybe worth bringing it out to the audience now as i go around and look at these different projects that people send me and so on like you never you never know what's out on the internet right there's all the supply chain stuff so if you're thinking about a project maybe just take the two minutes, copy the GitHub URL, go to your favorite AI and go, hey, I'm considering using this. Is there anything malicious in here? Don't do a security review. Just tell me, is it a supply chain thing? And just, you know, that's the new virus scanner I think we got to get to.
Calvin Hendryx-ParkerThese repositories have hooks potentially in them that could run code on your machines. When you clone it, and then if you change into another branch, there's a hook that can fire that can do whatever it wants.
Michael KennedyIsn't that nice? I get an extra little bit of execution that I
Calvin Hendryx-Parkerdidn't expect it was convenient it was convenient as developers because we would use it for certain things but it's also very convenient for attackers yeah absolutely all right well my only extra is
Michael Kennedycongratulations welcome to brett smith so brett smith is joining the python software foundation as a security developer along with seth michael larson the security developer resident and mike fiedler as the pypi safety and security engineer who i feel like we probably covered some of his work at the beginning for your things. He was definitely involved. So this is super cool. And this is, I think we, I gave a unsolicited shout out to Claude earlier, but you know, Anthropic's pretty awesome in terms of their coding tools.
Michael KennedyAnd this is made possible by Anthropic donating support to the PSF. So thanks Anthropic as well. I just hope that Brett's middle name is Michael, because we've got Seth Michael Larson, Michael Fiedler. We got to keep the mics going.
Calvin Hendryx-ParkerThere's a lot of Michaels out there.
Michael KennedyNo, congrats, Brett. And thanks, Anthropic. Okay, close it out with a joke. What do you think?
Calvin Hendryx-ParkerI never peek. I always wait for the joke to hit me so you get the actual reaction.
Michael KennedyI love it. I love it. That's the way to do it. I actually have two jokes for you.
Calvin Hendryx-ParkerOkay.
Michael KennedyI'll give you my first joke, which is I had not planned it, but this is a coffee mug that I got that one of my older daughters, they're twins, so I have two older daughters, gave to me for something. And it says, the code doesn't work. why? This is a frustrated developer. Same picture. The code works. Why?
Calvin Hendryx-ParkerThat's a good one. I haven't seen that one before.
Michael KennedyYeah, I literally had this conversation with Claude yesterday and it said, oh, I changed this thing so this would work. I'm like, but it worked before. Can you help me understand why? Because I don't know. And he goes, Michael, honestly, I can't tell you why this works. I'm like, oh, nobody knows. All right. Okay, that's where the joke.
Calvin Hendryx-ParkerSometimes the agents get a little lazy. They're like, that seems hard. I don't want to do that.
Michael KennedyI know, exactly.
Calvin Hendryx-ParkerWhat do you care?
Michael KennedyCreator said save tokens. We're on a subscription plan. Okay, you're right. Speaking of which, so the joke is, I've entitled it No Papa. So Docker is the papa. The CPU is the papa. Docker is the kid. CPU says, Docker, Docker. Yes, papa. Eating RAM? No, papa. Telling lies? No, papa. Open your mouth. And you look in there, it's 9.06 gigs of RAM usage. no papa it's fine
Michael Kennedywell that was a fine it is yeah that's a fine episode calvin thanks so much as always enjoyed it yep you bet bye and bye everyone see you see you next week
Topics covered in this episode: tinyjobs: a SQLite job queue goes free-threaded funkycache: cache Python functions in SQLite Ghostman - a keyboard-driven terminal API client diskcache-oxide: A shared, durable disk cache...
Topics covered in this episode: Your GitHub language bar is lying (how to fix it) Python Typing Survey 2026: developers mix type checkers, and AI is writing the hints Flask Vibe - Build Apps You Can Understand Python on...
Topics covered in this episode: PHP wasn’t the only problem last week chameleon-rs Bringing uv and ty together Stlite runs Streamlit apps entirely in the browser Extras Joke Watch on YouTube About the show Connect with...
Topics covered in this episode: Nod: pause your Python program and open a notebook at any line Polars 2.0 ships: streaming engine by default, spill-to-disk, and a row-order gotcha django-cachalot caches your ORM queries...
Topics covered in this episode: A quick chat with Brian looking back Extras Joke Watch on YouTube About the show Brian #1: A quick chat with Brian looking back Nick #2: Jev and the Case for Boring ML Vincent Warmerdam...