Transcript #291: Wait, you have how many licenses?!?
Return to episode page view on github00:00 Hello and welcome to Python Bytes, where we deliver Python news and headlines directly to your earbuds.
00:04 This is episode 291, recorded July 6, 2022, and I'm Brian Hawkins.
00:11 Hey, I'm Michael Kennedy.
00:12 Good to see you, Michael. It's been a while.
00:14 Yeah, good to see you, Brian, as well. Fun as always.
00:16 There's just a never-ending flow of fun stuff to talk about. I know we've got good stuff to share today, as always.
00:21 Yes, we do. Why don't you kick us off?
00:24 Licensing. Something everybody's super psyched about.
00:27 But I think you'll find this project interesting, and I don't know how you'll receive it, but I was like, wait a minute, what? This is odd.
00:36 So this project comes to us from Tom Nyhoff, and he sent this in and said, you know, it occurred to me that we have licenses for things like pytest.
00:46 So I could go search for pytest, and over on GitHub, or my programming lens, over on GitHub, I could check this out.
00:54 And what is the license? Well, it looks like the license is MIT.
00:57 So if I want to use pytest, I'm buying into the MIT license, right?
01:01 Yeah, kind of.
01:02 Maybe. Sometimes.
01:04 Only if you ship with it.
01:05 So it's going to be able to put pytest.
01:06 That's true.
01:07 But, you know, there are libraries like Request or whatever that you might, you know, ship, right?
01:11 Yeah.
01:11 So I'll just put pytest in here and see what we get.
01:13 So this project is called Python Project Insight, and it only has about 5,300 packages parsed in so far.
01:20 But the idea is you can say, load the dependencies, and it'll show you the licenses.
01:26 So for example, for pytest, we have the MIT license.
01:29 But pytest depends upon packaging and import lib metadata, and Colorama, and PyParsing, and Adders, and typing extensions.
01:36 Well, packaging has the Apache license.
01:39 Colorama has the BSD license.
01:41 Adders has MIT license.
01:44 So does pytest.
01:45 And then the Python Software Foundation has typing extensions.
01:48 So I don't know.
01:49 What do you think of that?
01:50 It is interesting.
01:51 And I don't know what to do with it.
01:53 I don't either.
01:55 I'm like, wait a minute.
01:55 I have to kind of sort of consider the transit of closure of the dependencies for their licenses.
02:02 And I had never really, I'm sure people are there, well, of course, Michael.
02:06 Of course, that's how it works.
02:07 But for me, I hadn't really thought about it.
02:09 I look at the project or the library and it has this license.
02:12 Like another one could be, you know, that you would build on before, more likely would be like requests.
02:17 So if we load the dependencies for requests, you have Apache, BSC, MIT, and Mozilla split across that one project.
02:24 So, yeah, I just think this is pretty wild.
02:27 I'm pointing out that TensorFlow is one of the more wild ones.
02:31 If you load up TensorFlow, there's just lots of different licenses here.
02:36 Like sample the GitHub licensing options, basically.
02:39 So if I was shipping a commercial project, a commercial product with Python that used a whole bunch of dependencies, I do know that this transitive closure stuff, the stuff that I'm actually shipping with, I really am supposed to list those and have those licenses listed in somewhere.
02:57 Right, in a sense, because you are shipping the dependencies of a thing in order for that thing to work, right?
03:03 Yeah, so you're at least saying, I'm using this, it's here, and here's the license for it.
03:09 I think that's the case.
03:10 I'm not a lawyer, of course.
03:11 But there's a whole bunch of these tools, like pytest, for instance, that we use that we don't ship.
03:18 Those are a different story.
03:20 And that's kind of a different license thing.
03:23 But I don't know about the packages.
03:25 Are these like the packages that these are shipping?
03:28 They're there.
03:29 They're not really being sold.
03:31 But do you have to list the licenses of the things that you're depending on?
03:35 I don't know.
03:35 I don't know either.
03:37 I think maybe in some times it doesn't matter.
03:40 But if it was GPL rather than LGPL, right, for example, that might be something you care about.
03:46 You know, I don't know.
03:46 I would love to hear people who really understand this super well, if they could like maybe tweet at us or comment on the YouTube stream or something like that about exactly what that means.
03:56 But I do think it's pretty interesting information.
04:00 Like mostly this shows the licenses, but it also shows the total size of installing the project and what libraries it depends upon.
04:07 So you can kind of like poke around with that as well.
04:09 That is that's actually pretty useful and interesting information as well that you don't really think about is how big of a download do I get if I put all these things, all these things together?
04:19 So, yeah.
04:20 Yeah.
04:20 And you can pile them up.
04:22 So you can say I'm using TensorFlow.
04:23 I'm using SK Learn.
04:26 I'm using Request or whatever.
04:29 Then you can say like, OK, for those three, tell me about what the story is.
04:33 You know what I mean?
04:34 Yeah.
04:34 And it gets a little more interesting still.
04:36 I guess maybe that's not quite right.
04:38 But that just comes with SciPy.
04:40 But anyway, yeah.
04:41 Something like that, right?
04:42 Yeah.
04:42 Yeah, neat.
04:43 So anyway, thanks, Tom, for sending that in and sharing it with us.
04:45 Well, I think I'll switch gears a little bit and talk about data classes.
04:51 So I actually really like data classes.
04:53 Have you used data classes much, Mike?
04:55 Michael?
04:56 Some, they definitely have some very neat properties.
05:00 I find myself kind of when I'm on the edge of using a data class, I'm like, maybe Pydantic.
05:05 But Frozen is a cool option.
05:07 You can add slots.
05:09 Slots makes so many things awesome in terms of lower memory usage, faster attribute access,
05:15 all kinds of things.
05:16 And if it's just slots equal true on the class definition, that's kind of nice.
05:20 Yeah, it is.
05:21 So Trey Hunter is a Python trainer.
05:24 And he came up with this cool tool on his Python morsels site called the undata class.
05:30 And it's actually also a library that he released, a little tool that's undata class.
05:35 And the idea is he was thinking, like, what would be the equivalent of a data class?
05:40 If you didn't write a data class, if you wanted to have the same sort of functionality, what would you do in a normal class?
05:46 So he's got this cool tool down.
05:48 And the example shows, yeah, it shows here slots, just a point with XYZ, all floats, and also shows frozen sets and slots.
05:58 But I'm going to turn those off.
05:59 And you just change the class and it changes the output.
06:03 And he prints out what an equivalent class would be if you didn't use data classes.
06:10 So actually, I'm not, and I tried to make sure I understood all of this.
06:15 So one of the things that it's kind of neat that it just, it's part of a learning tool that he's got that it shows you, you know, what you get with data classes.
06:23 But there's not a lot of description around, like, what all this means.
06:26 So this is sort of a fun thing to help you look up stuff, I guess.
06:30 So right off the bat, if we just have XYZ, you have a dunder init that takes XYZ as input values and assigns them.
06:38 And it comes with a nice wrapper class.
06:41 And then an EQ, a dunder EQ, which is for equality.
06:45 And one of the things I wanted to look up was to make sure I understood is what it does is it says if the other thing, if I'm getting compared with something else, if that other thing is also my same type in this case point, then you can do the equality comparison.
07:03 Otherwise, the raise and not implemented.
07:05 And that's just kind of a convention because Python.
07:09 And then what happens is Python will try to call EQ on the other thing of like reverse the order and stuff because it's kind of how Python works.
07:18 But it's one of those hidden sort of things is you need to kind of know that if you don't know what to do in an EQ class or an EQ function, raise not implemented.
07:28 And then Python goes from there.
07:30 And then resetting, though, if you if you give it slots, all the slots does is add slots to it.
07:39 And that's it, which is kind of cool.
07:41 And what slots does.
07:42 Yeah.
07:43 And what slots does is it makes it so that you can't add later.
07:46 So if you can't add a W attribute later to your point.
07:51 But then if you do frozen, it does a whole bunch of stuff.
07:55 Oh, you get a whole bunch more dunder methods.
07:57 But mostly these are just raising raising exceptions so that, you know, if you try to change it, it raises.
08:04 So anyway, this is kind of cool.
08:06 Yeah.
08:06 Do you see the dunder in it, the constructor implementation when you add frozen?
08:11 It doesn't say self dot X.
08:13 It's a it calls set adder like behind the scenes.
08:17 And then it implements set adder and del adder and raises exceptions if you try to mess with it.
08:22 Pretty wild.
08:23 That's cool.
08:25 We're also going to link to a couple a couple articles that that Trey wrote about.
08:31 He wrote about this, about how he wrote this.
08:34 And one of the things I'm bringing this up partly because I like data classes and it's kind of cool for people to learn what they are.
08:41 But in his developing this, he says he came up with having a great use case for the match case, new match case blocks in Python using Sentinel objects, which I'm not sure what he's talking about there.
08:55 So I'll take that.
08:55 Look at that.
08:56 Using text wrap ddent, which I love.
08:59 And it's nice to see somebody else using that slice.
09:03 And then an AST.
09:04 So he's using AST in here.
09:05 So it's kind of a cool, fun example of using that.
09:08 Anyway.
09:08 Cool.
09:09 Yeah.
09:09 A lot of cool stuff.
09:10 And actually, go back to the first one.
09:11 The first tab you got there.
09:13 Yeah.
09:13 One of the things I appreciate from this example is you just say class point, X colon float, Y colon float, Z colon float.
09:19 Yeah.
09:20 And put the data class attribute on it.
09:21 Look how much it's doing for you, right?
09:23 Like it's not just the typed values, but it's protecting the read-write ability, making it read-only.
09:30 It's getting a wrapper definition.
09:32 It's getting a hash ability, equality, not equality effectively by.
09:37 All right.
09:37 There's a lot of cool things it's adding for you there.
09:39 Yeah.
09:40 And he's-
09:40 He can appreciate the data class.
09:42 He's suggesting doing other stuff like using keyword-only and fields, different fields to see if you can change how it works.
09:51 But yeah, I'll have to play with this more.
09:53 And a reminder to everybody that is like data classes are almost enough, but you need more.
10:00 We'll also look at adders because adders is kind of a superset of data classes.
10:04 Right.
10:05 Yeah.
10:05 Fantastic.
10:06 That's great.
10:06 Cool.
10:07 All right, Brian, the next one I got here.
10:09 This one's for you.
10:10 Okay.
10:10 All right.
10:11 All right.
10:11 So let's go back.
10:13 We'll take a two-step process to approach this.
10:17 Did you ever use Lynx?
10:18 L-Y-N-X?
10:19 Yeah, like a long, long time ago.
10:22 I remember SSH.
10:24 I know.
10:24 I think I telneted into the mainframes back of the university and I'd run L-Y-N-X.
10:31 This predated the graphical web.
10:33 I mean, it's insane, right?
10:35 So, but it's a browser that is pure text in the terminal.
10:38 Today we have all these fancy browsers, but one of the things you had a lot of was like
10:42 keyboard shortcuts and other types of things you could do, right?
10:45 Yeah.
10:46 Well, now that it's 30 years later, what if we could go back to a time a little bit like
10:51 that?
10:51 So I want to introduce you to the Qt browser, Q-U-T-E browser.
10:56 Okay?
10:57 Okay.
10:57 So what is this?
10:59 The Qt browser is also like kind of in need of a homepage refresh, but it's a keyboard focused
11:05 browser with a minimal GUI.
11:07 And what's interesting is it's built with Python.
11:10 Okay.
11:10 So it's a full web browser built with Python.
11:13 And it's kind of like a, like a Vimper or one of these other ones that lets you do Vim
11:19 like control and behavior of it.
11:21 A little bit like, a little bit like links, but it's actual, actually Chrome more or less,
11:27 at least the Chrome runtime.
11:28 So this one was sent in.
11:31 I'm going to make sure I give him credit for giving a shout out.
11:33 This was sent in to us by Martin Boris.
11:35 And it's, it's pretty neat.
11:38 So it's a browser, let me switch up my screen share just for you for a sec.
11:41 Stop.
11:43 And then I'm going to add the Qt browser.
11:45 You ready?
11:46 Where is it?
11:47 There.
11:47 All right.
11:48 So look at this bad boy.
11:49 So this is the browser.
11:51 And how do I go to places?
11:53 Well, I can click on things like here's a link I can click on.
11:56 But if I want to go somewhere, I press O and it pulls up a place I can open.
12:01 Look at this.
12:01 I got my history.
12:02 Oh, that's pretty cool.
12:03 I want to go to like, I'll go to talk Python.
12:06 How do I, if I want to do a command, I hit colon and here's all my commands.
12:10 I've like my tab, I give focus and control and so on.
12:14 Over here and it's type F.
12:16 So if I want to, if I want to navigate, for example, I'm here on the talk Python page.
12:21 What if I want to go to courses, I type F and then everything, see how everything gets a letter above it.
12:26 That's pretty great.
12:27 Yeah.
12:27 L, D, D, G.
12:28 If I want to go to D, I just press D and then we're off on the talk by then training site and so on.
12:33 So I could open, I could say open and I could search for pytest and I'll pull up my tests and so on.
12:40 And I can do a new tab.
12:42 I got to remember how to do that.
12:44 Yeah.
12:45 We're going to say tab clone.
12:46 And I come over here.
12:47 I know there's a bunch of good commands that I'm not following.
12:49 Like very much like if I was actually using Vim.
12:52 Yeah.
12:53 If I could search for pytest and book, I could come over here, right?
12:55 Like that.
12:56 And I can hit, is it control or Windows control?
13:00 Ooh, that's a good book.
13:01 Yeah, I heard that's a good book.
13:02 So I can like cycle through my tabs, see how minimal my tabs are and stuff right there.
13:05 Oh yeah.
13:06 It's on the bottom.
13:06 It's got all these little commands.
13:08 So anyway, and I can type colon Q.
13:10 Boom, we're out.
13:11 Nice.
13:11 What do you think of this?
13:12 Yeah.
13:13 What do you think of that?
13:14 I actually love the cute browser.
13:15 I haven't used it much, but I definitely know about it because the Florian Bruin who started
13:22 the browser, he's a pytest contributor and also one of the technical reviewers for the
13:29 pytest book.
13:30 So really cool guy.
13:31 But I love the idea of being able to just use a browser with a keyboard and not have to touch
13:36 the mouse at all.
13:36 That's like, that's next level.
13:39 It's pretty neat.
13:40 Yeah.
13:40 Yeah.
13:42 Let's see.
13:42 Out in the audience, Kim Van Wijk.
13:44 Hey, Kim.
13:44 Says, I resigned myself to using a mouse more than I want to.
13:48 Cute browser may be the way to go.
13:49 Thanks to the tip.
13:50 Awesome.
13:50 Yeah.
13:51 And Alvaro says, are those VS Code shortcuts?
13:53 I suppose only if you have the Vim binding set in VS Code.
13:57 But then I sort of, yes.
13:59 Well, of course you do.
14:00 Why wouldn't you?
14:01 What are you, a monster?
14:04 Can you even do Emacs bindings?
14:07 I don't know.
14:09 You could do non-Vim bindings.
14:11 Yeah.
14:12 Right.
14:12 But then people would look down on you.
14:14 Right, Brian?
14:14 But I don't do Vim stuff in mine.
14:17 I know that you probably do, though.
14:18 Yeah.
14:19 I use Vim everywhere, especially in VS Code.
14:22 So, nice.
14:24 Nice.
14:24 But I think people should check it out.
14:26 It's kind of a cool project.
14:27 And also, it helped push forward some of the, some pytest things.
14:33 We got some new features because of this.
14:35 It's cool.
14:35 Yeah.
14:36 Oh, that's great.
14:37 I installed it with Homebrew.
14:39 So, that was easy to install.
14:40 You can install it with apt on Linux.
14:42 I'm not sure about Windows.
14:43 But they've got a quick start guide.
14:45 So, you can follow along to see like, you know, what, what you might want to do.
14:48 Like, it's, it's not super obvious.
14:50 No, that cheat sheet is, I have an iChart key binding.
14:56 It's a bit of an iChart.
14:57 I suspect you can zoom it.
14:59 There you go.
15:00 It's still small.
15:01 It's still small.
15:02 But, yeah.
15:04 I do like the navigation, pressing like F and then just a letter to navigate instead of using your mouse to follow the links.
15:11 That's pretty cool.
15:11 Do you remember those, like, those templates that people used to have, like, back in the day for, like, in, like, Office tools where they would overlay.
15:21 You would put them, it was actually an overlay on your keyboard.
15:23 Yeah.
15:24 It would go over the, like, the function keys to, so that you could remember which functions did what during what application.
15:30 And if you switch to Word, you put a different, or probably WordPerfect at the time, you put a different template over it.
15:35 And, yeah.
15:36 Yeah.
15:36 I'm going to use Lotus 1, 2, 3.
15:38 Give me the function key overlay.
15:39 Yeah.
15:40 Yeah.
15:40 Okay.
15:42 I'm just showing.
15:43 Yeah, it's a little like that.
15:43 It is.
15:43 Showing how old I am.
15:45 So, let's talk about something new.
15:47 I'm sure they still teach that in college.
15:48 Yeah.
15:49 No, they don't.
15:50 Although, in college, I had to teach.
15:53 I was a TA for, like, a computers 101 class during grad school.
15:58 And links was one of the things we had to teach.
16:00 And I was like, nobody's going to use this.
16:03 Yeah.
16:03 But it was part of the curriculum.
16:05 Yeah.
16:06 That's awesome.
16:07 Anyway.
16:07 So, let's switch to something new, like, async.
16:11 So, I think we've talked about court probably several times.
16:15 And court is a, it's like Flask, but it's async.
16:20 It actually is the, does the entire, it supports the Flask API, or I think, and sort of looks
16:29 the same, but it's async instead.
16:30 But there's a problem.
16:31 It's super close.
16:32 You can basically, everywhere you have the word Flask, if you replace it with the word
16:36 court, it more or less works.
16:38 So, like, import lowercase flask.
16:41 You import lowercase court.
16:42 If you create an object, capital F Flask, you use capital court, and then it lets you do async,
16:47 basically.
16:47 Cool.
16:48 But there's an ecosystem around both of them now.
16:51 So, there are extensions to Flask.
16:53 Some of them work on court.
16:55 There's extensions to court.
16:57 I don't know if any of those work on Flask.
16:59 But the people behind both of them kind of are supportive of the whole thing.
17:04 And so, court is actually now part of the pallets project, is the big news.
17:10 And pallets is the project that includes Flask and a whole bunch of other stuff.
17:17 But because of this, it will help maybe the maintainers kind of work together a little bit
17:25 better and smoother to iron this out.
17:28 So, the big difference, of course, is that Flask has a whiskey server behind it.
17:35 Server is the right word?
17:35 And court is ASCII.
17:40 So, asynchronous.
17:41 But the, it's, so this is cool.
17:45 Well, why do we care a little bit?
17:47 Is that it used to be that really you had to do async.
17:50 If you wanted async, you had to do court.
17:52 But now Flask, as a Flask 2.0, you do have some async capabilities, but it's still using
18:00 a single-threaded server.
18:02 So, there are some limitations.
18:04 So, kind of interesting to read about this.
18:08 There is an async and await.
18:10 page on the Flask website that talks about really what the trade-offs are, what the performance
18:16 and the background tasks and how to do that within, without shifting to court.
18:22 But then also talks about, at some point, you might want to just switch to court instead.
18:28 Along this line is, I was thinking about this partly while I was looking at this other article
18:36 from Steve Pate that called, should you use async on your next Python web application?
18:42 Which I was, I wanted to bring this up because I was curious about what your take on it was.
18:47 The first part is, it's a really nice history.
18:51 It talks about the history of web server interfaces with Python, with the timelines and Whiskey and ASCII.
18:58 And then how ASCII.io came into play and how UVicorn is popular and Unicorn.
19:08 I don't know how to say that.
19:11 I'm pretty sure it's G-unicorn because it's short for green unicorn.
19:15 Okay.
19:16 So the last bit should still be pronounced unicorn.
19:17 So I'm going to go with G.
19:18 Okay.
19:19 And then there's Hypercorn, which is the asynchronous web server that's similar.
19:25 Anyway, so it talks about this, but then at the end, the conclusion, it talks about all the different frameworks.
19:30 The conclusion is, most people don't need async on their web server.
19:36 And I was curious what your reaction to this conclusion is.
19:42 I have some thoughts, but let me pull up some first.
19:45 Okay.
19:45 So here's my thought.
19:46 It depends.
19:47 It depends on how far you need to push it towards the edge.
19:51 I was surprised how far you can get without async in terms of concurrency.
19:57 So I recently did an in-person class.
20:00 Imagine that over Zoom, but live in person.
20:05 I actually have some more to say about that.
20:07 It's kind of related.
20:07 But anyway, I just did a course with some folks who are doing FastAPI.
20:11 And they said, look, this async stuff that we're doing adds some complexity to the way that we got our right code.
20:17 We're not sure whether or not there's a trade-off.
20:19 So what we did is we actually ended up writing a FastAPI app with using the sync and the async version of SQLAlchemy, and then using async and an async version of FastAPI endpoints.
20:32 Okay.
20:33 Okay.
20:33 With the database that we had as the backend, and the database was not the limiting factor because it was at like 10% CPU while this was happening.
20:42 It was just chilling.
20:43 Yeah.
20:43 But with a real database, Postgres as the backend, what we found was we could do, I can remember this right.
20:51 Oh boy.
20:52 I'll give you, I can certainly give you the relative bit.
20:56 So with the synchronous version, we got way more scalability than we thought.
21:00 So it was like 75% performance of the async version.
21:05 Okay.
21:06 So that seems way higher because the database had, like most of the things we were doing is just waiting on the database.
21:11 But because we were running in G Unicorn with UVicorn workers, I was really just in G Unicorn with threads, you know, Python doesn't do threading well, except when it's listening on a network socket or doing a few other things that will release the GIL.
21:25 And guess what?
21:25 When you're talking to the database, you're listening to a network socket.
21:28 So there's all these points that naturally free up the threading.
21:30 And actually got us like 75% of the way there, but we still got 25 to 30% more performance out of the async version.
21:39 And it was like, I think it was five worker processes running on my eight core machine, talking to Postgres.
21:45 And we were getting something like, you know, like 2000 requests per second versus 1500 a second, or maybe it was 1000 and 1500, something like that was a lot of requests per second.
21:56 But we did get more performance out of the async version.
22:00 So my depends is like that last 25, are you like that close to your performance?
22:06 I would say 95% of the web apps are not maxed, right?
22:10 They're not maxed out with like multiple servers trying to deal with it.
22:13 95% of servers are doing important work, but they're probably still have a lot of capacity left.
22:19 So it's like, it depends.
22:20 Are they like, do you need that last 25% or does it not really matter?
22:23 Yeah.
22:24 Yeah.
22:25 And also like, those are my thoughts.
22:27 What's the load like on your typical, I mean, what are your levels anyway?
22:32 Right.
22:32 So if you, if you already have, like for instance, if you already have an application running, you can measure it and see, see what your load is looking like.
22:41 And how many people you have.
22:43 And then if you, if you think, oh, I might, I might increase my, what if we double?
22:47 Then you can kind of guess what your load is going to look like if you double and stuff.
22:52 So interesting.
22:53 Yeah.
22:54 I recommend people check out this locus thing because it's so easy to say a typical user clicks on the page between five and 15 seconds.
23:02 They might go log in.
23:03 They might go log in some of the time.
23:04 They might go hit the homepage.
23:06 They might hit the about.
23:07 And then you can say, I would like to see how many users I can take.
23:10 And if, if you're 10 X, what you need, you know, it doesn't matter whether you use async or not, but there is a performance benefit.
23:16 It's just not as massive as it might sound.
23:18 The, the other bit that I want to like point out is the, the one, one statement that like depends on what you're using.
23:27 Also like I can't find the, the bit here, but it, he was talking about how one application he had, he was thinking about, oh, I might, I might do a async except for he was using a payment gateway that didn't have an async version.
23:41 So he had to use a synchronous for that.
23:44 And since synchronous somewhere you kind of have, is this true?
23:48 If it's synchronous somewhere, you have to be synchronous everywhere or that not really true.
23:52 You know, if, sorry, say that if it's sync, async, it's async everywhere or sync.
23:56 It's sync everywhere.
23:57 Either one is either one of those true.
23:59 If I, like, if I have a, if I've got an application and, and I do need to hit a gateway that's synchronous, do I need to, if I isolate it, I guess I can probably do asynchronous and hide it that way.
24:11 But yeah, I mean, you're, you just don't get as good a scalability there and you kind of block up the processing.
24:17 If you do the sync for the async one, you can do like a wrapper where you say like, we're going to do some async work, but I'm just going to call that and block.
24:25 Because all the other stuff above it doesn't want to deal with being async.
24:28 Yeah.
24:29 So it's easier to go from sync to async to like have part of it be async.
24:34 The other way around is a little more tricky.
24:36 It can mess it up a bit.
24:37 Okay, cool.
24:38 Yeah.
24:39 Nice.
24:39 Interesting conversation.
24:40 Thanks a lot.
24:41 Absolutely.
24:42 It sure is.
24:43 Is that it?
24:43 Is that all of our items?
24:44 Are we?
24:45 I think that all of our items?
24:48 I think so.
24:48 Yeah.
24:49 Yeah.
24:49 What?
24:49 You got any extras for us?
24:50 I don't.
24:52 No.
24:52 Okay.
24:52 I have some.
24:53 Let me pull them up here.
24:55 Locus.
24:56 Look, let me tell you about it now.
24:57 It's great.
24:57 All right.
24:57 No, I have three things I want to tell people about.
24:59 Number one is I did a talk at Python Web Conference, the HTMX and Flask one that I've done in some
25:06 other places, but that was a fun talk, like a 45 minute Flask plus HTMX goodness there.
25:12 And so that video, along with all the other Python Web Conf 2022 talks are now on YouTube.
25:19 So people can check that out.
25:20 Cool.
25:20 Did you know that the Python Web Conference had five days and I think it was like four or five tracks all day.
25:28 So there are a ton of videos.
25:29 There's like 150 videos or something on there.
25:32 I mean, look at this scroll bar here.
25:33 It's probably going to like page as I get to the bottom too.
25:37 Yep.
25:37 Look at that.
25:39 So there was a lot of talks that people can come check out if they're interested in that.
25:43 That's pretty cool.
25:44 One of them being HTMX that I did.
25:45 Yeah.
25:46 I want to watch your talk.
25:47 You've given that a couple of times, haven't you?
25:49 Yeah.
25:49 Yeah.
25:50 I've given it a couple of times.
25:51 Basically, the way it worked is like when I was working on that course and really like playing with those ideas,
25:55 I submitted to a bunch of conferences and those conferences were either a year out or they were like a month out or something.
26:01 Right.
26:01 That's how that ended up so spread out.
26:03 The other one is I mentioned the browser.
26:05 That was fun.
26:06 But how about the browser-asaurus?
26:08 Okay.
26:09 This is a macOS only tool, but there's probably something like it for the others.
26:13 So here's the thing.
26:14 Suppose I'm in Typeora, which is a Markdown editor, or I'm in a PowerPoint and it's got a link and I click it.
26:22 By default, it opens in the default browser.
26:25 But depending on what you're doing, you might want it to be like, oh, sometimes I wanted to open in Vivaldi,
26:30 but other times I wanted to open in like say the cute browser or Orion or some odd thing like that.
26:35 Right.
26:36 So the idea with this thing is that you click a link and when it opens up, instead of opening in the default browser,
26:42 the browser-asaurus is the default.
26:44 And then you have keyboard shortcuts like F for Firefox, E for Edge, S for Safari.
26:50 And you say, well, which one do you want to open in right now?
26:53 And it basically just delegates to the different browsers you register it with.
26:57 So you can hit T for Tor or F for Firefox when you click a link.
27:00 That's kind of cool, right?
27:01 That is pretty cool.
27:01 Yeah.
27:02 I haven't been convinced that I would use that or not, but I do appreciate it.
27:07 And I feel like maybe someone sent that in and if they did, I'd really appreciate it.
27:12 But yeah, I don't have any notes I sent it in.
27:14 So anyway, that's pretty cool.
27:15 If you find yourself, you know, copying, going to different browsers a lot and you're on Mac,
27:20 I know that's like a small, a rapidly decreasing Venn diagram.
27:24 But if you're in that space, this might be a cool option for you.
27:27 Yeah.
27:27 What is it written with anyway?
27:28 TypeScript mostly.
27:30 Okay.
27:30 So speaking of browsers, I just found this because I was like, is links dead?
27:34 Can I use something like links now?
27:36 And there's a browser called Broush, which is a text-based browser.
27:41 So that's still a thing.
27:42 Cool.
27:43 I had to try this out.
27:44 Oh my gosh.
27:45 I love it that it kind of has text, but it like 8-bit pixelated.
27:50 Yeah.
27:50 It takes the images and makes them terrible.
27:52 It takes the images and makes them look like what you would get.
27:55 Yeah.
27:56 So I'll have to give this a try.
27:57 Yeah.
27:58 And you've run it in Docker.
27:59 Of course you do.
28:00 All right.
28:00 Pretty cool.
28:02 All right.
28:03 Oh, let's.
28:04 Yeah.
28:05 Go ahead.
28:05 One more before we get to our joke.
28:07 Okay.
28:08 The other one is I talked about doing a live class.
28:11 So I actually have an announcement for a live class that I'm doing.
28:14 So obviously people know I have a bunch of online courses and of course I'm going to keep, I'm already working on the next one of those and we've got a bunch coming there.
28:22 But I want to try some experiments.
28:25 Something where people can attend a class in person with other people, right?
28:31 If they sort of help each other along.
28:34 And I've tried this before, this cohort thing, but I think I've got a better platform, a better way to do it.
28:39 So over at, this link I'm going to put in the show notes, I'm doing a FastAPI and MongoDB.
28:44 So basically FastAPI, Pydantic, Beanie and MongoDB course.
28:48 That is going to be a four day, six day course over two weeks.
28:53 And it has a couple hours a day.
28:55 And.
28:56 Oh, wow.
28:57 We'd have a bunch of people there working together on some fun stuff.
29:00 And I'll be live teaching every session.
29:03 So it's going to be like a live course as if you were attending it in person, just remotely.
29:08 Because it's 2022 and it's not a, I guess it's not post post COVID all the way.
29:15 But anyway, it's, it's got a really cool set of topics that we cover.
29:17 It talks about async.
29:19 It talks about Mongo, Beanie, Pydantic, FastAPI, of course.
29:22 We even use Locus at the end to test it out.
29:24 I'm, I think this would be a fun.
29:27 This looks great.
29:28 Cool.
29:28 Yeah.
29:29 Yeah.
29:29 Awesome.
29:29 I think it'll be fun too.
29:31 I think it'll be neat to have this experience with people.
29:33 And I've tried this before, but all my prior attempts were, they were good, I think,
29:38 but they were like, yeah, take the online course.
29:39 And then we'll do like a community type thing.
29:41 This is like a live course that I'm just teaching one off for that group of people that sign up.
29:45 So we'll see how that goes.
29:46 If it goes really well and people love it, then I'll do more of these.
29:49 If not, then maybe less of them.
29:50 I don't know.
29:51 We'll see how it goes.
29:51 But this is happening August 8th to 19th.
29:55 So it has a real date because it has, you know, a real live aspect to it.
29:59 Nice.
29:59 Cool.
30:00 All right.
30:00 Cool.
30:01 And Mario on the on says, that's my stack right there.
30:04 Oh, yeah.
30:05 That's a good stack, right?
30:06 There's some really good stuff to talk about there.
30:09 I've been using Beanie and FastAPI for stuff.
30:12 And obviously, Monk.
30:13 Yeah.
30:13 Speaking of courses, one question out there.
30:16 How's the pytest course going?
30:18 It is going.
30:20 It's creeping forward, but life has gotten in the way.
30:25 And we'll get it out.
30:27 It's awesome that you're having.
30:28 Yeah.
30:28 It's awesome that you're working on that.
30:29 It takes a while to create a course, doesn't it?
30:31 Longer than I thought.
30:32 I'm like, man, I already wrote the book.
30:34 I can totally pop a course out in a couple of days.
30:36 Yes, of course.
30:38 Would you say that as a junior developer, you might think about this differently than after
30:43 somebody's been doing it for a while?
30:44 Yeah.
30:45 This cracked me up.
30:47 So I can't remember who shared this.
30:49 It's a great joke you got here.
30:50 Somebody shared it on Twitter.
30:52 Sorry, I can't.
30:53 I don't know who.
30:54 But OK, so in a job interview, you've got somebody gets asked, where do you see yourself
31:01 in five years?
31:01 And the junior developer in this interview question shows a picture of the black hoodie with multiple
31:09 screens and light up keyboard.
31:11 Just I'm in Hackersome.
31:13 Five screens.
31:14 Yeah.
31:14 Totally coding.
31:15 Yeah.
31:15 Senior developer, where do you see yourself in five years?
31:18 On a farm.
31:19 Pumpkin farming with cows and apples.
31:23 And you know what?
31:24 I'm about done.
31:25 I love it.
31:26 Yeah.
31:27 My personal thoughts are, why not both?
31:30 This is just a view of the inside his office and then outside.
31:33 Working from home, man.
31:35 That's right.
31:36 Working from home.
31:37 Yeah.
31:38 All right.
31:38 I have maybe the one that preceded that, the one that, or maybe is in between these two
31:43 that might precipitate the second.
31:45 Okay.
31:45 All right.
31:46 So this is a tweet from Programming Humor.
31:48 It's a strange language, that JS.
31:50 JavaScript is such a strange language.
31:52 Nobody can understand it.
31:53 But if they manage to, then they create their own framework.
31:59 Yes.
31:59 Everyone's got their JavaScript front-end framework or something like that.
32:03 Yeah.
32:03 And you know you've made it when the framework you've invented starts showing up on job requirements.
32:09 That's right.
32:10 With four years experience.
32:13 We're only two years old.
32:14 Exactly.
32:15 Yeah.
32:16 Yeah.
32:16 Well, good episode, Michael.
32:18 Thanks for showing up again.
32:20 You bet.
32:20 Fun as always.
32:21 Thanks, everybody.
32:22 We'll see you later.
32:23 In the slack and everything.
32:25 Bye.