Topics covered in this episode: De-fanging dangerous triggers in GitHub Actions across an organization RQlite - The fault-tolerant relational database built on SQLite. diskcache-oxide now supports Django Muru: an AI-assisted Rust server for Python apps from mod_wsgi's creator 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: De-fanging dangerous triggers in GitHub Actions across an organization GitHub will block pull_request_target by default in public repos starting Dec 2, 2026. GitHub announced this in its changelog on Nov 2; it isn't in effect yet. That default stops applying once you set your own event policy. Two triggers are the main danger. pull_request_target and issue_comment both run with a token that can write to the repo and with the repo's secrets. The classic "pwn request" is a workflow that checks out a stranger's PR code and runs it. It's not theoretical. Ultralytics (Dec 2024), LiteLLM and Telnyx via Trivy (Mar 2026), and elementary-data (Apr 2026), where a single crafted PR comment led to a malicious release on PyPI. To get started, the first step is an Actions event policy. On GitHub Team or Enterprise, one org-wide policy allows only the triggers you expect: pull_request, push, release, repository_dispatch, schedule, workflow_dispatch, workflow_run. Start in Evaluate mode. It blocks nothing and logs what would have been blocked under "Policy insights". Leave it on long enough to cover a release and your least frequent scheduled job. Free plans have to do it repo by repo. You apply the same policy through gh api /repos/$repo/actions/policies. New repos have no policy until someone adds one. Find what you have: gh search code pull_request_target path:.github/workflows --owner YOUR-ORG, also search for issue_comment and then zizmor to check each repo's workflows. PSF status: the policy is set up for the pypi org. In the python org, Seth Larson is still migrating the last few repos before turning it on. The post's intro says all three orgs are done; I'm going by the body, which is more specific. Michael #2: RQlite - The fault-tolerant relational database built on SQLite. rqlite is a self-hosted distributed relational database built on SQLite and the Raft consensus protocol. It puts SQLite behind an HTTP API and replicates data across machines. For Python developers, the appeal is familiar SQL and lightweight deployment, with a database that can survive a server failure. Keep SQLite's SQL, add high availability. A three-node cluster can survive one node failing, provided the remaining nodes can communicate. Python applications send SQL and parameters over HTTP as JSON. Integrations include pyrqlite and sqlalchemy-rqlite; check client capabilities before migrating existing code. Deployment is a single binary per node, with Docker and Kubernetes options. Features include full-text search, JSON support, SQLite extensions, change data capture, and automated cloud backups. Replication does not scale writes. Every write goes through the leader and Raft log, adding network and disk overhead compared with standalone SQLite. Transactions must fit within one HTTP request. You can execute a batch atomically, but cannot hold a transaction open across requests. Explicit BEGIN/COMMIT/ROLLBACK control is unsupported. Read consistency is configurable: default Weak normally reads from the leader; Linearizable adds quorum checks; None permits potentially stale local reads. Stronger guarantees cost coordination. Discussion angle: when does SQLite need clustering rather than just backups? Proposed demo: write from Python, stop the leader, then show the surviving cluster accepting requests after election. SPONSOR SEGMENT: LongLink Michael #3: diskcache-oxide now supports Django diskcache-oxide plugs into Django’s existing cache framework for page caching, template fragments, low-level cache calls and sessions. Worker processes on the same machine share one cache on disk, with atomic counters across processes. The appeal is keeping Django’s familiar caching API without running Redis or Memcached. Setup uses the package’s django extra, diskcache_oxide. DjangoCache as the backend, and an absolute directory for LOCATION. Existing Django cache calls stay the same; optional sharding spreads contention across multiple cache files. Keep disposable pages separate from session state. The recommended configuration uses two aliases and directories: page-cache failures become misses or dropped writes, while session writes raise on failure and sessions are not evicted for size. The backend rejects session configurations that silently drop writes. The companion Django example runs four Gunicorn workers and demonstrates cached views, template fragments, sessions and a shared visit counter. Response headers identify which worker answered, and multiprocess tests check concurrent increments, sessions across workers and caches opened before forking. This shares a cache across processes on one machine, not across a fleet. Django’s get_or_set() can still compute twice when workers miss together. A cached view that reads sessions also needs vary_on_cookie to avoid serving one visitor’s personalized response to everyone. Calvin #4: Muru: an AI-assisted Rust server for Python apps from mod_wsgi's creator Simon Willison's post (repo: muruhq/muru · author's series: Twenty years of mod_wsgi) What it is: Muru is Graham Dumpleton's successor to mod_wsgi, 20 years after he started writing mod_wsgi in December 2006. It's not an Apache module and not another server you put behind nginx. He means it to handle running a Python web app from your laptop through to production. The parts: muructl is a single Rust binary that handles HTTP/1.1, HTTP/2, TLS, static files and compression, and never runs Python. A Python host process imports your app once and forks workers from it. A controller decides what runs and is never on a request's path. It hosts more than WSGI: ASGI and gRPC too, all in one app. Requests can be handed from WSGI to ASGI, so an existing WSGI app can add websockets without a rewrite. Flask and Django run unmodified, e.g. muructl run mysite.wsgi:application. Every deploy is a new release: a release starts next to the old one and traffic moves only once it's ready. If the new code won't even import, the old release just keeps serving. Even dev-mode auto-reload works this way, and the same mechanism gives you blue/green, canaries and rollback. It understands Python apps: the access log splits waiting time (queue=, every thread was busy) from your code's time (app=), so you can tell "add capacity" from "fix slow code". Each scaling policy can scale workers to zero and optionally stop the host process too. Fun tie-in with the lazy-imports story: his "when lazy imports help" post argues that PEP 810 lazy imports can hurt a pre-forking web server. Deferred modules load separately in each worker, so they aren't shared through copy-on-write memory. Muru measures import costs per app instead of guessing. Status: alpha, pre-releases only. Install with uv tool install muructl. It runs on Linux and macOS with CPython 3.11+, including free-threaded builds, and is Apache-2.0 licensed. The AI angle: Dumpleton says most of the code was written by AI, while he handles design, review and steering. It's about a month old, and he's in the Claude for Open Source Program. He doesn't accept patches: "don't send me a patch, just describe the problem." Quote: "deciding what isn't good enough yet is still down to me, and twenty years of getting things wrong with mod_wsgi turns out to be useful for that." Extras Michael: Black Friday is on at Talk Python Training My first CPython issue PyCon US 2027 call for proposals is open nginx2root - patch your nginx now Credit Jake Howard F5 shipped nginx 1.31.9 (mainline) and 1.30.7 (stable) on November 18, 2026. They fix five memory-corruption bugs that Xint named nginx2root. Each one is a path to unauthenticated remote code execution. If nginx fronts your Python apps, check your version today. The big one is CVE-2026-123007, an integer underflow in HTTP/2 flow control. It has been in every release since HTTP/2 landed in 1.9.5 in 2015, and a reachable TLS port with HTTP/2 on is enough. Exposure is huge. Xint counted 11.94 million nginx hosts on Shodan that report a version, and 98.9% were in the affected range. The fix is to upgrade. Setting http2 off; is a stopgap that blocks only two of the five. The other three hit the DNS resolver, HTTP/3, and the mail proxy. Docker does not save you. Xint chained the nginx bug with an unpatched Linux kernel SCTP flaw to go from the nginx worker in a container to root on the host. Block the sctp kernel module if you don't use it. AI found most of it. Four of the five came from Xint's autonomous scanner with no human steering, and Wiz found the HTTP/2 pair with its AI code scanning harness. Xint and Wiz are withholding their exploits and no attacks in the wild are reported, but some outlets say a public PoC hit GitHub the same day. Joke: What they think grid
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 earbuds. This is episode 506, recorded November 24th, 2026. I am Michael Kennedy.
Michael KennedyThis episode is brought to you by Longlink, the open source platform for building and running custom business applications with Python and FastAPI. Check them out. The link is in your podcast player show notes. Tell you more about them later. Connect with us on all the socials. That's on top of the page. And sign up for the Friends of the Show List. We'll send you really cool announcements and summaries, even deeper dives into some of these topics than what we might normally cover. Speaking of covering things, you know, it can be a dangerous world, Calvin.
Calvin Hendryx-ParkerIt is a potentially dangerous world out there. And I'm glad to see that some people are doing something about it. This is actually a blog post from the Python Software Foundation. Don't let the blogspot.com URL fool you is actually the actual PSF. But Mike.
Michael KennedyI'm going to create a mashup.
Calvin Hendryx-ParkerOh, my goodness. It's a web2o.
Michael KennedyA Yahoo mashup with that quest.
Calvin Hendryx-ParkerSorry, PSF. We may want to get a real blog at some point. I'm trying to throw not too much shade against blogspot, but it is blogspot. But no, Seth and Mike have basically kind of covered the fact that GitHub is going to start blocking some dangerous triggers by default. So there's a couple of them, specifically pull request target and issue comment. These are basically things that have been used in some of the recent supply chain attacks. These basically let a stranger on the GitHub internet or the
Calvin Hendryx-Parkerinternet start workflows that may have access to your secrets. So are very, very dangerous. They actually, so Mike and Seth, I believe they were, there's a post. Yeah, here it is. The Alpha Omega blog, the full details of the technical documentation about what they wrote up from the Python Software Foundation side of things is actually available over there on this link here into the Alpha Omega blog. But basically, the first step is basically to handle actions in event policy.
Calvin Hendryx-Parkerthe GitHub team, and even on GitHub teams or enterprise or an org-wide policy allows only triggers you expect. So there's common ones like pull requests and push and release. So those are ones coming from like people in your organization. But if you have an open source project, someone can leave a comment and maybe you had an issue comment trigger and a misconfigured one of those could cause havoc to ensue. GitHub's obviously releasing this in an evaluation mode. This is coming on December 2nd for public repositories.
Calvin Hendryx-ParkerSo as they say in the post here, if that means nothing to you, this post is for you and if it fills you with red, this is also for you. This affects everyone. Anyone who has got a public GitHub repository out there, maybe you know or don't know that you've been using these pull request target or the issue comment target and cause things to happen. That's what you got to watch out for here. The free plans do are gonna be done. let's see here, free plans are gonna be done repo by repo. You can apply the same policy through the GitHub command line if you wanted to.
Calvin Hendryx-ParkerAnd new repos have no policy until someone adds one. So I don't know if you've noticed that recently, that there are no default policies added anymore for actions like that. That's probably wise because then you, there won't be unexpected things happening that you didn't configure to happen. The policy right now is set up for pypi.org. And so on python.org, Seth's been migrating the last few repos before turning it fully on. The post entry says that all three orgs are now done and going into
Calvin Hendryx-Parkerbasically what the specifics of it are in that blog post. Again, this is real. The probably recognize some of these names like the LightLLM supply chain attack was caused by a pull request target exploit being pulled there. So we've seen this happen. Again, their post goes into what's going on. If you've got those two triggers active, they're gonna be just deactivated. If you've got them active right now, you should probably go ahead and deactivate them on your own.
Michael KennedyYeah, for sure. You know, you hear about certain things being taken over for supply chain issues and people are like, "How is this possible without the code changing at all?" Well.
Calvin Hendryx-ParkerHere it is. It's the infrastructure underneath it that's... These kinds of tools make it nice and convenient and frictionless for us to be developers of open source projects and provide software to the world. but it comes with a lot of little sharp edges that we just, you know, as you say, it's hard to have nice things. If there's people, if there's people out there who are going to abuse them. I mean, if that was the case, we'd go back to using like Telenet or R login and just forget encryption altogether. Who needs it?
Michael KennedyI'm on team Archie. Let's go.
Calvin Hendryx-ParkerThat was a gopher user. Gopher user.
Michael KennedyLet's go. Oh my gosh. I used both of those a little bit in those super early days of the internet before the web existed. I still don't know what they are.
Calvin Hendryx-ParkerYep. So yeah, you can see here that they, Again, Alpha Omega supported the work done by the Python Software Foundation folks with Seth and Mike. There was analysis that got funded for looking at each of those attacks and understanding what happened. And we thank them for the things they're doing.
Michael KennedyYeah, fantastic. Alpha Omega actually does a lot of contributions. So we're cool. Have I mentioned that I'm on this sort of SQLite kick?
Calvin Hendryx-ParkerI was surprised and not surprised that we're still talking about SQLite projects.
Michael Kennedystill talking about SQLite projects. This one is super interesting. What if you could say, I would like database, but even though I like SQLite, I would really want it to maybe run on a different machine, or I want it to be more durable, more highly available. Well, have I got a cool project for you? RQ Lite. Instead of SQLite, it's RQ Lite. And what it is, is it is a basically a front end to a really interesting set of features on top of SQLite.
Michael KennedySo what you do is you go and run this app, you set it up, and its expected way to run, it doesn't have to run this way, but its expected way to run is in a cluster of database servers, all backed by SQLite.
Calvin Hendryx-ParkerInteresting. Okay.
Michael KennedyOkay.
Calvin Hendryx-ParkerGo on.
Michael KennedyYes. Now you got my attention. Yeah, so you start a server, and then you start a second one. Could be on the same machine as a different Docker container, or it could even be on a, you know, maybe on even a different machine. And then you attach it to the original one. You could start a third, fourth, fifth, whatever, how many you want. It uses the raft voting protocol to decide if one of these machines goes down, how does it keep running? So this is pretty interesting. Then you query it in either just pure HTTP as just a JSON endpoint,
Michael Kennedyor you can get a client. Like there's a Python client here that you can get. And really the way it works, here's an example, is you basically just treat it as a DB API. I don't know if people are familiar with this term, but this is the built-in way to talk to...
Calvin Hendryx-ParkerOld school.
Michael KennedyYeah, it's old school, like straight raw SQL. And that's how you talk to it, right? You could, of course, take this... I'm pretty sure you could take this connection because it's just a DB API connection and pass it on to something like an ORM. I don't see why not. It's plausible. So anyway, it has all these different libraries. It's got Go, Python, TypeScript, JavaScript, Broth, C#, et cetera, et cetera. And they're asking for, hey, make us another one if you look at this and it's not enough. So this is pretty neat. It's just a self-contained single binary. Fires up. I'm guessing that Go being on the top of the list. Let's just go find out.
Michael KennedyThat's 18,000 stars. So this is not just a little toy thing. And yes, it's written in Go. So yeah, it's just a single Go binary that you go deploy. It runs on Docker Compose and Kubernetes. It has all the power of SQLite. SQLite extensions. You can stream changes with change data capture built in. And it also automatically, like LikeStream, automatically streams continuous backups to S3, Min.io, and Google Cloud. So instead of having just, yes, if one part of the cluster goes down,
Michael Kennedyyou can get to the other. But it's like you can say, I want it the way it was seven seconds ago. Not now. You know what I mean? Like you could point like continuous point in time backup, which is kind of the opposite of what you think with like SQLite, right?
Calvin Hendryx-ParkerLike you don't think of it. Yeah.
Michael KennedyIt's really wild. Like I said, 18,000 GitHub stars. It's not just like a little toy. It comes with a UI for monitoring the cluster health, for monitoring the schema, for all sorts of different things. So yeah, it has its own little UI. And so anyway, I want to put this out there. This is by Philip O'Toole, I believe. At least the thing is trademarked by Philip O'Toole.
Calvin Hendryx-ParkerYou need to have this person on Python so I can understand better why they started this project.
Michael KennedyI know. It's very interesting, isn't it?
Calvin Hendryx-ParkerBut it sounds like the, I mean, obviously you can read out of all these replicas, but writes are still happening in one spot and then getting spread across all of them.
Michael KennedyRight. I believe so. And I believe that's why it has the raft consensus algorithm, because it's got to decide who is in charge of receiving the writes, you know?
Calvin Hendryx-ParkerRight. So if you have a hundred replicas, that sounds terrible.
Michael KennedyIt's probably not a good idea.
Calvin Hendryx-ParkerYeah.
Michael KennedyI mean, maybe it's a good idea. Maybe if you make sure that they're all read replicas, I don't know too much, but there's a whole section in the docs about clusters somewhere as well i i this wasn't on my bingo card for today no no i'm sure here we go somewhere down here yeah you got your general guidelines about clustering and building clusters and i just think it's interesting it's it's it's a very wild idea a very wild way to create a super high availability as simple as sqlite but remember sqlite does like hundreds of thousands of read writes a second on one machine on one yeah it's
Michael Kennedythere's some really interesting building blocks here.
Calvin Hendryx-ParkerBut I think that's because it wasn't trying to do all these things.
Michael KennedyWell, it's definitely going to go slower because you've got to talk to it over HTTP, right? I mean, a single request will go slower, but it might still be pretty scalable. I don't know. We shall see. But it's just something else. I thought it was, you know, what an interesting way to create database. It's popular enough that it's not just like, oh, here's a random interesting thing that's probably unreliable and unmaintained. You know what I mean?
Calvin Hendryx-ParkerWell, I'd love to hear from more viewers if they've got a use case for this. Yeah,
Michael Kennedyif people are using this out there, let us know. Yeah, I'd love to know. It would be so good. But let's talk about Longlink, our sponsor. Yeah, so our sponsor for this episode. So thank you to Longlink for sponsoring this show. And as I said at the opening, this is a way where you can build a substrate for building your business applications on top of them with AI. It gives you a lot of shared cool features. Longlink is a growing startup out of Switzerland. So they asked the question,
Michael Kennedyhow much of your company still runs on spreadsheets? For most businesses, a lot. Approvals live in email threads, tracking lives in shared Excel files. One, you get these off the shelf software that rarely fits the way you work. So you got to work around it. And AI has actually changed that math. It used to be you'd make the custom software or the SaaS software sort of work. And now you're like, well, let's just build our own. And building is easy, but keeping it simple, affordable, and maintainable is not so easy. And that's the problem that Longlink is trying to solve.
Michael KennedyYou write your business apps in plain Python with familiar libraries and standard development practices. Longlink provides the platform underneath. Authentication, permissions, development, as time deployment, storage, routing, logging, all taken care of for you. You focus on the business logic. Think purchase approvals, vendor onboarding, work orders, and complaint tracking. Start with one of these, build a nice custom version on top of Longlink, and move on to the next. Getting started is just one command, uvx Longlink init. The platform has a free tier, no credit card required.
Michael KennedyThe project is open source and in beta, and the team would really love for you to try it and share your feedback. And while you're there over on GitHub, give them a GitHub star. Help them out. Check out pythonbytes.fm/longlink to get started. The link is in your podcast player's show notes.
Calvin Hendryx-ParkerInteresting they mentioned the complaint tracker. Maybe those can get routed to dev null faster.
Michael KennedyExactly. We'll be getting right back with you on that.
Calvin Hendryx-ParkerNo problem. Get right on that.
Michael KennedyNo problem at all. I know I'm next in the show notes, but why don't we get over to you?
Calvin Hendryx-ParkerYeah, we should do it correct, the correct order there. So I've been a longtime person in the Python community, and anyone who's been around long enough has probably used ModWisgi, which is an open source project by Graham Dunpleton. And he's got a new open source project that Simon Willison posted about on his blog recently called Maru. It is basically re-envisioning, re-imagining everything that he has gone through in the last 20 years of maintaining and building ModWisgi,
Calvin Hendryx-Parkerwhat he would have wanted to do instead. Because if you're in the, it's because ModWisgi, for those who don't know, is an Apache module that lets you run Python applications in the process space of Apache, which you can imagine comes with its own constraints. So it was one of the big reasons why he was always kind of unhappy with ModWhiskey. It was a great project, but he had pieces of it. He wishes he could have done differently, but he couldn't because Apache dictates a lot of how their modules run in the module space.
Calvin Hendryx-ParkerAnd there's just not a lot you can do. You've got a box and you've got to fit inside it. And that's what ModWhiskey did. They allowed to run, you know, Whiskey apps. So Maru is a new AI I assisted a Rust server that allows you to run at edge Python applications, which are WSGI or ASGI. And actually they can be run side by side. It can provide for zero failover. And he provided a 19 post blog about how he did it. And Simon links to all of them.
Calvin Hendryx-ParkerBut it kicks off with 20 years of mod WSGI and what comes next. So you can imagine someone who's done this in this domain, in this space, has exactly the expertise you would need. Basically go out and agentically engineer the better solution. That's why this has happened now. Two things happened in Graham's life. He's semi-retired and agentic coding came about, which meant cost of producing software has dropped dramatically from a time standpoint. So he was actually able to spend time as a hobby again, building the better version of what he wanted.
Michael KennedyYeah, this caught my attention for sure.
Calvin Hendryx-ParkerYeah, I was really excited about it.
Michael KennedyIf you didn't cover it, I was thinking about covering it.
Calvin Hendryx-ParkerIt was really exciting. What's interesting is, yeah, he mentions in here kind of about the constraints of why he's doing this now, what's going on, what, you know, the Apache problems that he ran into and could never solve. But it looks really cool. And again, it's all AI code generated. He gets to do all the pieces he wants to do and he documents the process along the way. So if you're wanting to basically hear about how a very seasoned developer attacks a domain that they know a tremendous amount of knowledge about and using AI to its fullest,
Calvin Hendryx-Parkerthat they can be the design, the architecture, the documentation, the specs, the planning, and not worry about the code, that's what you got here. If you're not into AI generated code, maybe this isn't the project for you, but I think this is the way projects like this should go is where you get someone who is incredibly, again, knowledgeable in that domain, guiding a tool like these AI agents to build out the software that would be the best version of the thing you'd ever wanted. It does other cool things.
Calvin Hendryx-ParkerSo like zero downtime releases, full traffic management, like Canary and Blue Green releases. Those are nice. Yeah, so thinking about in the historic, like how we used to release software, you would have to release the code someplace, Maybe you're releasing containers into Kubernetes, but then you have to route traffic over to it. Maybe you are just doing a git pull onto a machine with Apache, and now you got to restart the process so that it can pick up your code changes. This launches the containerized version of the code right into its own process,
Calvin Hendryx-Parkerhandles that handover. If your code fails to start, traffic never gets routed to it. And that's just all bundled into this. And again, another thing he focused on was that same experience from the local developer. You use this for local development, you use it in a daemon like a server, or you can launch it into containers and have it has, it's got three modes of running, which is like the Muru CTL run, daemon start and serve, and all of them meant for specific different applications.
Calvin Hendryx-ParkerBut obviously it supports Docker, Compose, Kubernetes, and you've got the same process model across all three. So fits my checkbox of I should be doing the same thing in Prada as I do in my local machine. So it's easy to debug and I'm not running into weird deployment issues as I go into another environment.
Michael KennedyIt's very appealing.
Calvin Hendryx-ParkerIt's very, very appealing.
Michael KennedyYou know, the AI side doesn't turn me off from it. Honestly, I have stories I'm going to share with you that will, I think, maybe be quite the contrary. Before we get to that, here's a guy who's got 20 years of experience. I really wish I could rebuild this thing from scratch. Now understanding 20 years of lessons. But I just can't take the two years of like reprogramming this from scratch and then all the security stuff if I write it in native code and so on. And then this partnership of, you know, Clotter, Codex or whatever,
Michael Kennedyplus exactly what they want to build. I think that can be very powerful.
Calvin Hendryx-ParkerYeah. In addition to like the zero downtime releases, it's everything you need for the front end too. It's HTTP 1.1, 2, TLS, there's virtual hosts. It does all the bits the way you'd want it. So it simplifies, actually simplifying your deployments. You no longer need a separate static server.
Michael KennedyRight, you don't need Nginx or whatever.
Calvin Hendryx-ParkerLess moving pieces is better in my book.
Michael KennedyOnly one piece move.
Calvin Hendryx-ParkerExactly. And if the pieces inside it don't start up correctly, don't serve traffic to it.
Michael KennedyPieces rusted, don't try to move it. Get a new piece.
Calvin Hendryx-ParkerYeah. And there's great docs, great code, great process. The whole blog thing, just fantastic to watch people develop in the open like that. It's just funny because Graham's always said he's the grumpy old guy. This is fantastic though. Grumpy people don't do stuff like this.
Michael KennedyNo, it's very cool. Very, very cool. All right. I've got one more thing for us. And it's a follow-up from last week. I told you all about DiskCache Oxide. Well, Calvin.
Calvin Hendryx-ParkerYes, I'm here for it. I'm here for it. I love it.
Michael KennedyAll right. So one of the last main pieces, there's a few more things before I call this DiskCache Oxide Project Feature Ready. Just for reminders, everyone, Discache Oxide is a SQLite based, but Python cache that has a very sophisticated Rust core for managing multi-threading background jobs that do like management of the write-ahead log and checkpoints and all of these kinds of things, expiration that is missing from a lot of these like simpler cache stories,
Michael Kennedybut you still run it as a single file in process. So it has things, you know, like, I don't know, 800,000 requests, read, writes a second, you know, in your app, which is very cool. But what it didn't have is it didn't have the official like built in cache support for Django. So for those of you don't know, Django, the framework itself has a way to read and write to caches with all the things that caches do. And if you implement all the right bits, then you can swap that out with a Redis or Valkey
Michael Kennedycache or whatever, right? So I went and implemented that Django cache. And now you can just go to the caches and set the default back into disk cache oxide.django cache. Give it a location and a timeout and you're off to the races.
Calvin Hendryx-ParkerNice and easy.
Michael KennedyNice and easy. You can set up page data caches and session caches as two separate things so that you're We're not necessarily mixing those together, right? You can also pass all the settings, like how large of a complete file size, like how much space is this thing able to take up? And then it'll start ejecting older things that are laying in there. So if you're familiar with Django Cache, this is all pretty standard. Let's see, do I have any numbers? There we go.
Calvin Hendryx-ParkerYeah, where's my performance numbers?
Michael KennedyHere you are, Calvin. Here you are. I didn't say this, I don't believe, at the beginning, but I said it last week. This is one of the things I'm very focused on is making sure this works perfectly in free-threaded Python so you can scale out as much as you want without having to go to multiple processes. But the graph here actually shows, what if I do a web garden where I have one, two, four, eight processes? And it compares against just the single-threaded, or not the single-threaded, the single-file cache. And you can also do fan-out sharded caches,
Michael Kennedyand you don't have to think about it. You just say, I want eight separate files, and it'll manage all those connections and stuff for you. And if you do that, you can get 1.43 million requests per second on just four worker processes, as opposed to the meager 607,000 readwrites on the regular disk cache oxide one. Compare this to, how does this look for like the traditional one? So Django has a database cache SQLite version also that's like this one. It does 262,000.
Calvin Hendryx-ParkerIt's not shabby.
Michael KennedyIt's not. I mean, that's very, very fast. It's very fast. It's still less than a quarter of what this does, you know what I mean, for the same amount of CPU. It is a file-based one that does a little bit less than half of the database ones. It was like 10x the file-based one. Anyway.
Calvin Hendryx-ParkerWow. I feel like we need to see free-threaded Django with Django Ninja running with this disk cache oxide on top of Maru.
Michael KennedyYes. Let's uncork it all. Let's do it. And there's also an example that you can work through that has like a whole sample code project you can download and write.
Calvin Hendryx-ParkerYeah, I'm here for it.
Michael KennedyYeah, all right. So that's pretty cool. That's it.
Calvin Hendryx-ParkerThat's super cool.
Michael KennedyI believe I'm on extras today.
Calvin Hendryx-ParkerYou got some extras. I am extra free today.
Michael KennedyNot extra, just regular.
Calvin Hendryx-ParkerJust regular Calvin. No extra Calvin today. It's been a week.
Michael KennedyYes, sometimes it is a week.
Calvin Hendryx-ParkerYeah.
Michael KennedySo today I unleashed Black Friday at Talk Python training and Talk Python itself. So don't run very many sales over there. You can get the everything bundle at 20%. Yeah, about 20% off. And for returning customers, there's further discounts on top of the 20%, you know, like things. So if you're looking at the courses over at Talk Python, you can get all the courses for 20% off, or I put together a special only Black Friday available bundle of something I'm calling getting started with Python and programming in the age of AI.
Michael KennedyI think that's a really good fit.
Calvin Hendryx-ParkerThat's a steal. That's a steal, Michael. It's $65.
Michael KennedyI know. It's $65 for these four courses that form a perfect line of progression. So Python for beginners gets you started on programming Python, data structures, thinking through problem solving and breaking down problems and just like the general programming beginners. And then running with Git because if you're going to work with agents, you really need to understand source control better than even regular programming. And then Agente AI and Agente Python security. So I think this is a really cool deal. And like Calvin said, normally it'd be $156.
Michael KennedyIt's $65. So get that.
Calvin Hendryx-ParkerYeah, folks who are doing like the code mess advent calendar things, there you go.
Michael KennedyThis will be a fun one. Those are all some of my very favorite classes as well that we have. Talk Python in production book, 25% off. And if you want to do Talk Python membership, there's also a discount for all of those tiers as well. So Black Friday, Talk Python. please check it out. It really is a great way to get a discount and support the show. Now, this is the part that I alluded to when we talked about the Muru. I found as part of my work, I don't believe, no, it was definitely not on disk cache oxide. It was on Chameleon RS, the Rust version of my re-implementation because none of these things work on free-threaded Python.
Michael KennedyThey're not tested on free-threaded Python. People don't pay attention to it and it's really not great. So I actually found a, maybe if you could put it in italics, a bug in CPython itself for doing this free threaded work. And so I submitted this as a bug report over to just the CPython organization, Brittany Ray triaged it, you know, there's a bit of a conversation. And now there's this other thing, which I'm just now learning about, because this wasn't here last time I looked,
Michael Kennedyscaling with format. So here's, this is not a huge deal. I'll just really quickly tell you that if you use format, like string.format, or rather an fstring, if you make the heinous mistake of saying, I want two decimal places, instead of just, I just want the float. No, I want the float with two decimal places. It is six and a half times slower. Only under free-threaded Python as you add threads. And so I figured out sort of the differences. So anyway, there's this issue that I submitted.
Michael KennedyI did not do, did I put the PR? I don't think so. No, that's what they were working on. I'm like, I don't think I put a PR here. There is a PR, but I didn't write it because I wasn't like, I'm going to contribute to CPython. No, I'm just like, look, guys, this is.
Calvin Hendryx-ParkerHere it is.
Michael KennedyIt's so simple. All you do is just do string dot format in a loop with free threading. And if you put any sort of like two decimal places type of format or your toast become serial again, which is crazy. So anyway, as much as people say, oh, these AIs just write a bunch of crap software that's bugs. You know what? They're really good at going. Did you, did you notice this? Not only is this not scaling the way we thought, but it's not scaling because of this string, this F string. That is insane to me. So anyway.
Calvin Hendryx-ParkerThey fixed it in 14 lines of code, Michael, including comments.
Michael KennedyDo they already fix it?
Calvin Hendryx-ParkerYeah, there's a fix in there.
Michael KennedyOh, there is a fix. Yeah. It's only two files changed. Yeah, because the fix is actually not that hard. The non-specified, I don't know what you call it when it doesn't have a spec. It's just like curly, curly, a thing, you know? That one just grabs onto a certain format designator or something. But when you do it, if a specifier, it all uses a lock and serializes down to like this other data structure before it goes back out. So it's like, just do the way the other format is doing. Don't, you know, it's pretty simple to fix,
Michael Kennedybut it's also just discovering it, right?
Calvin Hendryx-ParkerThat's very cool.
Michael KennedyAll right. Long Beach, Long Beach, California is calling you. Calvin, I hope you can make it this year.
Calvin Hendryx-ParkerI won't. I won't make it this year, unfortunately.
Michael KennedyOh my gosh. Well, I'm going to be making it. I'm going to be cruising around on my little scooter like I did last year.
Calvin Hendryx-ParkerThat'd be cool. You're talking about none other than PyCon 2027.
Michael KennedyPyCon 2027 is announced. Call for proposals are out. That's interesting. That's not why I'm telling you. I'm telling you because there are dates on the calendar when you can reserve your opportunity to go to it. And we had a lot of fun in Long Beach. So hope to see you there. And hopefully I can make it. Chances are I will. All right. Really quickly, if you happen to run IntuneX, we spoke about this before, the Mooru. you should move, run yourself over to your server and patch it. Let me tell you, oh my goodness.
Michael Kennedywith just a sweet little web request.
Calvin Hendryx-ParkerIs this, is they calling it Nginx to shell?
Michael KennedyThey are calling it, oh, it does have a name. It is, no, it's Nginx to root.
Calvin Hendryx-ParkerTo root. Is his name. All the other ones were like to shell. Yeah, we already got to shell. Nginx got to be different.
Michael KennedyYeah, yeah. And this is actually, there's in this thing I'm linking, there's only two vulnerabilities listed, but there's actually five CVEs that you need to patch. So stay on top of it, folks. If you're running out of the Docker Nginx container, the new one has it fixed. But if you don't update your container, it's still the old one and it's not good. So just if you're running Nginx, please pay attention to this. Otherwise, don't worry about it. Really quick, Lady Bird. Are you familiar with Lady Bird?
Calvin Hendryx-ParkerYes, I saw those in our post. Someone mentioned it in Art Slack too.
Michael KennedyYeah, Lady Bird, the browser. Could we have more than just Chrome and maybe Firefox? you know what I mean yes someone else is building one and it's interesting this is from scratch I think it's also in rust if I remember rust or go or something some memory safe native language if I remember correctly but anyway it's an alpha you can go try it read the announcement and uh that's it we're ready for an unnamed joke what do you think about that an unnamed joke oh I'm not even right I'm not ready for this no I don't even know what to call it no actually it's just I didn't put it in the show notes right so here's a a very fun picture oh I gotta log in so I'll just do it like
Michael Kennedyhow tech people and AI people and just other, not just tech people, but just how different groups of tech people see each other. This is really fun. So it's got a grid of software engineers, data scientists, AI engineers, prompt engineers, and DevOps. And then it has like the cross product of that. So you can see what software engineers think of DevOps engineers.
Calvin Hendryx-ParkerIt's not what my mom thinks I do, you know, what I actually do.
Michael KennedyUnless your mom's a DevOps engineer, you don't know. So like, for example, software engineers think of DevOps engineers as server babysitters. Whereas, let's see, DevOps engineers think of software engineers as bug factories, or the data scientists are GPU holders.
Calvin Hendryx-ParkerAccurate, accurate.
Michael KennedySoftware engineers perceive the prompt engineers as professional typists. Data scientists, the AI engineers, model salesmen. Oh, there's so many good ones here. that's pretty good yeah the ai engineers see the software developers as the legacy keepers
Calvin Hendryx-Parkerand then so what do software developers see software developers as i can't see the diagonal
Michael Kennedyyeah yeah yeah they're real builders uh of course yeah let's go down the diagonal you're right we got to go down the diagonal so software engineers see this is all how people see themselves software engineers real builders data scientists math geniuses with like a normal distribution and Einstein in the picture. AI engineers are future builders. Prompt engineers are AI whisperers. And DevOps engineers are keeping it alive. And they're like a fireman's outfit.
Calvin Hendryx-ParkerThat one's actually true.
Michael KennedyThat is true. Prompt engineers see DevOps people as cloud wizards. AI engineers is the launch crew. Data scientists are the pipe fixtures. And anyway, it's fun.
Calvin Hendryx-ParkerNice. That's awesome, Michael. Thank you for that.
Michael KennedyYeah, everyone check out this. There's a lot of combinations you can go play with to enjoy this. Well, I sure enjoyed it. Calvin, thank you as always. Yeah. And thank you to Long Link for supporting the show. And thank you to everyone out there who is listening.
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: 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...
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...