Brought to you by Michael and Brian - take a Talk Python course or get Brian's pytest book


Transcript #394: Python is easy now?

Return to episode page view on github
Recorded on Tuesday, Jul 30, 2024.

00:00 Hello and welcome to Python Bytes, where we deliver Python news and headlines directly to your earbuds.

00:04 This is 394, recorded July 30th, 2024.

00:10 I am Michael Kennedy.

00:11 And I'm Brian Okken.

00:12 And this episode is brought to you by Scout APM.

00:16 Thank you, Scout APM, for sponsoring the show.

00:18 We will tell you more about them later.

00:20 If you want to connect with us on the socials, the best but not the only place is over on Mastodon,

00:26 where all the links, me, Brian, and the show, all have our accounts list at the top of the page of the show notes.

00:32 You'll see in your podcast player or the website.

00:35 Also, if you're not joining us live and you would like to, we record Tuesdays at 10 a.m. Pacific time.

00:42 Check that out, pythonbytes.fm.com.

00:43 You'll see all the older versions under the live section on our YouTube channel there.

00:48 And finally, you probably do want to also get a summary of this episode in your email.

00:54 I'm sure you do.

00:55 A handcrafted, artisanal Brian Okken special email.

00:59 So just visit pythonbytes.fm.

01:01 Click on newsletter.

01:02 Enter your information.

01:03 We won't give it away.

01:05 Share with other people.

01:06 Resell it.

01:07 Retarget you.

01:07 Do evil things.

01:08 We just will communicate with you about stuff we're up to, mostly the show.

01:12 Brian, I learned Python.

01:13 It was a good weekend.

01:14 Is that the same?

01:15 Is that what you're telling me for your first item here?

01:18 Oh, okay.

01:19 Look, where are you going with this, Michael?

01:20 Michael, I think you've known it for a while.

01:22 No, I bundled the joke a little bit, but yes.

01:26 That's all right.

01:27 I thought Python is easy, I hear.

01:29 Yeah, Python is easy now, apparently.

01:32 No, I love Python.

01:34 Anyway, what I wanted to talk about was beyond hypermodern or postmodern.

01:39 I'm not sure what the tagline is, really.

01:41 So this is an article by Chris Ardern.

01:45 Chris?

01:45 Sorry about it.

01:46 I probably mangled your last name.

01:48 But I really like the article, Chris.

01:50 So what is this?

01:51 So the title is Beyond Hypermodern, Python is Easy Now.

01:58 And this is a reference to hypermodern Python that was, he says it came out like, as a series

02:04 that came out four years ago or something.

02:07 Interesting.

02:08 But it's, what was, who was the hypermodern person again?

02:13 Can't remember.

02:14 Oh, I should have looked this up anyway.

02:17 Claude, Claudia, Claudio, Claudio, oh, I'm not going to try.

02:22 Claudio's book, Hypermodern Python Tooling, is now as a book, which is cool.

02:27 Good job.

02:28 But that's not what we're talking about.

02:29 We're talking about beyond hypermodern or from the URL postmodern.

02:34 So what is this?

02:35 Basically, it's talking about all the tooling and it's all in Rai now.

02:40 So this is what Chris's idea is, is you could do so much in Rai.

02:44 And actually, I knew Rai did a lot, but Rai actually does more than I thought you could.

02:52 So Rai is a tool that's like kind of does a lot of stuff around Python.

02:57 So there's setup.

02:59 It goes through setup, linting, typing, testing, documentation, CICD.

03:03 And then there's a bonus section on monorepo.

03:06 But I really liked just walking through, like if you wanted to try out Rai, all the different,

03:12 like the workflow, going through the entire workflow of building a Python project.

03:16 Like the setup part is setting up an initial directory, including setting up your pyproject.toml

03:24 and setting up some different directories, which is great.

03:29 Just sets up the structure for you.

03:31 There's a lot of files here that like I don't often, to tell you the truth, I don't use lock

03:36 files a lot.

03:37 Partly because I'm using, I'm often developing Python modules or packages, which I don't really

03:44 lock stuff.

03:44 Locking is more regularly around applications.

03:48 So do you have lock files for some of your application stuff, Michael?

03:52 All of them.

03:53 All of them.

03:54 I use the pip compile workflow.

03:56 Okay.

03:56 So I've got like one thing that specifies the top level requirements and then another one

04:00 that is the lock file using a UV hip compile.

04:04 Okay.

04:05 One of the things that I didn't think about was like requirements for the requirements dash

04:11 dev lock.

04:12 So instead of requirements on text, these are the dependencies are in your pyproject.toml,

04:18 but there are a lot of requirements lock files.

04:20 But a dev lock file, that I might actually have even for a package to make sure all the developers

04:28 are using the same thing.

04:29 So that's kind of interesting.

04:30 It makes a lot of sense.

04:31 I was just had, when did I publish it?

04:33 This, was that this week's episode?

04:35 I can't remember.

04:36 Very, very, very recently.

04:37 David Lord from Flask on Talk Python.

04:41 Yeah.

04:42 And one of the things they're working on is creating a more repeatable environment for contributors

04:47 and developers to Flask.

04:49 So like you Flask, you don't want to just pin the versions of everything because that wrecks

04:53 everybody else's options to work with different versions.

04:55 But you do want to make sure that people who do PRs have the same setup as people who are

05:00 reviewing the PRs.

05:01 So he talked a lot about having a hind requirements for developers of the project, but not the

05:08 project itself.

05:09 Yeah.

05:09 That's a cool idea.

05:11 So that's set up.

05:13 There's, you can do linting with it.

05:15 The testing section talks about pytest.

05:18 Yay.

05:18 But the, one of the things that I thought was kind of neat was this, and I think I knew

05:23 this, but anyway, this idea of scripts.

05:25 So within your PyProject Tomo, you can set up Rai scripts.

05:29 So they're basically extra commands that do things like, so you can say like Rai run test.

05:37 And so the run command runs your script.

05:39 So you can say run in a test is a thing that you've said that just like defaults to Rai test.

05:46 But things like Rai run check might be running PyRite or for linting or for type checking

05:54 or linting is a Rai lint with a fix or something.

05:58 So all these different, if you, if you've, especially if you've got other people on the team, having

06:03 some way to do all of this is good.

06:06 And then a kind of a neat thing that I, that's probably as nice as being able to chain scripts.

06:12 So if you've got like running your form auto formatting and linting and their type checking and

06:18 also running your tests.

06:19 But then if you want to do all of them, there's a way to just chain them up within the PyProject

06:25 Tomo's, which is kind of cool.

06:26 Yeah, that's very cool.

06:28 It's kind of takes the place of where I would use either where I used to use make files.

06:32 Now I use talks commands for.

06:36 But so a lot of this around if you don't need it, I'm guessing this doesn't create a

06:41 new virtual environment, but I haven't played with it yet.

06:43 But that's where talks would do that.

06:48 So there's a discussion around documentation.

06:50 It isn't really a Rai thing, but just talking about documenting things well.

06:54 But I really kind of like this article about like, if you want to try out mostly because

06:58 I do want to try out Rai and this kind of walks through all the different things it does within

07:03 your workflow and where you might want to pull it in.

07:05 And I do, I do appreciate that Rai has some configuration.

07:09 So apparently the default packaging tool is hatch, but this person, Chris, wanted to use PDM.

07:19 So you can set that, but I'd probably leave it as hatch because I like hatch, but might do

07:24 something different.

07:24 But you can even set a dependency operator.

07:28 So whether you want it to be like approximately equal to or greater than equal or whatever, kind

07:34 of neat.

07:34 The bonus is really kind of fun.

07:37 I actually just ran into a project where I have to help support, which is a large repository

07:46 with multiple Python projects in it.

07:48 And so I'm looking forward to reading through how possibly this documentation around dealing

07:56 with monorepos in Python.

07:57 This is on my to-do route, to read next list.

08:01 That's cool.

08:02 That's next level stuff right there.

08:03 Yeah.

08:05 Well, very, very cool.

08:06 Well, I, Brian, am happy to report, I think, that the GIL has been vanquished.

08:12 But-

08:13 We are now in the epoch of free-threaded Python.

08:16 So how might you test this out and see if it's actually worth it and so on.

08:22 Okay.

08:22 So Simon Wilson, one of his Today I Learned, is trying out free-threaded Python on macOS.

08:28 Could be others as well.

08:30 But you can just go to, this is interesting.

08:32 I didn't realize that you would be able to get free-threaded Python this way from the PEP.

08:36 It's like, you've got to get a special build of it.

08:38 And it's just like its own thing.

08:41 Right?

08:41 Yeah.

08:42 But if you get the macOS installer, I don't know about the others, but presumably the Windows

08:46 one has something similar or will.

08:48 I don't know.

08:48 Go to install this.

08:49 You can set up the options, custom install.

08:52 And you can just check off a checkbox to install a separate binary for free-threaded Python 313

08:59 instead of guild Python.

09:01 Wow.

09:01 And that's just from the python.org download.

09:04 Yeah, exactly.

09:05 Wow.

09:05 Exactly.

09:06 Yeah.

09:06 Just to get that downloads beta 3 of it.

09:08 And there it is.

09:09 So you just hit customize your install and boom.

09:12 So that alone is kind of interesting.

09:14 Yeah.

09:15 And then once you do that, you get not just a Python 3.13, but a Python 3.13 T.

09:22 It's interesting.

09:24 But not FT.

09:25 I mean, the other one should have a T on it.

09:28 Come on.

09:28 If it's going to be threaded.

09:29 I don't know.

09:30 Anyway, T, whatever.

09:31 You get one that is like, that's the one you can run in the command line for free-threaded

09:35 Python.

09:35 And Simon points out, like, didn't really put this in the path because it's beta.

09:39 I don't want to mess stuff up.

09:40 But nonetheless, there it is.

09:42 So let's test it out.

09:44 It comes up with a simple little program that just does some CPU bound thing.

09:48 This is the important thing.

09:49 We've, for a long time since Python 3.4, had really good options to parallelize IO bound

09:56 or waiting types of things.

09:58 I'm talking to a network.

09:59 I'm talking to a database.

10:00 I'm talking to whatever with asyncio, right?

10:03 Yeah.

10:03 But the CPU bound stuff, the GIL would stop and go, yeah, no, I don't care how many cores

10:08 you got.

10:08 You got one, right?

10:09 Yeah.

10:10 And so this is just summing up a bunch of numbers, the squares of the numbers,

10:14 just like doing some computational busy work, right?

10:16 So it says, okay, well, let's set up a little app that'll take some parameters so we can feed

10:20 it different information and see what we'll get and then run it on a thread pool executor

10:26 with as many threads that are specified.

10:29 So it starts out just to skip ahead.

10:31 So look, I ran it once.

10:32 I get one core.

10:34 It says 99% CPU usage on macOS that it reports this as a hundred percent basis as being one

10:41 core fully busy.

10:42 So if you've got eight cores, this could go up to 800%.

10:44 It's kind of weird.

10:45 Anyway, 99% CPU if you run the regular one.

10:48 But if you run the free threaded one, he was getting some number that was a little low.

10:52 There's a bug.

10:53 It's not super relevant about him fixing the bug or not.

10:56 I don't really think that matters.

10:58 But what the takeaway is, if you run it with four threads, that whole workload ran in 1.3 seconds.

11:06 You run it with 12 threads.

11:08 It went down to one second.

11:10 I don't know how many cores he has.

11:11 I don't believe it said.

11:12 But with the gill, that's four seconds versus one second or 1.3 seconds for the basically

11:18 four times as fast.

11:19 Presumably, this is a four core system.

11:21 I'm not sure.

11:22 Anyway, pretty cool, right?

11:23 That is pretty cool.

11:25 So yes, that's faster.

11:27 Four times faster is 400%.

11:29 That's no joke.

11:30 That'll make a difference for some people.

11:31 But I think more relevant is just like, hey, look, apparently the installers have it.

11:35 Right?

11:36 That's kind of cool.

11:37 Yeah.

11:37 Okay.

11:38 I was chuckling because I said testing it out.

11:41 It says, I asked Claude 3.5 Sonnet to write me a quick test script.

11:45 But the script it come up with is something I know that he can write on his own.

11:50 Yeah, exactly.

11:52 Exactly.

11:52 Exactly.

11:53 Yeah.

11:55 It didn't come up with something all that interesting.

11:57 And it introduced a bug.

11:58 He should have just written it himself.

12:00 Oh, well.

12:02 But this is neat.

12:03 Actually, I saw the announcement that there were some builds of the free threader one,

12:08 but I didn't know you could just do it, like click it from the installer.

12:11 That's cool.

12:12 Yeah.

12:12 That's the big news I took away as well.

12:15 Very cool.

12:15 Neat.

12:16 Very neat.

12:17 And you know what you don't have to build yourself is an APM platform.

12:21 Right.

12:21 We could let Scout do that for you.

12:23 Let me tell you real quick about Scout APM.

12:27 They're big supporters of Python Bytes.

12:29 So we appreciate that very much.

12:31 So if you are tired of spending hours trying to find the root cause of issues impacting your

12:36 performance, then you owe it to yourself to check out Scout APM.

12:40 They're a leading Python application performance monitoring tool, APM, that helps you identify and solve performance abnormalities faster and easier.

12:49 Scout APM ties bottlenecks such as memory leaks, slow database queries, background jobs, and the dreaded N plus one queries that you can end up if you do lazy loading in your ORM.

13:00 And then you say, oh, no, why is it so slow?

13:02 Why are you doing 200 database queries for what should be one?

13:05 So you can find out things like that.

13:06 And it links it back directly to source code so you can spend less time in the debugger and healing logs and just finding the problems and moving on.

13:13 And you'll love it because it's built for developers by developers.

13:16 It makes it easy to get set up.

13:18 Seriously, you can do it in less than four minutes.

13:21 So that's awesome.

13:21 And the best part is the pricing is straightforward.

13:25 You only pay for the data that you use with no hidden overage fees or per seat pricing.

13:30 And I just learned this, Brian.

13:32 They also have they provide the pro version for free to all open source projects.

13:38 So if you're an open source maintainer and you want to have Scout APM for that project, just shoot them a message or something on their pricing page about that.

13:45 So you can start your free trial and get instant insights today.

13:49 Visit pythonbytes.fm/scout.

13:52 The link is in your podcast player show notes as well.

13:54 And please use that link.

13:55 Don't just search for them because otherwise they don't think you came from us.

13:59 And then they'd stop supporting the show.

14:01 So please use our link pythonbytes.fm/scout.

14:03 Check them out.

14:04 It really supports the show.

14:06 What's next, Brian?

14:07 I want to iterate into the next topic.

14:10 I want to talk about iteratools.

14:12 So this comes from Rodrigo from Maths.

14:19 pp.com.

14:21 And he writes a lot of great articles.

14:23 But I and I know we've covered iteratools before and people have heard of iteratools and it's built into Python.

14:29 But there's so many goodies in there that I like to have people tell me what their favorites are and reshaping.

14:35 So this is an article that groups all of the, I think there's more than 20 in there.

14:44 But anyway, 20 tools that every Python developer should be aware of from iteratools.

14:49 And it's broken into five categories.

14:52 There's reshaping iterators, filtering iterators, combinatorial, infinite, and iterators that complement other tools.

15:02 And there's, I just did a quick list of this.

15:05 And I really think there's a few of these in here that I need to use more.

15:10 So I'm glad I ran across this article.

15:12 One of them, so right off the bat, it says the three most useful iterators are product.

15:18 And what product does is it simplifies, like let's say you've got a nested loop of like width and height, for instance.

15:25 For X in range of width and for Y in range of height, you do something with X and Y.

15:30 Well, you can use iteratools product and have it just be one does a product of two ranges or product of two iterators.

15:38 And it gives you the two, like all of the combinations in order.

15:45 So that's a really cool thing that I always forget about, that I probably should write that more.

15:50 Especially if you've got more than two, when you get like three, it gets ridiculous.

15:54 And so using iteratools to simplify that, it's a really great idea.

15:58 And because, you know, with Python, every time you indent into a for loop, you're going to indent your code.

16:05 It helps you keep the horizontal width of your code a little bit more reasonable.

16:11 Flats, better than nested, all that kind of stuff.

16:13 Yeah.

16:14 Chain, I always remember about.

16:15 So Chain is a way to combine two lists and iterate through all of them.

16:20 Instead of adding the lists, adding is kind of, it creates a new one.

16:24 You might not need that.

16:25 Whereas Chain will iterate through both of them.

16:28 And I have to remind people, if you're not aware, all these really cool things within the iter tools,

16:34 they're a way to manipulate iterators such that you're not copying things.

16:38 You're not making a new list of something.

16:40 You're just iterating through existing iterators without doing the copy.

16:43 I think that I'm pretty sure that's true.

16:45 Yeah.

16:47 The third one on is everybody should know about that I thought was great was pairwise.

16:53 And I actually apparently never knew about this.

16:56 And this is a way to, like, let's say you've got the example is a bunch of names and you want to be able to make sure that everybody says hi to the person on their right.

17:06 You can go through it.

17:07 And you can go through it.

17:08 Well, this might be a silly example.

17:09 But if you want to go through an entire sequence and make sure each pair in a, like, you're just walking it down, like the first number one and number two, and then two and three and then three and four.

17:21 This is an easy way to do that.

17:23 And actually, there's an old way of using zip with the, you can, you can combine two lists and do slices.

17:32 But that's a little confusing.

17:33 Whereas pairwise just gives it to you right away.

17:36 It returns two pointers to objects.

17:39 So that's really cool.

17:41 A couple more things I wanted to bring up that I thought were great in here was zip longest, which I do remember because I use it frequently.

17:50 But if you're zipping two things together, which means you're going to go through and go through two sequences using zip, by default, zip picks the shortest.

18:00 And whereas, and it just chops it off, I think.

18:04 Actually, I don't remember what it does at the end.

18:06 But zip longest will have a fill value.

18:08 So you give it a fill value and it goes through everything and you'll have something empty.

18:13 So you make sure you go through everything.

18:14 And then the last thing is T, which is kind of neat.

18:19 It allows you to do, normally iterators are exhausted once you go through it.

18:24 So you have to like regenerate an iterator.

18:26 But T allows you to iterate through something a couple times.

18:30 It allows you to iterate without exhausting the iterator, which is interesting.

18:36 So nice.

18:38 And then at the end, a discussion of, which I think is cool that he did this.

18:44 So a discussion that there is, he wrote a book on iter tools.

18:49 So there's a little book of iter tools.

18:51 He's not paying for this ad.

18:52 I just think it's neat that somebody wrote a book about iter tools.

18:55 That's nice.

18:55 Neat.

18:56 Yeah.

18:57 Yeah, it's pretty neat.

18:58 So there's a lot of, a lot of powerful stuff there.

19:01 Yeah.

19:02 It's all a lot of simple, hard problems in simple ways.

19:05 I like, I really appreciate that he picked out those first three though, of like, even if

19:10 you're not really wanting to go through all of this, take a look at these three.

19:14 You might, you probably need them and you just don't realize it.

19:17 So, yeah.

19:18 So.

19:19 Indeed.

19:20 What do you, what do you got for us next, Michael?

19:22 You would love to know if your website was down and not up or your Docker container or

19:27 your other service.

19:28 And you would like to be notified in interesting ways.

19:31 And there are services you can pay for this or free services that have weird limitations

19:36 or I don't know, just funky stuff, right?

19:39 Some of those in order to answer really good questions, you'd have to give them pretty serious

19:43 internal access to your code or to your infrastructure potentially.

19:47 So I present to you the Uptime Kuma, which is trying hard to resist Uptime Karma, but no

19:53 Uptime Kuma, a fancy self-hosted monitoring tool.

19:57 Okay.

19:58 So this thing is pretty cool.

19:59 It comes with a Docker variant, so you can just Docker compose it into life.

20:05 And I'm thinking about setting this up for Python bytes and talk Python and other things

20:10 because I've already got that Docker cluster and all the infrastructure to run it.

20:13 So adopting it should be really easy.

20:14 It just takes one container to run.

20:17 And I believe it stores its data into a SQLite database in there.

20:22 So file copy is kind of a backup.

20:24 It's kind of the backup option.

20:25 So anyway, check this out.

20:27 Doesn't this look neat, Brian?

20:28 You tell it different things you want to do.

20:30 Like I want to check that the port is open.

20:32 I want to check that this example is, you know, some example.com website is up.

20:37 You can see that MySQL is running.

20:38 You can ping the server to see that the server is up.

20:41 All sorts of things you can put as tests in here.

20:43 And you can even have an anti-test.

20:45 Like for example, if you're ever able to directly connect to the database, that should be flagged

20:51 as an error that like a down moment, not an up moment because something's gone wrong with the infrastructure

20:57 and you need to go fix it.

20:58 But in a reverse sort of way.

20:59 So what does it say?

21:00 First of all, 54,000, 53,000 GitHub stars.

21:04 So really, really quite popular.

21:07 It has a little test, a little test server.

21:10 You can set up, point at your website for 10 minutes and play with it.

21:13 That's a really nice feature.

21:14 What it says, uptime monitoring for HTTPS, TCP, HTTP keywords, JSON query, ping, a DNS record.

21:22 You can make sure your DNS records don't go insane.

21:25 And like your MX, DCAM, or I don't know, whatever, game servers, and even check that your certain

21:31 Docker containers are still running.

21:32 So it's got a nice UI and it has notifications for telegram, discord, slack, pushover, email,

21:37 and 90 other notifications.

21:40 Can have as fine grained as every 20 seconds checking.

21:43 It comes with status pages.

21:45 So if we had a Python bytes monitor set up with this, I could set up status.pythonbytes.fm

21:54 that people could go and see if the RSS feed is live.

21:57 Is the Docker container running?

21:58 Is X, Y, and Z, right?

22:00 So it has that for you.

22:01 And it'll also, one thing I really like, because I use Let's Encrypt, but the auto renewal

22:06 is a little bit janky.

22:08 Long story, I don't want to go into it, but it's a little bit janky.

22:10 And so it works, but it requires a little fiddling.

22:14 So having it will actually check SSL certificates to see if it'll expire.

22:18 So it'll say like, your certificate is good for 29 more days.

22:21 Maybe you want to get on that before it goes like, you know, something terrible.

22:25 So all of that, isn't that sweet?

22:28 It is cool.

22:29 Yeah, there's a bunch of sponsors and it's got this nice UI.

22:32 You can bump over to the status page.

22:35 It'll prepare you a little demo app and it runs for a certain amount of time.

22:40 So how long are certificates good for?

22:42 If you do Let's Encrypt, it's a year, I believe.

22:46 Okay.

22:47 So anyway, you can go over here and create this and actually go and add a little monitor

22:51 and pick all the different kinds.

22:52 And look at all these things.

22:54 You can monitor MongoDB and SQL Server, Postgres directly.

22:58 Yeah, it's really neat.

23:00 So I'm thinking of setting this up.

23:02 And if you want to play with it, just click on that little thing.

23:04 You can see here, Brian, I clicked on it.

23:06 Now it says I have nine minutes to 21 seconds before my app gets blown away.

23:09 But I can test it out, which is pretty cool.

23:11 Anyway, it will give us potentially a really nice way to sort of monitor and get notifications

23:20 about it.

23:21 I have that from other services, but don't like it.

23:23 I could set it up once a day on the free one and make sure that my website at least is

23:28 live for 10 minutes a day.

23:29 Yeah.

23:30 Yeah, if you don't mind reconfiguring it every time.

23:35 Yeah.

23:35 Okay.

23:36 Yeah, sure.

23:36 All right.

23:37 Pretty cool.

23:37 How about some extras?

23:38 The only extra I got was last week I talked about making a new pytest course.

23:45 I've been working on that and I'm on version three because I'm a perfectionist and want to

23:52 make sure that it's smooth and quick.

23:54 So I do hope to get that out sometime soon.

23:58 I was going to say maybe next week, but you know, I don't want to put too much pressure on

24:01 myself.

24:02 Yeah.

24:02 When I go, that's, that's very exciting.

24:05 I know people are looking forward to it.

24:06 I also had to basically put DaVinci Resolve down to come record the podcast.

24:11 So I was in the middle editing some videos.

24:13 I got coming on for a new course as well.

24:15 So very exciting stuff.

24:16 All right.

24:17 There's, there's a never ending dream of things to talk about, right?

24:20 Yeah.

24:21 All right.

24:21 I've got a couple.

24:22 Kenneth writes, talks, pointed out that, you know, requests and more fame talks

24:29 about this, move that Switzerland pulled Switzerland, Switzerland now requires all government

24:35 software to be open source.

24:37 That's cool.

24:37 Cool.

24:38 Yeah.

24:38 So what does that mean?

24:40 They, you gotta read it carefully.

24:41 It doesn't mean the government has to only use open source as in Linux and Firefox, but

24:47 the thing, the software that the government makes has to be open source of what this is.

24:51 So we bump over to omnivore.

24:53 You can see my notes.

24:54 Switzerland has taken a major step forward with its federal law on the use of electronic

24:59 means for the fulfillment of government tasks.

25:01 SIM bag is the acronym.

25:04 This groundbreaking legislation mandates releasing open source software of the federal government.

25:09 The law requires all public bodies to disclose the source code of software developed by or

25:15 for them unless 30 part third party rights or security concerns prevented.

25:19 So that's pretty neat.

25:20 There's actually, there was some pushback.

25:22 For example, one of the main areas this was around is the justice system.

25:26 This, was trying to get all the software that runs, basically runs the justice system,

25:34 the court system for Switzerland open source.

25:37 But guess what?

25:38 The proprietary legal software company, web law, wasn't happy.

25:42 Right?

25:43 Yeah.

25:44 No, they weren't.

25:44 But, after a decade of fighting, it came out.

25:47 And there's one other point to make.

25:49 In addition to mandating open source software, it also requires the release of non-personal,

25:54 non-security sensitive data as open data.

25:58 So it's like open software and open, open data as well.

26:03 So pretty cool.

26:04 Interesting.

26:04 We have stuff.

26:05 Yeah, it is.

26:06 We do have some stuff like that, like over at Talk Python.

26:08 What was it?

26:10 Elections, I think if I look for that.

26:12 Yeah.

26:12 Python at the U.S. Federal Elections Commission.

26:15 I talked to Laura Beaufort.

26:17 And I believe they are open sourcing their stuff as well.

26:21 A lot of things going on there.

26:22 Like, yeah, open source at the FEC, for example.

26:25 So we have some stuff in like spotty examples of that, but not as a overall statement.

26:30 So it's pretty interesting, right?

26:31 Yeah.

26:32 I'm curious to look at some of the stuff.

26:34 Like, um.

26:34 Yeah.

26:35 How clean is your code?

26:36 Like, yeah.

26:37 How many AWS keys will be in there?

26:42 We'll find out.

26:43 Thanks indirectly, Kenneth, for that.

26:45 one more.

26:46 Remember last week I talked about the PySimple GUI and it's switching to a commercial license,

26:52 which again, I'm not super against, but sort of the rug pull aspect of it.

26:57 Like, hey, it's open source for a long time.

26:58 And I'm going to take everybody's contributions and then, you know, change the license.

27:02 That sort of thing got some people's nerves up.

27:05 Well, um.

27:07 FFalcon31415 on Mastodon pointed out, hey, check out FreeSimple GUI, which I linked to in the show notes, which is an actively maintained fork of the last release of PySimple GUI with an open source license.

27:20 So if you were like, oh, I was going to use that, you still can.

27:24 Yeah.

27:24 Actually, it's got a really good, the read me on that has some really good to, like, has some good tutorial examples of, of how to write a simple GUI on it.

27:34 So, not only is it the open source free version, but it's, it's also some pretty good documentation on there.

27:40 Cool.

27:41 All right.

27:42 How about some jokes?

27:43 Yeah.

27:44 Joke, joke time.

27:45 Singular joke.

27:46 A singular joke.

27:46 So this one is kind of a meme with Will Smith and it doesn't really have that much to do with Will Smith.

27:52 I think it's just the attitude.

27:53 I like Will Smith.

27:54 Anyway, it says, just because I know Java doesn't mean I know JavaScript.

27:58 I mean, I do, but not because I know Java.

28:01 That's good, right?

28:03 Yeah.

28:04 Yeah.

28:04 Yeah.

28:04 I was just talking, talking to, whenever you talk to kids trying to learn like software, it is, it's still confusing to people.

28:12 I mean, like, it's not confusing to us because we've been around it.

28:15 We knew that the history, but it seems weird now to tell people, yeah, the JavaScript that everybody uses, it was named that because Java was popular at the time.

28:25 so anyway, are you muted?

28:29 I was sorry.

28:30 fun episode as always, Brian.

28:32 Yeah.

28:33 And yeah, thanks, man.

28:34 Thanks for being here.

Back to show page