Transcript #338: Scripting iOS with Python
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:06 This is episode 338, recorded May 30th, 2023.
00:12 I'm Michael Kennedy.
00:13 And I am Brian Okken.
00:14 And this episode is brought to you by us, our courses and books and things like that.
00:19 Talk to you more about that later.
00:20 Also, connect with us on Mastodon or all over on Fauceton, at mkennedy, at Brian Okken, and at Python Bytes.
00:28 And we love it when people join the live show.
00:30 If you want to be part of that, you can see the next scheduled upcoming one at pythonbytes.fm/live
00:36 and click that notify me and YouTube.
00:38 And guess what?
00:39 It'll notify you when it's live.
00:40 So that's the front matter, Brian.
00:43 I think we should start it off with some basics.
00:45 What do you think?
00:46 Yeah, let's go back to the basics.
00:47 Basics of Python packaging.
00:49 So actually, this is something near and dear to what I've been paying a lot of attention to lately is packaging.
00:57 And just how it's changed.
00:59 And it's kind of in the most people have switched over to pyproject.toml now.
01:03 And that's really what this is about.
01:06 So when you're packaging, especially a pure Python package.
01:10 Well, one of the things I like about this is it's not just for pure Python.
01:14 But that's the easy part.
01:15 If we're using pure Python packaging, you're probably using a pyproject.toml now.
01:20 And there has been several write-ups of it.
01:24 But some of them are kind of tool-centric.
01:27 So I like about this write-up from JQui.
01:30 Or JQui?
01:31 Not sure.
01:32 That talks about just sort of the easy, a fairly standard setup.
01:38 So it does talk about the peps in this article.
01:43 But you don't really need to know much about that.
01:45 You can just kind of skip to how do I do it.
01:48 So using the peps and using pyproject.toml, you do have to specify what your build backend is.
01:58 So in the top example of this article, it talks about using a flit core.
02:04 And that's one I've used a lot of that.
02:07 But then what else do you put in there?
02:10 So within the rest of the pyproject.toml is mostly metadata.
02:15 You can have other stuff, too, like black and everything.
02:18 But for your project building, the project metadata, there's not a lot that goes in it.
02:23 I mean, it looks like a lot when you just glance.
02:25 But it's really, you know, it's your name for the name of the project, the version, description of it.
02:30 Your author, I will point out that this is not minimal because it includes the email.
02:36 You don't have to include the email.
02:37 If you don't want to, you can just put the name.
02:39 And where your license and readme and classifiers are.
02:42 One of the things I want to highlight is make sure you have the license.
02:47 At the very least, have your license classifier listed because that's how the license shows up on the PyPI.
02:56 So when PyPI is looking at projects, it looks at the classifier.
02:59 And then try to throw in which Python is required and then any of your dependencies that you're using.
03:05 And then some links.
03:07 I mean, it's really, when you just talk about it as a stream of conscious, it seems like a lot, but it's really not that much.
03:13 And you're pretty much done.
03:15 You can do a build now with this.
03:17 This is-
03:18 I think, Brian, before you move on from that, that I just noticed that I really like.
03:22 If you do a setup.py, what you've got to put is the readme and details and the descriptions and all those kinds of things, at least a long description.
03:33 You've got to actually load the file and inject the content to the file.
03:38 And here you just put the file names for the license and for the readme, and it'll just pull those in, right?
03:43 That's cool.
03:43 It is one of the things I've harassed people about before is it's weird that the readme and license are specified completely different.
03:51 So the license has this, like, what, curly braces and then file equals license.
03:57 Dictionary-ish.
03:58 Yeah, it's a dictionary.
03:59 Whereas the readme is just a text string with the name of the readme.
04:03 It's odd.
04:05 I think that maybe we could have it so the license could just be a string with the license file on it also.
04:11 But anyway, there's probably reasons, I'm sure.
04:15 The thing that I also want to point out is you can put as many URLs as you want in here.
04:20 You can have, like, this example as homepage and bug tracker.
04:22 A lot of people just list home that lists the GitHub link.
04:27 But you can have your documentation and other stuff.
04:30 And all these show up in PyPI also if you're published to PyPI.
04:34 And if you don't want to publish to PyPI, one extra is to, that Kim reminds us of, is another classifier I learned about, is private do not upload, which tells PyPI to not upload it.
04:49 So this is all great.
04:51 And a lot of this also, if you want to watch it in video form, is covered in the sharing is carrying video.
04:58 It's a talk I gave in PyCascades.
05:01 The video is now online.
05:02 We'll put a link in the show notes.
05:05 But this document or this article goes through some of the different, make sure that you understand the build step of Python-M build is one way to do it.
05:15 There's other ways.
05:15 But then it talks about some of the discussion around why pyproduct.toml is there instead of setup.py.
05:24 I think we're all convinced, hopefully.
05:26 But then also some choices of backends.
05:28 So this article used Flit Core to start with.
05:31 But there's also Hatchling and setup tools and Poetry Core.
05:36 So why would you choose different ones?
05:39 And one of the, and it's because there's extra features.
05:42 Some of them allow extra tags to go in there.
05:46 And the example they're using, and that's one of the reasons why I use Hatch a lot, is you can have include and exclude things to say, you know, the normal stuff that you'd probably include in a source distribution.
06:00 Also add the tests, for instance, or something else.
06:04 The test is one that, like, distributors, redistributors, like Linux distros, like to have your tests in the source distribution.
06:12 So throwing those in there is a good idea.
06:16 I'm not sure why they're in there by default.
06:18 But anyway, it's a cool discussion.
06:21 One of the things I also love is it talks about what happens if you're not just Python.
06:27 What if you have to include C?
06:28 Well, it doesn't really discuss it too much.
06:31 It just points you in the right direction.
06:32 So if you have C or C++ extension, there's a Psykit build core that you can use.
06:38 I haven't tried any of these.
06:39 If you're into Mason, you can use Mason Python.
06:43 And then also setup tool supports it.
06:46 So there's a direction for that sort of stuff.
06:49 Yeah.
06:49 Straightforward.
06:51 Back to the basics.
06:52 I like it.
06:52 Yeah.
06:52 Definitely demystify some of that.
06:55 Henry points out in the audience, the license key will likely change via PEP 649.
07:01 And currently, Flit just ignores whatever you put there.
07:04 The Trove classifiers are the canonical location for the license.
07:08 So just FYI.
07:10 Thanks for that, Henry.
07:11 He always has such excellent extra information, background information.
07:15 And we're so lucky to have some smart people show up on the chat.
07:18 So thank you.
07:19 Yes, absolutely.
07:20 All right.
07:22 Let's talk vectors.
07:23 So I want to talk about VEX.
07:26 And this project comes to us from Olly, who open sourced this, Olly Rice.
07:31 Now, before I actually tell you about what VEX is and what it does, let's take a step back
07:36 and talk about the PG vector extension for Postgres, the database.
07:41 So this is an open source because VEX has to like build on top of this.
07:46 So this is an open source vector similarity search extension for Postgres.
07:52 So you can do things like given a bunch of points in different dimensions.
07:58 This could be XY, could be XYZ, could be, you know, temperature and time.
08:03 I don't know.
08:04 Right.
08:04 It could be whatever you come up with.
08:06 It'll give you the exact and approximate nearest neighbors, allow you to query that, like
08:11 given some measurement, what other measurement is closest or give me the five measurements
08:16 or positions that are closest to this.
08:18 Gives you L2 distance.
08:20 It'll do the inner product and cosine distance.
08:22 So different metrics, if that makes sense.
08:25 And any language with a Postgres client can speak to it.
08:29 It's pretty cool, right?
08:30 Yeah.
08:30 Yeah.
08:31 So let me see if I can find some examples.
08:33 So I can say, get me the nearest neighbor by L2 distance.
08:38 And it says the way you would do that directly is you say, select star from items, order by embedding, whatever the value is, is closest to, in this case, the vector value 3, 1, 2.
08:51 And then limit 5, just like you do in databases.
08:54 You know, give me the first 5.
08:55 So order by closest to farthest.
08:57 And then just give me 5.
08:58 That'll give you the 5 nearest, right?
09:00 You could do things like sort by distance.
09:03 You can find exact matches.
09:04 And you can also do other database things.
09:06 Let's see.
09:07 Like, give me where the ID is or is not equal to some value, and so on.
09:12 All right.
09:13 So pretty neat.
09:14 Now, that's the pg vector extension just for Postgres.
09:19 So you're speaking to it in a special flavor of SQL, sort of.
09:24 In Python, you can talk to this using this thing called VEX, okay?
09:29 So with VEX, you just pip install it, and then you insert a bunch of vectors, and then you can write queries that are more API-based, I guess, not just direct SQL statements.
09:41 So you give it the vector that you want to query against, and then, you know, like how many you want back.
09:47 If there's a filter to say, I only want the ones for a certain year, right, filter it down, and then do that query based on distance or whatever.
09:55 So pretty cool.
09:56 If people are out there doing that kind of work, I think they might find this pretty helpful.
10:01 Yeah.
10:02 Very.
10:03 Oops.
10:04 It's not something that I have exact direct use for these days, but, you know, a lot of scientific or geospatial type of things seems relevant.
10:13 Yeah.
10:14 I've been spending more and more time in SQL queries lately, so anything to help with that is good.
10:19 Yeah, absolutely.
10:20 Now, one final thing.
10:21 It says in here, it says you've got to have, I can't remember which one, talked about getting Postgres.
10:27 One of them, yeah, this one says, if you don't have a Postgres database, see some hosting options.
10:31 And if you're on Mac, I just want to throw out there really quick, postgresapp.com.
10:36 All you do for this one is, it's super awesome, you download it, you unzip it or un-DMG, whatever its packaging format is, and it's just a postgres.app.
10:45 You double-click it, Postgres is running.
10:47 You close it, Postgres is not running.
10:48 It auto-updates itself.
10:50 Yeah.
10:50 So pretty sweet.
10:52 And it's open source, too.
10:53 Cool.
10:54 Neat.
10:54 Yeah.
10:55 Yeah, very neat.
10:56 I'll be needing that very soon.
10:57 Yeah.
10:58 So.
10:58 Yeah, cool.
11:00 Check it out.
11:00 Yeah, that one's, that's pretty nice.
11:01 Okay.
11:02 Now, before we move on, Brian, brought to you by us, this episode is.
11:06 So I wanted to remind people to, you know, please check out the brand new Talk Python training apps.
11:11 They're rebuilt for iOS and Android.
11:14 I really think it's a cool experience for people to take it.
11:17 It has offline playback and obviously way better on the mobile and tablet type of things.
11:22 And it comes with six free courses that you can just tap on and join the free courses plus anything you might have gotten.
11:28 So check that out.
11:30 And I want to shout out your book or what do you want to shout out today?
11:33 Yeah.
11:33 Well, there's, there's, time is running out, but the, yeah, let's, the book is still on a promo.
11:40 So Python testing with pytest, there is, what is the promo?
11:45 It is spring 2023.
11:48 All caps, all one word.
11:50 And you get 50% off.
11:52 And it's just for like today and tomorrow.
11:54 I think it runs out at the end of May.
11:56 But anytime you want it, there is a 25, that's 50% off.
12:01 But if you want to sign up and get to their email list, you can get 50%, 25% off normally.
12:08 So anyway, that's a good thing.
12:11 Excellent.
12:11 Also really quick follow up.
12:14 Henry points out that it was actually PEP 639, not 649.
12:18 Not a typo there.
12:19 Yeah.
12:20 So 639 is improved license clarity with better package metadata.
12:24 It's in draft, but hopefully there'll be, it's in draft really?
12:29 Anyway, some changes to how you specify the license, which would be good.
12:35 All right.
12:37 Let's talk about plagues next.
12:38 Plagues?
12:40 Like, you know, locusts and grasshoppers?
12:43 Yes, exactly.
12:44 Nice.
12:45 No, I like these kind of plagues.
12:47 These are awesome tools.
12:48 So I've used locusts before.
12:51 I think you've used locusts for-
12:53 I love locusts.
12:54 Yeah.
12:54 For load testing.
12:55 So good.
12:55 So there's a company, AlterX, maybe?
13:01 Anyway, they've introduced grasshoppers.
13:05 So it's a locust grasshopper.
13:07 It's an open source Python library for load testing, but it's built on locusts.
13:12 So what's the difference?
13:15 So we're linking to an article that discusses the introduction and discusses why they love locusts and everything, which is great.
13:23 But they have a check, like grasshopper, what does it add?
13:28 Well, it adds a whole bunch of really cool features that you might need if you're load testing and developing a package and keeping track of your load testing over time.
13:36 So it has these extra checks in here.
13:39 And checks, if I get this right, are things like special validation functions, Boolean functions that can run.
13:48 And you can tell different checks whether or not they're passing or failing over time, which is based on your-
13:54 I see.
13:54 The document had this text in it to make sure it wasn't insane in the response or something.
13:59 Yeah, actually, I'm not quite sure.
14:01 So I'd have to dig into that more.
14:03 But one of the things I really like is these custom trends, which custom trends and timing thresholds and integration with pytest.
14:13 Of course, that's awesome.
14:14 Time series database integration and reporting.
14:17 This all sounds great.
14:18 One of the things I really love that's talked about in the readme a little bit more is this idea of, like, tagging your test suite.
14:26 So tag-based suites.
14:28 So you can see your load test results based on different versions.
14:34 So if you're tagging with using version tagging on your repo, you can see what the progression is and how well your application is doing based on different load requirements.
14:45 And you can have thresholds.
14:46 Like, with this load, you need to have, like, 90% of the speeds of things.
14:51 The other thing is some speed thresholds.
14:54 Like, you can have multiple timing little functions that have multiple time, multiple HTTP requests.
15:05 So an action that really is like a user action often is several interactions.
15:11 Like, how fast can somebody log in or something like that?
15:14 Or go through the checkout.
15:15 That's going to be a multiple sequence thing.
15:18 You can time that under load and under stress.
15:21 And that's a pretty cool addition.
15:23 Or even to load this page, we're going to, it's probably some complicated JavaScript front end.
15:29 So it's going to call this API and that API and that API just to load this HTML page.
15:34 Yeah, sure.
15:34 So you kind of want to treat that as, like, the page is loaded when these seven API calls finish, right?
15:40 Something like that.
15:41 Yeah.
15:41 Because they're not using HTTPX like they should or HTMX like they should.
15:45 Also, a nice shout out to a sponsor there, InfluxDB.
15:50 So pythonbyes.fm slash InfluxDB.
15:52 This is the time series database that it integrates into.
15:55 When I looked at this, Brian, I'm like, yeah, but Locus is pretty awesome.
15:59 Why would somebody go create another one of these for the Python world when Locus exists?
16:04 And then I read it.
16:05 It's like, oh, we've extended Locus.
16:07 Oh, and here's why.
16:08 And they give some pretty good reasons.
16:09 Another trend that would be cool.
16:11 I don't know if you can actually measure it here, but it talks about custom trends is one of the things you can track.
16:17 Things like CPU load and memory load on the server would be really interesting.
16:23 Or, you know, maybe CPU load on the database server while we're hammering the web server.
16:29 If you could pull those kinds of things in, that would be really cool.
16:33 Yeah, maybe you can.
16:34 Yeah, maybe.
16:34 I kind of get the sense that it might be possible, but let's see.
16:38 Not sure.
16:39 But very cool.
16:42 Yeah, this looks nice.
16:43 It's definitely worth checking out.
16:44 Some of the check functions, you might be able to, like, abuse that for that purposes, too.
16:49 While your load tester is running, check CPU levels and stuff like that.
16:56 I don't know.
16:56 Yeah, exactly.
16:57 So anyway, neat project.
17:00 Yeah, that's a good project.
17:01 So Grasshopper, right?
17:03 Yeah.
17:04 Oh, one of the things that they talk about in the...
17:08 I wasn't clear on it because I went and looked at PyPI and looked for Grasshopper, and I found the wrong one.
17:14 So it's locust-grasshopper.
17:16 So that's the GitHub repos under that, and that's what you pip install also is locust-grasshopper.
17:22 So just to be clear.
17:23 Got it.
17:24 I wonder if it's like a superset, probably.
17:28 Yeah.
17:29 So if I have already written a bunch of locust tests, could I run them, or how easy is it to...
17:34 I don't know, but I imagine it's not that bad to convert.
17:38 Yeah.
17:38 It looks like the code is super similar.
17:41 So worst case, you maybe change the base class, but possibly the base class is derived from the locust base class that you use for your test cases or test suites.
17:50 Yeah.
17:51 Anyway, I haven't played with it yet, but it looks cool.
17:53 The readme's got tons of information too.
17:55 Good job on loading up the readme with lots of examples.
17:58 Indeed.
18:01 And before we move on, Kim says, it could possibly hook into telemetry tooling like Prometheus, which would enable metrics from other servers and stuff like that.
18:09 Yeah, that's kind of what I was talking about, but not with actually concrete ways of doing it like Prometheus.
18:14 So cool.
18:15 Neat.
18:15 Yeah.
18:16 And I want to talk to you about something that is near and dear to this podcast.
18:23 We talk about a lot of topics, right, Brian?
18:26 Yeah.
18:27 And if you go over to Python Bytes and you pick a particular episode and you scroll through here, you can see it is chock full of links.
18:37 So one of the things you might want to do, you might want to say, oh, I'm listening to this.
18:42 I want to remember not all of them, but just three things that I can come back to.
18:47 And if you're on your iThing, your iPhone, iPad, et cetera, or even on your Mac, technically, if you've got an Apple Silicon Mac, you can use this thing called MemoCast.
18:59 So MemoCast was created by Daniel Engvall.
19:05 It's interesting on its own, but it's also interesting in a way to kind of script iOS with Python, which I hadn't really thought about doing.
19:13 So first of all, let me tell you about MemoCast and then you can think how this might apply to you.
19:17 So this is a small iOS app that allows you to add links heard about in a podcast as a reminder.
19:23 So you can check them off your reminder list, you know, the at reminder app when you're done with them.
19:28 So check this out.
19:30 Imagine this is reading the website.
19:32 Imagine you just as often as I do listen to a podcast such as Python Bytes, a fantastic one.
19:40 Thank you.
19:40 Thank you.
19:41 Using Google Podcasts, walk around, you know, you're doing it while you're out and maybe busy, like mowing the lawn or something.
19:48 Right.
19:48 And then there's some thing talked about you wish you had more time to check out.
19:52 Thankfully, the reference in the show notes, but you'd have to look it up and go through it and copy paste and all that.
19:58 So there's a little video here.
20:01 Notice this.
20:02 Nice.
20:03 On this page.
20:03 And it shows all you got to do is say share.
20:06 Go to the podcast player.
20:07 Say share.
20:08 Click MemoCast.
20:09 And it gives it a second.
20:11 Then it has a list of all the links that it's discovered in there.
20:14 Isn't that cool, Brian?
20:15 That is neat.
20:16 Yeah.
20:16 I can't really zoom that without the.
20:18 I can't really zoom it without the responsive design only making it smaller.
20:22 But so how is this possible?
20:25 The thing you share it to is you don't share it directly to MemoCast.
20:28 You say run in Pythonista.
20:30 And so this is a Python script that that Daniel wrote that basically you run it through Pythonista Python 10 on iOS.
20:40 It does a guessing request or something called over to our website and parses out all the links and then turns that into a UI that you can interact with.
20:49 Cool, right?
20:49 That's all done on the phone then?
20:51 Yeah.
20:51 That's pretty cool.
20:52 Yeah.
20:52 It's pretty cool.
20:54 And so basically this is an example supports Python by Stock, Python, I mean, real Python as the three supportive podcasts.
21:01 But you can integrate new ones if you wish.
21:03 And you install it once you have Pythonista, which I think costs $10 US one time.
21:09 But then you can install it scanning the QR code here with Pythonista and that will download it.
21:14 Then you can just turn it into a thing that you can run.
21:16 It also talks about how you add new podcasts if you want to add a different one.
21:20 But that's somewhat interesting.
21:23 I think what's more interesting is he took this Python code and the code is right here to build kind of a scriptable GUI for iOS, which I think is pretty cool.
21:33 Yeah, that is nice.
21:34 Cool.
21:35 So talked about like I did try to do this with Kivy and other stuff.
21:38 But let me tell you, the build chain and code signing and all of that is like a nightmare.
21:43 And so here you just write a Python script and just run it inside of this app that already exists.
21:48 And final bonus before I call all the time on this one.
21:52 Daniel also discovered that if you're on a Mac with a Apple Silicon, then you can run Pythonista as an iOS app within macOS.
22:02 So you go to the App Store, search for it on Mac and it doesn't come up.
22:06 So then you click, say, show me tablet, you know, iPad apps, and then it'll come up.
22:10 And then it integrates with your favorite IDE, such as PyCharm, and you can run it.
22:15 So you can develop these little things on your Mac with a proper keyboard and everything.
22:20 And then just deploy it to Pythonista on iOS.
22:24 Yeah, that's pretty cool.
22:25 So yeah, people can check that out, MemoCast.
22:28 It's kind of cool that it's about our podcast in this way, but it's also more cool that it just kind of shows you how to take Python and leverage Pythonista a little bit more than maybe I realized you could, like an OS integration level.
22:40 Yeah, I didn't know you could do that.
22:41 That's cool.
22:42 I did not either.
22:43 Nice.
22:45 And I guess before we jump out of here as well, Kim points out on Android, which I have some but not tons of experience with, you can run Python code with QPython should someone want to emulate this for Android.
22:57 Thanks, Kim.
22:57 Cool.
22:58 All right.
22:59 Is that all of our topics, Brian?
23:00 That is all of our main topics.
23:02 Yes.
23:02 Yes.
23:03 Of course, we always have extras.
23:04 Yeah.
23:05 I'm a joke.
23:05 Any extras for you, though?
23:07 Yeah.
23:08 I can kick this off.
23:09 So just a few.
23:13 A shout out from, oh, who wrote this?
23:15 I'm not sure.
23:16 Hugo.
23:17 Hugo Van Kimenad.
23:19 Wrote, help test Python 3.12 beta.
23:23 So 3.12 is in beta.
23:25 If you are a package maintainer or just your own application, you may as well start testing to make sure that you don't have any surprises.
23:32 So this article does talk through basically how to hook up your GitHub actions so that you're testing 3.12 also.
23:42 And then whether it's the official Ubuntu latest or the Dead Snakes version, a couple ways to do it.
23:49 And then even if you're using Travis CI still, bye.
23:52 Anyway, you can do that with that as well.
23:56 So that's the first.
23:58 Secondly, I wanted to say that at the Python Software Foundation blog, there is a whole bunch of new articles.
24:06 I basically wrote up, there's articles writing up all the different things that happened at the Python Language Summit.
24:12 I haven't gone through these.
24:14 They're just available.
24:15 Wanted to shout that out.
24:16 It's some interesting stuff, though.
24:18 There is.
24:18 I just interviewed Brett Cannon over on Talk Python about this.
24:22 He gave us the walkthrough of all the presentations and thoughts at the Language Summit.
24:28 Okay.
24:29 And then from the news from the weird, I don't have much information about this other than on the Python Package Index blog.
24:36 They say, hey, PyPI was subpoenaed.
24:39 And, you know, this thing happened.
24:41 And we complied and talked to lawyers.
24:43 And it's weird.
24:44 But, you know, it's just odd.
24:46 Yeah.
24:47 So how about you?
24:48 Any extras?
24:49 Yeah.
24:50 I wonder if this has to do with some of the malware, crypto jacking.
24:52 Maybe.
24:53 Stuff that was uploaded to it.
24:55 And they're like, all right, we're going to try to track down some of these people.
24:57 There are certain places that are not allowed to say whether they received a request.
25:03 And I think this is not a subpoena.
25:04 This is more of a, what is it, FASA?
25:07 Like the more international crime investigation laws.
25:11 So we'll have a subpoena canaries.
25:14 It'll be like the canary will be here unless we are subpoenaed.
25:18 Then the canary is gone.
25:19 We won't say anything.
25:20 But we'll just, this bird won't be on the page or something anymore.
25:23 So you can kind of know.
25:24 But, yeah, it's kind of cool.
25:26 They're being transparent about that.
25:28 Yeah.
25:28 One of the things that was interesting is that they got asked for addresses, including mailing and residential addresses.
25:36 But they don't collect that.
25:37 They just, I mean, that information isn't saved.
25:41 So it's not there.
25:42 Yeah.
25:42 I'm sure it's a form.
25:43 And like, we would like this information.
25:45 Well, we don't have that.
25:46 So we'll give you what we got.
25:47 Yeah.
25:48 Okay.
25:49 Nice.
25:49 All right.
25:50 I got a couple of real quick ones here.
25:51 Not Python.
25:53 One, I wrote something called, you can ignore this post.
25:56 Trying to get a lot of attention, of course.
25:58 What it actually was is I just wrote about the github.com/github slash git ignore repo.
26:05 Which has all, like when you go to github and you say create a new project and it says, do you want an ignore file?
26:12 And it gives you a list.
26:13 These are all the ignore files for every language supported there, including Python, which is in here somewhere right there.
26:20 And so you can actually see what they all are.
26:23 You could even do a PR.
26:25 Like we really need to start ignoring.
26:27 You know, if there's a new file format, that's like a build output of some new pyproject.tominal tooling.
26:32 And it starts to, you know, needs to be ignored.
26:34 You could say do a PR against this.
26:36 So every repo on GitHub starts to adopt it.
26:39 But also if you're doing, say, Python and front end stuff, you could go look for Node.
26:45 And you could select one and then copy some stuff out of another to kind of create a combined one.
26:51 Right.
26:51 So you're not like, well, is it Node or is it Python?
26:53 I really want to ignore for.
26:54 So anyway, that article is just sort of about that.
26:59 Really short.
26:59 People can check that out.
27:00 I use that all the time because I'm also on GitLab and GitLab doesn't fill those out for you.
27:07 Oh, yeah.
27:08 I hadn't really thought about it, but you could nab it for other purposes as well, right?
27:11 Yeah.
27:11 Yep.
27:12 And then someone on Masset, I'll point out, you can do nox Python ignore.
27:16 And I think it'll generate that file for you and uses that as the backend.
27:20 I think.
27:21 I think so.
27:22 Some of the nox and some incantation will generate an ignore file for you.
27:26 And if we have that wrong, somebody will correct us.
27:28 They sure will.
27:29 And we appreciate it.
27:30 And speaking of incantations, are you ready for the joke?
27:33 Yes.
27:33 Okay.
27:34 So here's the joke for developers.
27:37 It says, careful where you might end up summoning a demon.
27:39 And it has two categories, what you do in programming and what you do in demon summoning.
27:45 So first one is you must know a language unspoken by mankind.
27:49 Programming.
27:50 Check.
27:51 Demon summoning.
27:52 Check.
27:53 Requires that you be exact or suffer dire consequences.
27:57 Programming.
27:58 Check.
27:58 Demon summoning.
27:59 Check.
28:00 Involves much cursing, swearing of oaths, and pleading with a higher power.
28:05 Programming.
28:06 Check.
28:06 Demon summoning.
28:08 Check.
28:08 Another one is not understanding the true power you wield or the consequences of your actions.
28:13 Programming.
28:14 Check.
28:14 Demon summoning.
28:15 Check.
28:16 The only differentiation, which I think is debatable, is candles.
28:20 Do you use candles to accomplish this job?
28:23 Programming?
28:23 No.
28:24 Demon summoning?
28:25 Yes.
28:25 Yes.
28:25 And if you look over on Reddit.
28:27 The comments are pretty glorious.
28:29 That's funny.
28:31 Let me see if I'm finding these good ones just here.
28:34 Someone has said something like, I've been trying for hours to get this demon to run, and I just can't get it to work.
28:42 That's what I'm writing on.
28:44 Well, we're trying.
28:46 Damon, not demon, right?
28:47 Of course.
28:48 Damon.
28:48 And then someone else points out, you know, there actually is a candle app platform, which sounds truly demonic to me.
28:56 So let me describe.
28:57 This is like a real thing.
28:58 This is not a joke.
28:59 Candlescript.org.
29:00 Somebody created this.
29:01 Let me lay out the beautiful technologies that Candlescript combines.
29:05 Are you ready to use the new open source platform that unifies core features of XSLT, XQuery, XML schema, RelaxNG, BNF, and XQuery update, and more into a single language called Candle?
29:19 No, please, no.
29:20 XSLT, no.
29:22 Yeah, that sounds pretty demonic already.
29:24 So I'm a little suspicious of that one.
29:27 Yeah, and I think that actual demon summoning, they're probably worried about climate change and probably switching to low carbon lighting.
29:37 Yes, yes.
29:37 So probably LEDs now instead of actual candles.
29:40 Yep, LEDs.
29:41 Got to be careful about home automation.
29:43 You might complete all the checkboxes.
29:47 Yeah, I think sometimes you have to execute a child.
29:50 That's funny.
29:51 Child processes.
29:52 Yeah, they both execute children, right?
29:54 I mean, that's a pretty rough one.
29:56 Kim, I believe, maybe has done enough XSLT as I have to know that it should never, ever be done.
30:02 And says, Candlescript has just triggered my PTSD.
30:04 Yeah, funny.
30:07 Oh, the battle XML days.
30:09 Well, that's it, Brian.
30:11 Great show as always.
30:13 Thank you for being here.
30:13 Well, thank you.
30:14 Thanks to you, everyone, for listening and those of you who joined live.