Michael Kennedy: Hello and welcome to Python Bytes, where we deliver Python news and headlines directly to your earbuds. This is episode 488, and it is Tuesday, July 14, 2026. I'm Michael Kennedy.
Calvin Hendryx-Parker: And I'm Calvin Hendryx-Parker. Happy Bastille Day.
Michael Kennedy: Yes, indeed. Happy Bastille Day to you. And this episode is brought to you by us, so check out our things. Courses over at Talk Python. I have many in the works, competing for what comes next, maybe Rust.
Michael Kennedy: I think a Rust course is going to be next out the gate.
Michael Kennedy: So we'll talk more about that at some point soon.
Michael Kennedy: If you have a project and you would like some expert help for the really hard projects, reach out to Six Feet Up.
Michael Kennedy: You can subscribe to our newsletter.
Michael Kennedy: Got some nice announcements there.
Michael Kennedy: Follow us on all the socials and watch us live or the replays on YouTube.
Michael Kennedy: Every episode has a little YouTube thumbnail.
Michael Kennedy: If you click it, guess what you get?
Michael Kennedy: YouTube, YouTube version.
Michael Kennedy: So we appreciate the people who are part of the live show, but definitely not required.
Michael Kennedy: And with that, Calvin, I would say, I want to talk about the Eno Such blog.
Michael Kennedy: Yes, who do you trust?
Calvin Hendryx-Parker: It's interesting.
Calvin Hendryx-Parker: This is actually a pair of blog posts that both came out last week on the 7th.
Calvin Hendryx-Parker: One from William Woodruff, that's this blog right here.
Calvin Hendryx-Parker: And the other one's actually from Brett Cannon, which I'll show here in a second.
Calvin Hendryx-Parker: But they're both around trusted publishing and who you should trust.
Calvin Hendryx-Parker: What I think is important to understand, and I think what they both emphasize in their posts, is that trusted publishing is not for you. It is for the machines. So if you're not familiar
Calvin Hendryx-Parker: with trusted publishing, it is PyPI's OIDC-based auth scheme. So you can now, it's used by other groups too, NPM, RubyGems, Crates, and Nougat. They basically want to replace long-lived API
Calvin Hendryx-Parker: tokens with short-lived auto-scoped credentials tied to the CI/CD machine identity. So this may sound really great and like you could trust everything coming out of these tools, but really
Calvin Hendryx-Parker: what it's about is making sure places the software is coming from and going to is trusted. And you can actually see that in this post, William goes into why you shouldn't trust trusted publishing
Calvin Hendryx-Parker: alone. And then the other post is actually from Brett Cannon, but that was actually quite interesting, which is how to publish to PyPI using GitHub Actions securely. And he actually
Calvin Hendryx-Parker: mentions Zizmor, how do you pronounce that? Is that the right pronunciation of the tool?
Calvin Hendryx-Parker: So William wrote the tool mentioned in here, and he also mentioned in his own post.
Michael Kennedy: All right, the security episode I just did with the Python security folks, Mike Fiedler and Seth and Juanita, they called it Zizmor, I believe?
Calvin Hendryx-Parker: We'll go Zizmor. We'll go Zizmor then.
Calvin Hendryx-Parker: I believe.
Calvin Hendryx-Parker: Mike would know, and Mike will correct me momentarily.
Calvin Hendryx-Parker: I'm sure.
Calvin Hendryx-Parker: But you've got to trust me.
Michael Kennedy: I mean, speaking about trust, you've got to trust that I'm remembering this correctly.
Calvin Hendryx-Parker: Right, they're remembering correctly.
Calvin Hendryx-Parker: But this is a tool that will help you clear, make the CI/CD actions happy.
Calvin Hendryx-Parker: So once you make Zizmor happy, it's going to reduce scopes of tokens and double check for things like the old API tokens being in existence and what their scopes may be.
Calvin Hendryx-Parker: It'll also make sure that when you do a checkout in GitHub Actions, the credentials that are used for that checkout act as you.
Calvin Hendryx-Parker: And then you can make sure that things like those remain short-lived.
Calvin Hendryx-Parker: And so that those don't persist throughout the rest of that run.
Calvin Hendryx-Parker: Keeping the building of your package or your software separate from the publishing of your package and the software.
Calvin Hendryx-Parker: So keeping those kinds of concerns separate from one another helps you make sure that these kinds of attestations can be made and have some level of assurances that you're doing the right things, that things are going to the right places,
Calvin Hendryx-Parker: that no one's exploiting something they shouldn't be. So it's a little bit of like least privilege wrapped around the ability to establish trust between the machines that are building and the machine that would be publishing it. If you want to see an example of this,
Calvin Hendryx-Parker: You can look at the Zismore package.
Calvin Hendryx-Parker: You'll see this is a Williams package that does the kind of work you need to make sure that you're doing the right practices.
Calvin Hendryx-Parker: You'll see this verified details over here on PyPI.
Calvin Hendryx-Parker: Again, this does not mean that this package is of a known quality, or you should definitely include it as a dependency into your system.
Calvin Hendryx-Parker: It just means that these are verified and have come from trusted sources, that the person who is listed here as maintainer has some level of control or has exercised some proof of ownership over these pieces,
Calvin Hendryx-Parker: you'll also notice in PyPI that there are unverified details like the homepage and documentation in this specific case.
Calvin Hendryx-Parker: So you can look for those as levels of quality that you want to check into when you want to look into including a package like this.
Calvin Hendryx-Parker: But don't confuse trusted with trustworthy.
Calvin Hendryx-Parker: Make sure you have human judgment in the loop about the package you're getting ready to bring in to your potential project.
Calvin Hendryx-Parker: This is no substitute also for securing your own CI pipeline or actually vetting the packages that you install.
Calvin Hendryx-Parker: So stay diligent out there, but this is another great way to keep things tidy, secure, exercise some least privilege.
Calvin Hendryx-Parker: If something does happen, it can help contain the blast radius.
Calvin Hendryx-Parker: If something were to sneak into your CI pipeline and try and exploit something that it shouldn't, hopefully you've narrowed down the scopes for the OIDC tokens so that they couldn't do those actions.
Michael Kennedy: Sounds good to me.
Michael Kennedy: Yeah.
Michael Kennedy: William Woodruff is, by the way, from the Astral team.
Michael Kennedy: Yes.
Michael Kennedy: And uv and all that.
Michael Kennedy: So they've thought a little bit about this.
Calvin Hendryx-Parker: Yeah.
Calvin Hendryx-Parker: So, I mean, table stakes, just use this tool no matter what.
Calvin Hendryx-Parker: It's going to give you at least some level of clarity around your current state of operations for the CI/CD pipeline.
Michael Kennedy: Yeah.
Michael Kennedy: I asked at the end of the Talk Python episode was about there's a whole security track at PyCon.
Michael Kennedy: I said, let's go through that, all the talks there and kind of like talk about the arc that that's telling about Python security, right?
Calvin Hendryx-Parker: Yeah.
Michael Kennedy: And at the end, I said, what is one thing people can do to be better at Python security?
Michael Kennedy: I think two out of three people said Sismar.
Michael Kennedy: Yeah.
Michael Kennedy: Just use it.
Calvin Hendryx-Parker: Yep.
Calvin Hendryx-Parker: And Brett Cannon's post here is a really just a straight walkthrough of the three or four things you should just be doing out of the box by default.
Calvin Hendryx-Parker: So follow his instructions.
Calvin Hendryx-Parker: He knows a lot of this stuff, you know, better than we all do.
Calvin Hendryx-Parker: I trust Brett and Brett will make sure you get trusted publishing in place, but don't just trust it blindly.
Michael Kennedy: Okay.
Michael Kennedy: Amazing.
Michael Kennedy: Michael, what you got?
Michael Kennedy: I want to talk about what I thought would be just a small little extra at the end.
Michael Kennedy: Oh, hey everyone.
Michael Kennedy: New release, point release, Jupyter Notebooks and JupyterLab.
Michael Kennedy: Nope.
Michael Kennedy: It is a lot.
Michael Kennedy: And let me just jump to the end here and I don't need to see a pop up.
Michael Kennedy: That's fine.
Michael Kennedy: It says, as large as minor releases get, basically.
Michael Kennedy: So Jupyter Lab.
Calvin Hendryx-Parker: Pumped right up against the ceiling.
Michael Kennedy: Exactly.
Michael Kennedy: They're like, we almost called it a new release, but we didn't want to update the docs dropdown.
Michael Kennedy: So it says this Jupyter Lab release includes 68 new features, 97 bug fixes, 38 documentation improvements, 95 contributors, and 171 maintenance tasks.
Michael Kennedy: Very minor.
Michael Kennedy: I would just call this, like, you know, consider it a pretty big release, let's say.
Michael Kennedy: So there's a couple of things.
Michael Kennedy: And I think probably the most efficient way is to just pull up this little diagram that they've annotated of Jupyter's JupyterLab.
Michael Kennedy: By the way, you can test this out online.
Michael Kennedy: And there's a test it in JupyterLite.
Michael Kennedy: Are you familiar with JupyterLite?
Calvin Hendryx-Parker: No.
Michael Kennedy: So if we go to JupyterLite, available in JupyterLite.
Michael Kennedy: Let me click that and just see what happens.
Michael Kennedy: I'm glad that that opened a new window.
Michael Kennedy: So JupyterLite is basically a WASM WebAssembly powered Jupyter and uses local storage and stuff for it.
Michael Kennedy: So like I'm pulling up here and there you have it.
Michael Kennedy: Like full on JupyterLab, but running JupyterLite.
Michael Kennedy: Like in a browser, right?
Michael Kennedy: In the browser.
Michael Kennedy: That is pretty sweet.
Michael Kennedy: Yeah, yeah, yeah.
Michael Kennedy: Like full client side, nothing but just a download there.
Calvin Hendryx-Parker: Well, I think that's a smart move.
Michael Kennedy: Yeah, yeah.
Michael Kennedy: So you can test this out.
Calvin Hendryx-Parker: Bring your Jupyter notebook to your data wherever it lives.
Michael Kennedy: Exactly.
Michael Kennedy: It's all powered by Pyodide.
Michael Kennedy: So you can test these changes out there.
Michael Kennedy: But let me pull up the little diagram.
Michael Kennedy: And it says you have a new activity bar options, like files or extensions or whatever.
Michael Kennedy: There's a breadcrumb.
Michael Kennedy: So like on the left in JupyterLab, you've got a file browser.
Michael Kennedy: So you can open Python or IPYNB files.
Michael Kennedy: And now there's a breadcrumb that you can edit.
Michael Kennedy: macOS should take this to heart, please, someday, maybe, that you can just type up there.
Michael Kennedy: And it'll say, you're in this directory.
Michael Kennedy: and you put your cursor there, and guess what you can do?
Michael Kennedy: You can go to a subdirectory or another folder.
Michael Kennedy: Very cool, so that's there.
Michael Kennedy: I guess it was missing that it didn't show the creation date.
Michael Kennedy: It only showed modified in Files before, so now you can figure out the creation dates.
Michael Kennedy: You can move the sections in that whole left panel, and I guess the right one around as well.
Michael Kennedy: You can take stuff out of the sidebar, like widgets out of the sidebar.
Michael Kennedy: That's kind of cool, and make them more top level, so you can create a feeling that you might like this.
Michael Kennedy: Calvin, you can create this like custom layout here.
Calvin Hendryx-Parker: Yeah, I do like my tiles.
Michael Kennedy: Yeah, it's got a kind of a VS Code like dropdown when you hit play for the debugger.
Michael Kennedy: So that kind of drops in right in the middle.
Michael Kennedy: So it's easy to understand your debugging and chase that around.
Michael Kennedy: You can add hotkeys from the editor.
Michael Kennedy: It has a cell number count in the debugger.
Michael Kennedy: You can like filter out your different sources and interact with the kernel.
Michael Kennedy: And you can go forwards and backwards in history of your edits.
Michael Kennedy: So one of the things that's kind of chaotic, you know, chaotic good, I guess, of character of Jupyter is that you can edit and execute things in different orders.
Michael Kennedy: Yeah.
Calvin Hendryx-Parker: It's mind bendy and will mess most new people up for sure.
Calvin Hendryx-Parker: Yes, exactly.
Michael Kennedy: It's like, oh, go to is bad, but maybe you could just manually go to at whim.
Michael Kennedy: Anyway, one of the features is you can jump forwards and backwards in terms of last edits.
Michael Kennedy: So maybe you edited cell seven and then cell 22 and then 20.
Michael Kennedy: So you can jump around in that through like some UI.
Calvin Hendryx-Parker: So it's like a history order of like where you've been.
Calvin Hendryx-Parker: Yeah, it's like a back forward button.
Calvin Hendryx-Parker: Now if I could just have something similar in Slack to know where the heck I've been in Slack.
Calvin Hendryx-Parker: That's fair.
Calvin Hendryx-Parker: That's totally fair.
Michael Kennedy: Let me just flip through, see what else there is.
Michael Kennedy: There's a bunch of other things.
Michael Kennedy: Like there's only some of them, right?
Michael Kennedy: That's just the stuff they had annotated.
Michael Kennedy: The terminal is a little more, how shall we say, coding agent friendly.
Michael Kennedy: So you can open stuff in the terminal.
Michael Kennedy: Oh, we should get nerd fonts.
Michael Kennedy: I don't know if you can put nerd fonts in there or not.
Michael Kennedy: But there's a way they say it.
Michael Kennedy: That's not it.
Michael Kennedy: Yeah.
Michael Kennedy: So the terminal no longer traps keyboard focus, which is interesting.
Michael Kennedy: And here we go.
Michael Kennedy: This is the one.
Michael Kennedy: Pressing shift enter in the terminal now inserts a new line without executing the current line.
Michael Kennedy: This matches the behavior expected by certain terminal applications.
Michael Kennedy: I wonder which ones those are.
Calvin Hendryx-Parker: It's a...
Calvin Hendryx-Parker: Pi, Claude Code, et cetera, et cetera, right?
Calvin Hendryx-Parker: The annoying thing is that some of the web UI versions of those tools uses like command enter or control enter or shift enter instead of a standard shift enter.
Calvin Hendryx-Parker: I had to fix that for some folks around here who wanted the consistency between OpenAI and Anthropic tooling.
Calvin Hendryx-Parker: That's fair.
Calvin Hendryx-Parker: Yeah.
Michael Kennedy: So I think I'm going to leave it there.
Michael Kennedy: There's a bunch more features, as you can see, and I kind of called out and so on.
Michael Kennedy: But yeah, it's if you notebook and especially if you do stuff with Jupyter, a lot of changes there.
Michael Kennedy: People can.
Calvin Hendryx-Parker: I mean, it looks like they got a ton of new features, like a lot of like creature comforts.
Calvin Hendryx-Parker: That's pretty exciting for folks who are living day in and day out in the Jupyter notebook, Jupyter server world.
Calvin Hendryx-Parker: But let's talk about another AI agent that got released very, very recently.
Calvin Hendryx-Parker: This is probably within the last two weeks.
Calvin Hendryx-Parker: The fine folks at Hugging Face have released Tau, which is two times pi.
Calvin Hendryx-Parker: and it is a agent built mimicking a lot of pies.
Calvin Hendryx-Parker: I think they were inspired by the fact that how minimalistic pie was, but they wanted pie to do some other things.
Calvin Hendryx-Parker: And most of it being written in Python, watching it and teach you how it is working under the cover.
Calvin Hendryx-Parker: So part of the goals with this coding agent is actually to have small readable layers, have it output back to you what it is working on, what it's doing.
Calvin Hendryx-Parker: A lot of that gets kind of, if you've ever used Claude Code or even Pi, you'll see a lot of thinking dot, dot, dot, or, you know, conjugulating, whatever the verb of the randomizer put in there for you.
Calvin Hendryx-Parker: But it kind of hides what's going on under the covers.
Calvin Hendryx-Parker: But here, this is actually the opposite.
Calvin Hendryx-Parker: They're trying to know hidden machinery.
Calvin Hendryx-Parker: Every moving part is put on the page.
Calvin Hendryx-Parker: I think it's kind of, it's pretty, I tried it out yesterday.
Calvin Hendryx-Parker: The models become streams.
Calvin Hendryx-Parker: you basically want to build an agent loop. So tau, it's going to be hard not to say pi, tau is made up of three pieces, the tau AI, the tau agent, and the tau coding. And any of these
Calvin Hendryx-Parker: pieces are able to be swapped out. So the idea is you could make your own front ends for the tau coding part of this, build your own TUI, CLI, shell scripts, tools, et cetera, that are on the front
Calvin Hendryx-Parker: of that. What's nice is every part is visible. If you've used one of the things I liked about Claude Cowork is it on the sidebar inside of Claude Cowork, it shows you like the to-do list it's
Calvin Hendryx-Parker: putting together for the actions it's going to take. It shows you which skills have been picked up and used, which connectors got pulled into the context window. This one goes a step further and shows you what tools are currently active in the current window. If there's anything else
Calvin Hendryx-Parker: interesting down through here. One thing I wanted, I'll just, let me just show it. I've got it running over here. I will unshare this bit here and I'll put my terminal in here. This will be
Calvin Hendryx-Parker: obviously live real-time potential danger, but it's kind of pretty. I'm here for it. I'm here for it.
Michael Kennedy: I saw many people say, oh, you should never do demos. I'm like, you know what? No, that makes it real. Let's do it. Yeah. Seeing on the left-hand bar here, you've got details about the session,
Calvin Hendryx-Parker: what provider you're currently running, what level of thinking, number of tools, number of skills.
Calvin Hendryx-Parker: I think this is important because a lot of this gets hidden under the covers when you're using Claude Code. Unless you go and investigate and kind of ask it specifically what it's using in its current context window, I like having this available because then you could see something get out of
Calvin Hendryx-Parker: hand. If there's all of a sudden brought in 20 tools and the context window is exploding and you're not sure why you're getting back poor results, this would surface that sooner for you.
Calvin Hendryx-Parker: You can see what skills are currently loaded.
Calvin Hendryx-Parker: Actually, that skill I wrote as part of this session.
Calvin Hendryx-Parker: So I came in and I said, let's build a memory system for my AI agents.
Calvin Hendryx-Parker: And so the memory system, then I kind of asked it for an explanation about what a memory system would be.
Calvin Hendryx-Parker: And you can see it.
Calvin Hendryx-Parker: It's really more like reading a textbook than it is having it code up the just the code for you.
Calvin Hendryx-Parker: So it really gives you full examples.
Michael Kennedy: I'm getting a little bit of notebook vibes.
Michael Kennedy: actually it's got a little bit of like a storytelling UI. That's the goal is for it to tell
Calvin Hendryx-Parker: you as it goes teach you even here it doesn't need to output all this to do its work it's outputting all this to help you understand and that was me asking it about dictionaries but then I went in
Calvin Hendryx-Parker: and was like okay from the dictionary let's let's start a new here it is the memory piece right here we've got the idea of semantic memory episodic memory and procedural memory and so it explains
Calvin Hendryx-Parker: each of those terms to you, what the goals are, you know, what the memory retrieval loop would be.
Calvin Hendryx-Parker: And this was just the explanation. At some point, then I said, okay, great. Build me a simple memory system that understands episodic, semantic, and procedural memory. So then it goes into planning.
Calvin Hendryx-Parker: It looks at what's already inside the system, created the whole first couple of modules, created some documentation, and then it shows me how to run it. At some point, I'm like, oh, updateagents.md to make sure we're always using uv. So if you want to check out Tau,
Calvin Hendryx-Parker: you can uv install, tool install tau-ai, and that will get you the Tau CLI ready for you to use.
Calvin Hendryx-Parker: It is, again, very early days. It is only a couple weeks old, but I'm a learner at heart, so I love the idea of having this explained to me so that I understand what's going on. I can make
Calvin Hendryx-Parker: better decisions about the code and I can have fun playing at the same time. So this actually built the skill, installed the skill into the system, and now is using its own skill for memory. So again,
Calvin Hendryx-Parker: that essence of Pi where you build your extensions, you make your coding environment the way you want it to be. That's what they're trying to take, but also with more of the explainer going on behind
Michael Kennedy: the scenes too. So pretty cool. It actually reminds me a little bit of Hermes, which I talked about last week in the sense that it's kind of self-improving and you can sort of change around the pieces honestly this inspires me a little bit more than Claude Code the terminal version well and
Calvin Hendryx-Parker: that's the piece i didn't do yet is like in the docs and talk about it is take this to the next level by establishing what your harness looks like and then you create a loop you add the looping part to it to schedule and do work so i was one step away from i've got memory now i can now create the
Michael Kennedy: loop and have it set it loose on tasks yeah very neat very cool i see you got yeah you've got gpt 5.5 yeah have you tried 5.6 soul or any of these i have not yet no i haven't had a chance to um i i did
Calvin Hendryx-Parker: the most basic of basic thing i said slash login open ai and that's what it gave me like let's go
Michael Kennedy: perfect well it definitely definitely looks really cool yeah so thanks to the fine folks over hugging
Calvin Hendryx-Parker: face they're doing still doing great work over there year after year love it yeah also i was
Michael Kennedy: gonna say like you said it has a kind of like just getting started vibes and so on and i would be a little bit, not concerned, but just hesitant to go all in on something that's like a side project of someone's, but hugging face.
Calvin Hendryx-Parker: Yeah, and it's already got like 1500 GitHub stars.
Calvin Hendryx-Parker: I think I like it.
Calvin Hendryx-Parker: It's beautiful.
Calvin Hendryx-Parker: It does look nice.
Calvin Hendryx-Parker: It shows me all the information I want to see.
Calvin Hendryx-Parker: That's important.
Calvin Hendryx-Parker: I'm about the experience of my workstation.
Calvin Hendryx-Parker: So this definitely falls into that.
Michael Kennedy: Yeah, and I think the other thing is I really like how it shows you and what it's doing and how it's thinking because it's so easy to just make these things become an easy button, turn your brain off and go.
Michael Kennedy: But on the other side, it can be an incredible learning thing.
Michael Kennedy: You're like, what?
Michael Kennedy: Okay, I don't make, that is actually new to me.
Michael Kennedy: Tell me what that does.
Michael Kennedy: Why are you doing this?
Michael Kennedy: You know what I mean?
Michael Kennedy: If you don't know what's happening, how do you know to ask that?
Calvin Hendryx-Parker: Well, it's funny because I asked about memories.
Calvin Hendryx-Parker: And so it actually looked into its memories and obviously says user prefers uv.
Calvin Hendryx-Parker: And then I love to execute Python from uv and I created a simple memory system.
Calvin Hendryx-Parker: So it's already using its own memory system they built.
Calvin Hendryx-Parker: with two prompts. That's awesome. Yeah. Super cool. Very cool. All right. If you're going to have a
Michael Kennedy: some kind of agent, you probably want to run it in the background. So let's talk about Django.
Michael Kennedy: I just had a really cool episode with Carlton Gibson over on Talk Python about, he basically rewrote Django's async documentation saying it's gotten really out. It was really out of date and it had a lot of warnings like, oh, you shouldn't do this or this won't perform that well. And they're
Michael Kennedy: actually like, you know what? That's not true. The stuff is really good now. You should probably use async in Django, but our docs tell people they should be weary. So let me rewrite that. And part of that conversation, we talked about Django's new task framework, which is part of version 6,
Michael Kennedy: 6.0. So, so often you have got to think like, all right, well, I'm working on some requests and maybe it's slow. So I could use async and await on it potentially, but a better way often is like people don't actually even need the response.
Michael Kennedy: They don't need to wait on this.
Michael Kennedy: Like I'm going to send you a reset email.
Michael Kennedy: Email already is oddly asynchronous and non-verifiable.
Michael Kennedy: So what are you going to, you're going to send an email and like what, wait for a pixel to open before you respond?
Michael Kennedy: Like you can't do that, right?
Michael Kennedy: You just got to just send it and let it go.
Michael Kennedy: And so a lot of times people would do something like Celery or RabbitMQ or some other mechanism to run.
Michael Kennedy: Which is heavy, yeah, very heavy.
Michael Kennedy: Yeah, exactly.
Michael Kennedy: It's like you've gone from running like a single worker and a platform as a service to Now you've got a DevOps and a virtual private network for your servers to live in.
Michael Kennedy: It's like a huge jump, right?
Michael Kennedy: So this task framework kind of attempts to solve that in a framework-y way.
Michael Kennedy: What you can do is it's not exactly a task execution story.
Michael Kennedy: It's more of a way to like, I guess, like an adapter or a facade type of design pattern that says, here's how you program tasks in Django.
Michael Kennedy: the task backend that you stick in it means maybe it still goes to Celery or maybe it runs in a background thread.
Michael Kennedy: I don't know.
Michael Kennedy: We'll figure that out.
Michael Kennedy: You configure the thing in different ways.
Michael Kennedy: All right.
Michael Kennedy: So basically that's how it works.
Michael Kennedy: You set up your tasks.
Michael Kennedy: You define the backend.
Michael Kennedy: There's only one that comes with it and it's oddly unsatisfying to me.
Michael Kennedy: It's the immediate execution backend, which means like when you enqueue a task, it just blocks and executes.
Michael Kennedy: It goes, okay, it's enqueued when it's done.
Michael Kennedy: And really that's just for execution as a developer so you don't have to set up anything.
Michael Kennedy: I'll tell you what I wish was actually in there for development and for like 75% of all deployments.
Michael Kennedy: There's also the dummy backend.
Michael Kennedy: They missed a chance at like the null backend, like the null pattern.
Michael Kennedy: Like here's the thing you don't have to check for null or see if it's configured, but it just does nothing, right?
Michael Kennedy: So this is for like testing.
Michael Kennedy: So you can enqueue things and so on and like, you know what?
Michael Kennedy: No, nothing happened.
Michael Kennedy: Basically like a built-in way to say turn off tasks, which is, I would imagine, really just for testing.
Michael Kennedy: Anyway, so there's third-party backends, and there's an ecosystem here.
Michael Kennedy: It also has async support.
Michael Kennedy: Yeah, that's what I was going to say.
Michael Kennedy: Yeah, that's pretty neat.
Michael Kennedy: So a lot of cool stuff here.
Michael Kennedy: You can just put the at task decorator on a function, and it's now a task and so on.
Calvin Hendryx-Parker: This is so nice compared to what it used to be.
Calvin Hendryx-Parker: So Django has had this level of ability, like with Django channels and async and workers, backend workers, but the usability of it as a developer was always tricky.
Calvin Hendryx-Parker: Like it wasn't very well published.
Calvin Hendryx-Parker: It wasn't, it was hard to use.
Calvin Hendryx-Parker: You had to do a little bit of, we did this back in 2020 when we first launched the Loudswarm platform.
Calvin Hendryx-Parker: We had to use background async workers like that to establish connections, WebSocket connections to things like Discord.
Calvin Hendryx-Parker: And it was some gymnastics to make it work.
Calvin Hendryx-Parker: This looks so much nicer.
Calvin Hendryx-Parker: So thank you all to whoever put in the effort to make this usability and the API, the usability as a developer for this to be so nice.
Michael Kennedy: Yeah, it looks really, really nice.
Michael Kennedy: And then the community stuff is good.
Michael Kennedy: Yeah, Loudsworn being your online conference stuff that you launched at a very timely time of 2020.
Michael Kennedy: Definitely.
Michael Kennedy: So for 75% of the people, I would recommend, I would point them at this project by Lincoln Loop called Django Tasks Local.
Michael Kennedy: And the idea here is it uses either threading or processing backends.
Michael Kennedy: No Celery, no Redis, no database, no configuration necessary, right?
Michael Kennedy: So this is really cool.
Michael Kennedy: You basically just plug this in, and then when you run it, it just runs in a background thread.
Michael Kennedy: And so it really does immediately return, and it really does do these things.
Michael Kennedy: The one thing that you've really given up here, I guess, depending on what you choose in Threadpool, until you do free-threaded Python, you're still subject to the guild.
Michael Kennedy: But most of these background tasks are not heavily computational.
Michael Kennedy: They're talking to a database.
Michael Kennedy: They're talking to a SMTP.
Calvin Hendryx-Parker: There's some kind of weight.
Calvin Hendryx-Parker: Yeah, it's not a lot of CPU.
Calvin Hendryx-Parker: It's mostly probably IO weight, or you just need to be unbounded and get a quick response back to your end users.
Calvin Hendryx-Parker: Or you have startup tasks.
Calvin Hendryx-Parker: That was the thing we needed it for.
Calvin Hendryx-Parker: We needed something to happen at Django startup.
Michael Kennedy: Oh, interesting.
Michael Kennedy: Okay.
Michael Kennedy: So you just fire that off.
Michael Kennedy: Yes, you could choose process backend if you really want like true separation.
Michael Kennedy: The one thing that you're giving up here is durability, right?
Michael Kennedy: Like if you deploy a new version and the task thing is grinding through some tasks and Docker says, time for a new one, goodbye.
Calvin Hendryx-Parker: Yeah, well, you go into it knowing that I's wide open and you account for, I'm okay if it dies, but I know how to handle recovery.
Michael Kennedy: Yeah, sure.
Michael Kennedy: And how most projects, how much back end traffic do they really have?
Michael Kennedy: Right.
Michael Kennedy: They're sending an email because you said reset my email or something.
Michael Kennedy: But yeah, most most sites are, you know, a thousand people at your company use this internal thing.
Michael Kennedy: And that would be a big deal, you know, or something like that.
Michael Kennedy: Right.
Michael Kennedy: It's not it's not Netflix scale or.
Calvin Hendryx-Parker: No.
Calvin Hendryx-Parker: But when you need celery, you know, you need celery.
Calvin Hendryx-Parker: And then you can get into more durable cues and retry patterns and those kinds of things.
Michael Kennedy: Right.
Michael Kennedy: Or temporal or something like that.
Michael Kennedy: Yeah.
Michael Kennedy: Absolutely.
Michael Kennedy: Yep.
Calvin Hendryx-Parker: That's awesome.
Michael Kennedy: Yeah, cool.
Michael Kennedy: So check out Django Task and Django Task Local.
Calvin Hendryx-Parker: All right, Calvin.
Calvin Hendryx-Parker: I got one extra for you.
Calvin Hendryx-Parker: The current release manager for Python 3.14, they've always been looking for fun little puns to do on the fact that this is the Py release of Python.
Calvin Hendryx-Parker: But actually, it ended up becoming a fix in the dictionary.
Calvin Hendryx-Parker: And Michael, it's not the dictionary you're thinking of.
Calvin Hendryx-Parker: It is actually the Oxford Dictionary.
Calvin Hendryx-Parker: They found a bug in the dictionary in its own citation usage of pi symbol from 1706.
Calvin Hendryx-Parker: So they have upstreamed the fix.
Calvin Hendryx-Parker: It's got approved and published.
Calvin Hendryx-Parker: And so because of the messings around and playing with pi and the latest release of Python, we got stumbled upon an actual markup bug in their own dictionary and got it published.
Calvin Hendryx-Parker: So thanks to Hugo for doing that for us.
Calvin Hendryx-Parker: It is not the dict.
Calvin Hendryx-Parker: It is the actual dictionary.
Calvin Hendryx-Parker: Oh, okay.
Calvin Hendryx-Parker: I didn't see that coming.
Michael Kennedy: Yeah.
Michael Kennedy: Oxford English Dictionary.
Michael Kennedy: Not quite a joke, but almost.
Calvin Hendryx-Parker: Almost.
Calvin Hendryx-Parker: Very cool.
Calvin Hendryx-Parker: Very fun, though, to think that the Python community has gotten a fix upstreamed into the Oxford English Dictionary.
Michael Kennedy: Well, I sure hope they use Oxford commas when they...
Michael Kennedy: You're inciting some flames, Michael.
Michael Kennedy: Exactly.
Michael Kennedy: Like, rejected, improper use of comma.
Michael Kennedy: So I want to talk about for my one extra.
Michael Kennedy: Yeah, I think that's the only thing.
Michael Kennedy: I have other stuff, but I'm going to leave it with this.
Michael Kennedy: So I'm a big fan of Bunny.net.
Michael Kennedy: I mean, Cloudflare is all the rage, right?
Michael Kennedy: I've never used this.
Michael Kennedy: Bunny.net is awesome.
Michael Kennedy: The pricing is great.
Michael Kennedy: It's so easy to use.
Michael Kennedy: I use it for CDN.
Michael Kennedy: So, for example, when you get a download of Python Bytes, like the weekly episode, that comes through the CDN for, if I can pull it up, comes through the CDN of Bunny.net.
Michael Kennedy: But primarily, the reason I chose it, Ian Maurer recommended this to me, is because I want to use it for the courses.
Michael Kennedy: So for the course videos, one of the things that's a hassle is you can use CDNs a lot.
Michael Kennedy: There's a bunch of options there, but it's not very common that you can share private files through CDNs, which you can with bunny.net.
Michael Kennedy: So that's super cool, right?
Michael Kennedy: So for kind of like an S3 URL, you can sign it temporarily.
Michael Kennedy: Like this URL is good with this special link for 20 minutes.
Michael Kennedy: Play it.
Michael Kennedy: Something like that, right?
Calvin Hendryx-Parker: Yeah.
Michael Kennedy: And so you can do that here, which is really, really great.
Michael Kennedy: So that's kind of how it just pays you go, which is cool.
Michael Kennedy: That's not what I want to talk about, though, but that's why I was interested.
Michael Kennedy: They announced that this is another thing I use is BunnyDNS.
Michael Kennedy: I probably should have pulled up my DNS dashboard because I've got some ridiculous DNS, ridiculously complicated DNS stuff that would have been fun to show.
Michael Kennedy: But I'm not logged in on this machine.
Michael Kennedy: It would take too long.
Michael Kennedy: So bunny DNS, all you do to use it is you go to your fork bun or hover or name cheap or whatever you're using and you go to your domain and you just change two things.
Michael Kennedy: You just change what your, gosh, what's it called?
Michael Kennedy: Name servers.
Michael Kennedy: You just change your name server.
Michael Kennedy: There's two.
Michael Kennedy: Usually you got to enter for redundancy.
Michael Kennedy: Yeah.
Michael Kennedy: And then that's it.
Michael Kennedy: And so then you're basically running your DS through this really nice DNS management console instead of whatever crappy thing that like GoDaddy gives you.
Michael Kennedy: Like, why is this so hard?
Michael Kennedy: So you just like make one change.
Michael Kennedy: You don't change your provider.
Michael Kennedy: You don't move your domains.
Michael Kennedy: You just flip the name server and you're over here.
Michael Kennedy: And this has really cool things like, I would like this key or this domain or this TXT, whatever, right?
Michael Kennedy: Whatever you manage in DNS.
Michael Kennedy: Like I want this valid for 15 seconds because I'm testing right now or things like that.
Calvin Hendryx-Parker: So it's really cool.
Calvin Hendryx-Parker: That's packed into their API platform.
Calvin Hendryx-Parker: That's pretty cool.
Michael Kennedy: Yeah, yeah.
Michael Kennedy: So, I mean, you can put it for an hour or a day or whatever for the time to live.
Michael Kennedy: But if you're working, like while you're setting stuff up, That is so painful because if you leave it in a half an hour or an hour, then you change something.
Michael Kennedy: You're like, oh no, I set it up wrong.
Michael Kennedy: Well, I'm going to go to lunch.
Michael Kennedy: We'll try it again.
Michael Kennedy: Hope I get it right next time.
Michael Kennedy: But if you put it on five, 15 seconds or whatever, it's just like, try it again, try it again, try it again.
Michael Kennedy: And it's really, really sweet.
Michael Kennedy: Gives you a bunch of cool graphs and stats and analytics.
Michael Kennedy: So all this is free.
Michael Kennedy: So play with it.
Michael Kennedy: It's cool.
Michael Kennedy: I'm a fan of bunny.net.
Calvin Hendryx-Parker: Very cool.
Calvin Hendryx-Parker: Do you know if they have a Terraform or a Tofu provider?
Michael Kennedy: Fine question.
Michael Kennedy: I have no idea.
Calvin Hendryx-Parker: For next time.
Michael Kennedy: I do know that they do a Google Fonts alternative.
Michael Kennedy: Oh, that's nice too, yeah.
Michael Kennedy: And what's really nice about this is it's, I believe they're a European company, and this is like a privacy first Google Fonts.
Michael Kennedy: No tracking, yeah.
Michael Kennedy: Exactly, no tracking.
Michael Kennedy: And it also means if the only reason you had one of those terrible, you didn't think about the consequences when you made this law, did you?
Michael Kennedy: Cookie banners, because you used Google Fonts, you can switch to this, and then you don't have to have a cookie banner, which is great.
Calvin Hendryx-Parker: I like that.
Michael Kennedy: i like that a lot if if it was google fonts the only reason right there's obviously yeah other
Calvin Hendryx-Parker: other ones so anyway check it out it's free i'm a fan you got any jokes for us michael i do have
Michael Kennedy: some jokes now these jokes they cracked me up are you peaked oh okay i think i think they're gonna be fun so a lot of times we just have um pictures or some kind of cartoon or something these
Michael Kennedy: are just i hesitate to call them dad jokes i was gonna say they're good old i think they're good old school dad jokes yeah so i got three i picked three maybe we'll come back with some more but
Michael Kennedy: you know so here we go are you ready calvin i'm ready hit me what's the object oriented way to become wealthy inheritance i mean oop is not as popular as it used to be especially in the python
Calvin Hendryx-Parker: world but i'm definitely a designated laugher for dad jokes i i can't help myself i know i'm
Michael Kennedy: My daughter and I found like a 200 dad jokes page once and just sat there all day and ran it.
Michael Kennedy: It was great.
Michael Kennedy: I mean, think of how rich Java and.NET people are.
Calvin Hendryx-Parker: Tons of inheritance.
Michael Kennedy: Tons.
Michael Kennedy: I mean, so much more.
Michael Kennedy: It's so corporate.
Michael Kennedy: It's just money flows through that.
Michael Kennedy: But is it inheritance if it's tech debt?
Michael Kennedy: I don't think so.
Michael Kennedy: And you spread it out.
Michael Kennedy: Everyone's getting inheritance.
Michael Kennedy: That's the difference, right?
Michael Kennedy: It's diluted.
Michael Kennedy: All right, next one.
Michael Kennedy: this is very confucius or neo to understand what recursion is you must first understand what
Calvin Hendryx-Parker: recursion is that one hits that one hits for sure uh because yeah you have to sit and think
Michael Kennedy: i still remember my first uh cs class that i took i only took a couple because i was a math major but the first one in the lisp as well like we're gonna tell you about recursion like first of all what is this language why are there so many parentheses and why is it always recursion this is so crazy
Calvin Hendryx-Parker: Yeah. I only took a couple of CS classes in college as well, but I remember my first time I hit recursion hardcore production problem. I was like, whoa, this is crazy what it can do.
Michael Kennedy: Totally. All right. The last one to take us out of here is three SQL statements walk into a no SQL bar. Soon they walk out. They couldn't find a table. Oh, it's too good. It was good.
Calvin Hendryx-Parker: And some people have a knack for joke telling like this. I'm a consumer of them, not a creator of
Michael Kennedy: Yes. I'm always impressed with people that can come up with these jokes as well, but I do love them.
Michael Kennedy: I love it.
Michael Kennedy: That's right.
Michael Kennedy: That's awesome.
Michael Kennedy: All right, Calvin. Awesome to spend some time talking Python with you.
Michael Kennedy: Yeah. See you later. Thanks everyone.
Michael Kennedy: Yeah.