Latest / Talk Python To Me / #395: Tools for README.md Creation and Maintenance
Transcript
- 0:00If you maintain projects on places like GitHub, you know that having a classy readme is important
- 0:04and that maintaining a changelog can be helpful for you and consumers of your project.
- 0:09It can also be a pain. That's why I'm excited to welcome Ned Batchelder to the show.
- 0:15He has a lot of tools to help here, as well as some opinions we're looking forward to hearing.
- 0:20We cover his tools and a bunch of others he and I found along the way.
- 0:24This is Talk Python To Me, episode 395, recorded Monday, December 5th, 2022.
- 0:30Welcome to Talk Python To Me, a weekly podcast on Python.
- 0:46This is your host, Michael Kennedy.
- 0:48Follow me on Mastodon, where I'm @mkennedy and follow the podcast using @talkpython.
- 0:53Both on fosstodon.org.
- 0:56Be careful with impersonating accounts on other instances.
- 0:58There are many.
- 0:59Keep up with the show and listen to over seven years of past episodes at talkpython.fm.
- 1:04We've started streaming most of our episodes live on YouTube.
- 1:08Subscribe to our YouTube channel over at talkpython.fm/youtube
- 1:12to get notified about upcoming shows and be part of that episode.
- 1:16This episode is brought to you by the Local Maximum Podcast over at LocalMaxRadio.com.
- 1:22And it's brought to you by Sentry.
- 1:24Don't let those errors go unnoticed.
- 1:26Use Sentry.
- 1:27Get started at talkpython.fm/sentry.
- 1:30Transcripts for this episode are sponsored by Assembly AI,
- 1:34the API platform for state-of-the-art AI models
- 1:38that automatically transcribe and understand audio data at a large scale.
- 1:43To learn more, visit talkpython.fm/assemblyai.
- 1:47Ned, welcome back to Talk Python To Me.
- 1:49Hey, thanks for having me.
- 1:51This is always fun.
- 1:52Yeah.
- 1:52And it's always a good time to have you on the show.
- 1:54Got such interesting things to talk about.
- 1:57I think we've previously spoken about coverage.py, beginners and experts,
- 2:02and several other things probably if I go back through the old search engine.
- 2:07I've had many opinions about many things.
- 2:09Perfect.
- 2:09Well, we're looking forward to hearing your opinions on...
- 2:14The title might suggest on the ReadMe,
- 2:16but I think maybe we've got to expand it to a couple other markdown files,
- 2:19maybe on a project as well to get the holistic picture.
- 2:22But basically, we're going to talk about tools and ideas and techniques
- 2:27for making your project more accessible,
- 2:30feeling more polished and welcoming to people
- 2:34when they land on your project on GitHub or GitLab or wherever.
- 2:37So that'll be fun.
- 2:39Yeah.
- 2:39It's an interesting topic too, because as a project maintainer,
- 2:42there's all this project level automation that goes on,
- 2:45and there are all these fascinating tools to get parts of it done
- 2:48in different ways and competing philosophies.
- 2:50Yeah, absolutely.
- 2:50I know some of them because I fork different projects,
- 2:54and then I'll sync it or something,
- 2:56and it'll say that my automation couldn't run.
- 2:58I'm like, well, that wasn't my automation, but that's okay.
- 2:59It's fine if it runs or it doesn't run.
- 3:02I'm just here to follow.
- 3:03But before we get into all that,
- 3:05maybe let's just do a quick recap for those of you,
- 3:08those listeners out there who don't know you.
- 3:10Maybe what's the elevator pitch,
- 3:11and what have you been up to the last six months or so?
- 3:13So I've been working in the Python world for a very long time.
- 3:17I don't know, 20 years now or something crazy like that.
- 3:20But my day job is at edX, which is part of 2U now,
- 3:24an education tech company.
- 3:27And I do open source logistics there.
- 3:30edX.org runs an open source software that we've created called Open edX,
- 3:34which also runs a couple of thousand other sites.
- 3:36And my main day job is making sure that that collaboration continues well
- 3:42between the people inside 2U and the people out in the community.
- 3:46So it's an interesting dynamic of open source.
- 3:49But on the side, I also maintain a number of projects,
- 3:52including coverage.py, which has been going for 18 years now
- 3:55and is used by a lot of people.
- 3:57So that's a whole other kind of open source that I do in the Python world.
- 4:01Yeah.
- 4:02That's a really rewarding job, right?
- 4:03It's not optimizing ad clicks or other things like that, right?
- 4:07It's helping people.
- 4:08Right.
- 4:09It's a noble goal.
- 4:10We're educating the world and we're giving away software to help other people educate the world.
- 4:14Yeah.
- 4:14It's really good.
- 4:15Yeah.
- 4:15Fantastic.
- 4:16And, you know, and speaking of open source projects,
- 4:19I think we might touch on a couple more of yours as we get going.
- 4:23Yeah.
- 4:24They tend to multiply somehow.
- 4:26I haven't learned my lesson yet.
- 4:28Yeah.
- 4:28Just got these puppies running everywhere.
- 4:30I don't know what's going on.
- 4:31That's right.
- 4:31Exactly.
- 4:31They breed.
- 4:32I don't know when it happens.
- 4:33They breed.
- 4:33Exactly.
- 4:34All right.
- 4:35Well, let's start off with one.
- 4:36I don't know if you're familiar with this.
- 4:38Readme.so.
- 4:40I don't know what the SO stands for, but I think of this as readme as a service.
- 4:44Interesting.
- 4:45Yeah.
- 4:45Or Stack Overflow.
- 4:46No, .so isn't Stack Overflow.
- 4:48I don't know.
- 4:49I don't know why they chose .so.
- 4:50I don't either.
- 4:51The woman who maintains it works at GitHub.
- 4:53I'm pretty sure.
- 4:53We're going to find out when I get to the bottom.
- 4:55But I don't think it has an association with Stack Overflow.
- 4:58Right.
- 4:59And usually two letters are country codes.
- 5:02I don't know what SO stands for.
- 5:03I don't either.
- 5:04As a country.
- 5:04Sorry, .so, folks.
- 5:06But this place, readme.so, it says, this is the easiest way to create a readme.
- 5:12Now, before we get into the details of this, maybe we should just talk about, you know,
- 5:16let me pull up coverage.
- 5:17Coverage.py on GitHub.
- 5:20Not to put you on the spot or anything.
- 5:22I don't mean to do that.
- 5:23But let's just talk about what kind of stuff should you put on your project.
- 5:26And like I said, we're going to have to expand a little bit.
- 5:29Like, for example, there's tags and there's a link and there's should you have releases
- 5:34shown and other stuff that you might kind of think of what you get when you land on a project.
- 5:39So maybe start there with kind of how you think about what should be here.
- 5:43Then we'll talk about some of the tools.
- 5:45The first thing your readme should do is say what the project is.
- 5:48And that's sometimes difficult for people to wrap their head around.
- 5:52And it really gets at one of the fundamental problems of writing almost anything,
- 5:55which is you have to decide who you're writing for.
- 5:58And it's hard to know who might show up on your front page of your GitHub project.
- 6:02And you don't know what they already know.
- 6:04And so you don't know what you have to tell them.
- 6:06So it's a little bit tricky to get all that information out there.
- 6:09But for instance, under about here, it says the code coverage tool for Python,
- 6:13which was the sort of pithiest, shortest description I could come up with to say,
- 6:18what is coverage.py?
- 6:19And I think that covers it pretty well.
- 6:21I don't try to explain what code coverage is,
- 6:23because that's a topic you can Google for if you don't know what it is.
- 6:27But so that covers it.
- 6:29If you don't know what it is and you don't know you want it,
- 6:30you might not care about this.
- 6:32So that's not your audience, right?
- 6:33Right.
- 6:34Why are you here if you don't?
- 6:35Right.
- 6:36Exactly.
- 6:36But go ahead and start on your way out the door, please.
- 6:38Thank you very much.
- 6:39Right.
- 6:40Exactly.
- 6:41Yeah.
- 6:41By the way, I could use a bunch more stars on coverage.py,
- 6:44because it's not a JavaScript project and it didn't start on GitHub.
- 6:47So it's a little low on stars.
- 6:48Yeah.
- 6:49But so, yeah, the read me.
- 6:50So I try to say what it is and then how to get started on it.
- 6:54And I think those might be the front top two things.
- 6:57I've got a thing there about Ukraine and badges,
- 6:59which we're going to get to.
- 7:00But it's sort of there's the first paragraph there,
- 7:02coverage.py measures, code coverage,
- 7:04typically during text execution.
- 7:06So it tries to give sort of a little bit deeper explanation of it,
- 7:10what you can run it on, and then getting started.
- 7:12There's a for enterprise thing there that links off to Tidelift.
- 7:15But then the getting started tries to be very quick about,
- 7:18you just want to try it.
- 7:19Here's some commands you can run to see how it works for you.
- 7:23Because a lot of people, they just want to get going.
- 7:27And if you can give them a quick instruction,
- 7:29then they'll be really happy.
- 7:30Yeah.
- 7:31Often four or five lines of code.
- 7:33Here's how you use my thing.
- 7:34Do I put a decorator onto a function and it does caching?
- 7:37Do I await a database call?
- 7:40Or like, what am I doing with this thing?
- 7:41Right?
- 7:42You don't have to be super complicated.
- 7:43Right.
- 7:44And sometimes it's not even clear.
- 7:45Some people forget to mention,
- 7:47is this thing an application or is it a library?
- 7:50Like just the big picture.
- 7:51Like as a developer, you can be so, you know,
- 7:54in the trenches with your code.
- 7:56You forget.
- 7:57People don't know what it is yet.
- 7:59Like what shape it takes.
- 8:01Now, my readme is pretty short.
- 8:03And actually the getting started doesn't show the commands.
- 8:05It links to the getting start,
- 8:07the quick start section of the docs.
- 8:08And the change history links to a separate part of the docs.
- 8:11So it's actually a pretty short readme.
- 8:13Some readmes can be very long, a little overwhelming.
- 8:16You have to scroll past all the getting started to get to the change history.
- 8:19For instance, I decided to take a different approach,
- 8:23which was to make it almost like a table of contents
- 8:26to the places you might want to start in the larger docs.
- 8:29That is a decision you have to make, right?
- 8:31Do you try to put enough in there that it's basically standalone in a sense?
- 8:35Or do you encourage folks to find their way over to a much more holistic sort of place, right?
- 8:42That's an information architecture problem.
- 8:44You know, the thing about writing a good readme is it's documentation.
- 8:48And documentation has challenges all of its own
- 8:51that most developers haven't been trained in formally.
- 8:54It's not really their first interest.
- 8:57It involves thinking about other people,
- 9:00which let's just say some developers aren't skilled at.
- 9:03But also the curse of knowledge, right?
- 9:04Once you know what code coverage is,
- 9:06you don't feel the need to explain it or set the state.
- 9:10You're just like, well, we want code coverage.
- 9:11Of course you do.
- 9:12And here's the tool, you know, for example.
- 9:14Yeah.
- 9:14So it's hard to decide what words to put in there,
- 9:16how much to say, how to organize it.
- 9:18Those are all real challenges.
- 9:19Well, it's quite popular with 7.5 million downloads a week.
- 9:23Is that what it's up to?
- 9:24Yeah, that's crazy.
- 9:25That's what it says, right?
- 9:26That's kind of insane, right?
- 9:28And it supports all the versions of Python, even the fast one.
- 9:31So that's cool.
- 9:33Well, it's interesting.
- 9:33So this is a point we might get to later.
- 9:35So you're looking at the Python versions it supports on the badge.
- 9:39Yes.
- 9:39But if you actually read the text, it's actually mentioned,
- 9:42which goes up, the badge goes up to 3.11.
- 9:44The text says it goes up to 3.12.
- 9:47The alpha, yeah.
- 9:48Alpha 2.
- 9:48And that's because of how the badges work.
- 9:51And there's reasons why people don't like badges because of that.
- 9:54But badges look cool.
- 9:55So you want the badges in.
- 9:57What's going on here is that the badges show the status of the latest release on PyPI.
- 10:03And so they're not in sync with what's in the repo.
- 10:07And it's kind of a challenge to figure out what you want to do about that, unfortunately.
- 10:11I do see, though, that you are a believer of badges.
- 10:13You know, I kind of got into badges.
- 10:15There's, what do we got on the screen here?
- 10:17Six rows of badges, which honestly is a bit much.
- 10:20And I should probably, I mean, it's just kind of a mosaic of green and blue at this point.
- 10:24And it's kind of hard to get real.
- 10:26But I'm kind of excited to see that you have a Mastodon badge.
- 10:28The newest one.
- 10:30I put a Mastodon badge on there, exactly.
- 10:32Because that's the new crisis is moving from Twitter to Mastodon.
- 10:36So I'm finding Mastodon to be a really nice place.
- 10:38I mean, sort of sidebar for a second.
- 10:40How are you thinking about this whole Twitter, Mastodon, open source community on social media thing?
- 10:45Yeah, I'm looking at it as an opportunity to try out Mastodon.
- 10:48And the thing that's really struck me about Mastodon is how many names of bloggers from 20 years ago I'm seeing again on Mastodon that I had lost track of.
- 10:59And thinking like, oh yeah, I used to read that guy's blog 20 years ago.
- 11:03And now we're connected on Mastodon.
- 11:05And so we're kind of resetting back to a more distributed personal style of communication.
- 11:11Twitter was great in that everyone was in one place.
- 11:16So it was kind of easier to find people.
- 11:18But Mastodon feels a little bit more like old internet.
- 11:20Yeah.
- 11:21It feels like open source social media.
- 11:23I mean, and not just the fact that the underlying code is, but the philosophy of the federation and the different servers and the different smaller groups.
- 11:32Right.
- 11:32There's some downsides to it too.
- 11:33You know, the server I'm on had some downtime while they were like rejiggering all their infrastructure because they suddenly had 30,000 users.
- 11:41And all right, you know, I can do without, you know, Twitter slash Mastodon for six hours while they figure that out.
- 11:48And then they're back and we're going.
- 11:50Yeah.
- 11:50I'm going to go for a walk or get some work done.
- 11:52Yeah, exactly.
- 11:53Awesome.
- 11:55All right.
- 11:55Well, that's a cool badge.
- 11:56We'll come back to badges later.
- 11:58I think that that sets the stage.
- 11:59One more thing before we get into some of the tools.
- 12:03There's places like, I think Tailwind CSS might land in this realm.
- 12:10It's just too popular to search.
- 12:13Let's see.
- 12:14Just the Tailwind CSS, please.
- 12:16Or I know Poetry.
- 12:18I can't search for that alone, but Poetry with Python.
- 12:21If you go to their websites, they've got like a fancy website.
- 12:25Yes.
- 12:26You know what I mean?
- 12:27Yes.
- 12:27And I see some open source projects like Vue.js maybe is like this, where it's almost like there's a marketing landing page for the project.
- 12:35And the newer ones, of course, it is.
- 12:37They'll have like a dark mode button.
- 12:39And do you, how do you think about this?
- 12:42When you see this, you're like, oh, I need to do this.
- 12:43Or is this kind of.
- 12:45I've never been tempted to build a page like this, partly because I don't think I have the skills to build a page like this.
- 12:50And the things that I make are aimed at developers.
- 12:54I mean, you're showing a Poetry page landing page here, which is also aimed at developers.
- 12:59But I guess my feeling is developers don't need that kind of flash.
- 13:03Yeah.
- 13:04And honestly, if people use a different thing because it's flashier, that's okay.
- 13:09I'm not out to corner the market.
- 13:11Yeah.
- 13:11It's not JavaScript code coverage.
- 13:12It's not JavaScript.
- 13:14That's right.
- 13:15But also, I think sometimes it can be a little misleading.
- 13:18And just to go back to Mastodon for a sec.
- 13:20So one of the problems that people have with Mastodon is that they have to choose a server.
- 13:24And that's the first choice they have to make.
- 13:26And it's a difficult choice because it's an unfamiliar choice.
- 13:29If you go to joinmastodon.org, it's a flashy site with cartoon elephants and things on it.
- 13:35And it looks very easy.
- 13:37But then the first button you have to pick presents you with a choice that's hard.
- 13:41Here's your thousand choices.
- 13:42Pick one.
- 13:44Don't get it wrong.
- 13:44It might have been less cognitive dissonance if the page looked a little bit harder so that when you got that choice, you knew what you were getting into.
- 13:53It would kind of ease you into that hard choice.
- 13:55Yeah.
- 13:55I can see.
- 13:56Actually, I hadn't looked at the page in the last few weeks.
- 13:57They've actually changed it from choose a server to create account, which is good.
- 14:01Yeah.
- 14:01Because that feels more like what you're doing is creating an account rather than choosing a server.
- 14:04But you click create account and you're on the page that says servers.
- 14:07Yeah.
- 14:07Oh, well.
- 14:09They'll smooth that out.
- 14:10They'll smooth that out.
- 14:11You know, people used to be confused by Twitter.
- 14:13We figured it out.
- 14:14Yeah, I know.
- 14:15But I agree that it's an interesting kind of marketing angle for software, which is a little bit weird.
- 14:22Right.
- 14:22But I should say, so coverage.py does have a mascot, which was drawn by my son.
- 14:29Nice.
- 14:29So it's got that cute aspect to it, but not the whole page isn't cute.
- 14:33And actually, you're scrolling it on the screen.
- 14:35I'm noticing the mascot isn't on the GitHub.
- 14:38Should I go to the docs?
- 14:39Page.
- 14:39Yeah.
- 14:40If you go to the docs, you'll see the mascot there in the upper left.
- 14:43Very cute.
- 14:44Sleepy snake.
- 14:44Yeah.
- 14:45So I've got a little bit of that, but that's because I've got a son who can draw like that.
- 14:49And he made me a mascot.
- 14:51If he hadn't done that, I wouldn't have anything cute on the-
- 14:54Covered with a blanket.
- 14:54Got it.
- 14:55Yeah.
- 14:55He's relaxing because he knows his tests are all covering his product and he's sleeping well.
- 15:05This portion of Talk Python To Me is brought to you by the Local Maximum Podcast.
- 15:09It's an interesting and technical podcast that dives into trends in technology, stats, and more.
- 15:14But rather than tell you about it, let's hear from Max and Aaron about their show.
- 15:18We are now on with Talk Python To Me.
- 15:22Let's say hi to all the Python fans.
- 15:23Hi, Python fans.
- 15:24I'm Max Sklar.
- 15:26I have actually done a lot with Python myself, so I am a fan of Talk Python.
- 15:30Do you know Python, Aaron?
- 15:32I took a course years ago, but I am a little rusty.
- 15:34We are here today to talk about our podcast, The Local Maximum.
- 15:38We've been on a roll lately with a new episode every week, and I wanted to share with you what
- 15:43we've been up to.
- 15:44Here on The Local Maximum, we tackle subjects in software and technology, topics as diverse
- 15:50as the philosophy of probability to Elon Musk's next move.
- 15:54For Talk Python listeners, I want to highlight a couple of recent episodes of The Local Maximum.
- 15:58In 248, for example, I found out about an open source library that maps the world into hexagons.
- 16:05And some pentagons.
- 16:06I had a discussion with an author about games and puzzles, and another on a novel approach
- 16:10to doing the job search well.
- 16:11We discussed the ramifications of AI-generated art.
- 16:14Have we reached peak creativity, or is this just another Local Maximum?
- 16:19So check out The Local Maximum podcast available on your podcast app.
- 16:23Okay, well, I think that's at the stage for this conversation pretty well.
- 16:28Let's talk about ReadMe as a service.
- 16:30Have you played with this any?
- 16:31So I haven't played with this.
- 16:32I tend to be very low tech in the way I approach things.
- 16:35You know, edit some text files, build some tooling to make the result you want, and get
- 16:41going.
- 16:41So this looks like a good way to get started.
- 16:44Like if you don't know what to do, this looks like a good on-ramp.
- 16:47So it looks great.
- 16:49If that's the way you like to approach things, definitely do it.
- 16:53My philosophy is any way you can get a good ReadMe is a good way to get a good ReadMe.
- 16:58So if this is going to help people, then I'm all for it.
- 17:02It's not something you tie into your ReadMe.
- 17:03It's a web app.
- 17:04And it looks like one of these marketing page, landing page builders.
- 17:09So on the left, it's got a bunch of different sections.
- 17:11Like you can drag them in.
- 17:13So you drag in the title and description.
- 17:15You drag in the acknowledgements and fill it out.
- 17:18And it will create the skeleton markdown.
- 17:20And then you just take the markdown and run with it.
- 17:22Right.
- 17:23But it gives you a lot of structure.
- 17:24Like, well, here's how a lot of people put their author acknowledgements.
- 17:27Or here's how they put their example code or FAQ.
- 17:30If this is...
- 17:32So I haven't played with it.
- 17:33But if the output of this is a markdown file that you then own and edit later on,
- 17:36this is just a sort of a quick start templating thing.
- 17:39I'm pretty sure that's how it works.
- 17:40Yeah.
- 17:40Any way to do it.
- 17:42I'm personally always a little bit skeptical about new tools that I have to keep in my tool
- 17:48chain and keep working and hope will remain maintained.
- 17:52Personally, like low tech approaches.
- 17:54Like I said, if you...
- 17:56I have a text file that I can edit.
- 17:57Great.
- 17:58I'm all set.
- 17:58So I like that this tool is a way to get started, but then gives you the text file that you then
- 18:04own.
- 18:04Yeah, exactly.
- 18:05So when you're in a section, you just are working on these various pieces.
- 18:09It kind of is like a function.
- 18:13I'm just editing the internal, but it puts it all together in a whole thing and you get
- 18:17just a raw markdown with a copy button.
- 18:19And it seems pretty neat to me.
- 18:21It is neat.
- 18:21And because some of this stuff can be overwhelming.
- 18:24I mean, markdown syntax is designed to be as straightforward as possible.
- 18:28But once you get to badges, which are images with alt text with links, the syntax is no longer
- 18:34simple and it's hard to remember how to do it.
- 18:36So having a way to mash a button and have a badge show up on the page.
- 18:40Great.
- 18:40Let's do it.
- 18:41So this was created by Catherine Olsner.
- 18:44Olster?
- 18:45Olsner.
- 18:45And yeah, she works at GitHub.
- 18:47So that's pretty cool.
- 18:49But yeah, it's just basically a start from scratch and generate if you don't have a good
- 18:53example.
- 18:53So I kind of like that one.
- 18:54Yeah.
- 18:55And GitHub, in general, has one of their philosophies is we'll make on ramps for people
- 19:00to do open source, right?
- 19:02And like they've got in their documentation and their help, they've got how to use a console,
- 19:07which isn't their problem to solve.
- 19:09But they know that people are stuck getting into GitHub if they don't know how to use the
- 19:14console.
- 19:14So they're teaching people how to use the console.
- 19:16They've got choosealicense.com because people don't know how to choose a license and they
- 19:19need to in order to do open source well.
- 19:21And so on and so forth.
- 19:22So I love the on ramps that GitHub has built for these things.
- 19:24Yeah.
- 19:25And just the community as well, right?
- 19:28You know, if you put your time and energy into this, there's a chance that people will
- 19:31come along, appreciate what you've built and contribute to it as opposed to...
- 19:35It's a social coding site.
- 19:36That's their tagline.
- 19:37Yeah, that definitely is.
- 19:38They seem to be living up to it.
- 19:40Okay.
- 19:40Another one that comes from...
- 19:42Yeah, this is the other end of the spectrum.
- 19:44This is the other end.
- 19:45There's a couple of other ones here.
- 19:47This is from Hinnick.
- 19:49This is your fancy project deserves a fancy pants readme based on Hatch or with Hatch.
- 19:56Right.
- 19:57Yeah.
- 19:57So what do you know about this one?
- 19:58Have you done anything with it?
- 19:59I looked at this a bit and this looks like I said the other end of the spectrum.
- 20:02So readme.so is kind of a visual graphical way to get started.
- 20:08This thing by Hynick Slowak is a templating tool where you can automate the putting together
- 20:14of your readme from different bits of information from all over your repo.
- 20:18And it is a little bit overwhelming how much is there.
- 20:23You look at the examples and you're editing .toml files with five dotted nested sections to get
- 20:31the right pieces in place.
- 20:32There we go.
- 20:33And I totally understand this because I have built tools like this too where I thought,
- 20:36you're a developer.
- 20:37You can write me a regex when it comes time to tell me what to do.
- 20:41So I totally understand this and I need to look more at it because it looks like it solves
- 20:45some problems that I might be facing myself and my own.
- 20:49Like if you look at the coverage.py repo, there's a lot of custom tooling to do these sorts of
- 20:53things.
- 20:54And if I can find other people's supported tools to do the right things, I would like to
- 21:00use them.
- 21:00I mean, like I said, I tend to spawn new side projects when I need tooling, but that's not
- 21:05a scalable solution to things.
- 21:07I should use other people's tools more.
- 21:10They built AF, they built some good ones that are out there.
- 21:12So here, let me see if I can find a section.
- 21:14There's a little part.
- 21:15That's it.
- 21:16The impressive thing.
- 21:17So when I first came to this, I thought I haven't heard of this Hatch Fancy PyPI readme
- 21:22project, but under showcases, the black readme is built using this tool.
- 21:28And that's fine credential right there that the black project is using it.
- 21:32Yeah, absolutely.
- 21:33And you've also...
- 21:34As well as a bunch of others.
- 21:35Yeah.
- 21:35Structlog and JSON schema.
- 21:38Yeah.
- 21:38Yeah.
- 21:38JSON schema.
- 21:39Yeah.
- 21:39Yeah.
- 21:39So maybe I could read this one paragraph and this might give people the sense.
- 21:43Do you want your PyPI readme to be the project readme, but without badges followed by the
- 21:48license file and the changelog section only for the latest release?
- 21:51Well, you've come to the right place.
- 21:53So it's like...
- 21:54He's got this whole assembly line model of there's already a bunch of information out
- 21:59there.
- 21:59So don't copy it around.
- 22:01Don't try to write it in two places.
- 22:03Instead, have a tool, pick up the information and then put it together into the readme, which
- 22:07is what you want.
- 22:08And I totally understand that because I've got some...
- 22:11I've done some of that kind of tooling myself in my projects so that I can put a piece of
- 22:16information in just one place and then it goes to where it has to go to be read.
- 22:19It's a bit like a static site generator.
- 22:21A bit.
- 22:22A little bit.
- 22:22The thing I still haven't wrapped my head around here is that what feels like it could
- 22:27be one template.md file or something that says, you know, grab this from there and that
- 22:32from there is instead in your PyProject.toml sections.
- 22:37So you don't end up with sort of what looks like a readme.md file with callouts to where
- 22:43the information should come from.
- 22:44It's pieced together from the PyProject.toml sections.
- 22:48I see.
- 22:48The toml lets you reach into the different segments of the thing that's there.
- 22:53Yeah.
- 22:53And I understand why he's taking that approach because the PyProject.toml is there and this
- 22:58is a hatch plugin.
- 22:59So he's already got access to that information and it's bolted into the process of building
- 23:05the distribution, which is the exact best time to build the readme.
- 23:09So it's cool that he's explored it this way.
- 23:12I have to take a deeper look at it to see if it would fit in with my workflow.
- 23:16I don't use hatch.
- 23:17Yeah.
- 23:17Hatch is nice and hatchlane is nice.
- 23:20And I've done a little bit of work with it.
- 23:23And I can see why if you're already working in that mode, how to kind of extend it.
- 23:27Absolutely.
- 23:28Yeah.
- 23:28One of the problems with coverage.py, which is my main side project is because it's 18
- 23:32years old, there are bits of it that are using the latest, greatest technology as of 15 years
- 23:37ago.
- 23:38And because it's just kept working, you know, until it breaks, I'm not going to go and fiddle
- 23:43with it or until I'm interested in fiddling with it, I might fiddle with it.
- 23:46But there's a lot of stuff that's just old and weird and just keeps rattling along.
- 23:51For such a highly used project, I can see the danger here.
- 23:54But have you considered or have you run it through things like Flint to convert all the
- 23:59strings to fstrings?
- 24:00Have you or some of these like upgrade to the latest idioms where you can say, I want it to
- 24:04be 3, 7 and above.
- 24:05And anything that's older than that, you know, kind of rework it.
- 24:09I have used pi upgrade on it when I dropped 2.7, which was a couple of years back.
- 24:14And there are now fstrings all through it.
- 24:16But for instance, I don't use black.
- 24:18I there is a pull request to add type annotations to it.
- 24:22But it's a big project that doesn't not gaining the momentum it needs to get done.
- 24:26So I tend to, you know, let sleeping dogs lie where it's working.
- 24:31And or if I don't, I don't know what I'm going to get out of it.
- 24:34For instance, I use opt parse to parse the command line arguments.
- 24:38And that wasn't even the right thing to use in 2.7.
- 24:41That was the old thing that arg parse replaced.
- 24:44But it still works.
- 24:46It's still in there.
- 24:46It's fine.
- 24:47You know, sometimes there's no value in possibly adding bugs to something that you don't intend
- 24:53to touch at all.
- 24:54Right, right.
- 24:54Exactly.
- 24:55But maybe if you were to say, like, we're going to really dramatically expand the way
- 24:59that it can take arguments and do things.
- 25:00Well, then maybe all of a sudden you are like, we could get more flexibility with a new thing.
- 25:04But if you're not going to touch it, then just let it be.
- 25:06Yeah.
- 25:07All right.
- 25:07Let's get to the next one here.
- 25:08Shields.io.
- 25:10Yes.
- 25:11If you want a badge, come to the place.
- 25:13Shields.io, they will make a badge for you.
- 25:15And this Shields.io is a very impressive service, I have to say, because they give you lots of
- 25:21ways to make badges, including ways that I didn't even understand they could do.
- 25:26I found this out when actually when I made that Mastodon badge that you can tell Shields.io
- 25:31to go and grab some JSON from some other website and extract data from that JSON response and
- 25:37include it in your badge.
- 25:39So you just call the Mastodon API, public API to get stuff about your account and pull it.
- 25:45If you look at my Mastodon badge, which is on github.com/Nedbat or on the coverage.py page,
- 25:51it has my count of followers.
- 25:53And that's coming from a JSON response from the Mastodon API on my server, on my Mastodon server.
- 26:00And then Shields.io is incorporating that number into the image that it then serves to GitHub
- 26:06to display into the readme. I don't want to think about how many computers are actually
- 26:10involved to get that stupid number on that page. But it's very impressive that I can do all that.
- 26:14I sure hope it's cash somewhere.
- 26:15I hope so. I don't know.
- 26:18How interesting.
- 26:19Yeah, they've got a bunch of these prebuilt badges that can tell you all sorts of things.
- 26:22Like, you know, what version of your project is current on PyPI and what Python versions it
- 26:29supports and what your license is and all sorts of things. It's very impressive.
- 26:33Yeah, it supports not just Python, but I saw Node.js, Nougat, PowerShell.
- 26:39Yeah.
- 26:39Stuff that I don't spend as much time on over here.
- 26:42Yeah, there's things I've never even heard of that it shows here.
- 26:44SourceForge.
- 26:44They don't even document all the things it can do. I mentioned earlier that the badge on the
- 26:49PyPI page will show the status of the latest PyPI release, which means if you go back 10 years to
- 26:56the coverage.py, you know, version 3 release, there's a badge on it that shows you that it
- 27:01supports Python 3.11 because the badge is showing you the most recent release, even though you're
- 27:05looking at the badge on the 10-year-old release.
- 27:07Yeah.
- 27:08There's a syntax in Shields.io that will let you say, show me this factoids as of this particular
- 27:14release 3.0.
- 27:16I see.
- 27:16And they don't document it, so I didn't realize I could do that. So there's an awful lot going
- 27:20on in Shields.io.
- 27:21Yeah. So if you want a Shield for one of those little badges for basically anything, these are,
- 27:26you know, got downloads, users, test coverage, all these things. There's just a...
- 27:32Right.
- 27:32Basically, they give you a URL, right, that you put in into your readme, and that becomes the badge
- 27:39as it resolves, right?
- 27:39Right. The URL returns you an image with the information on it that you want. Either information
- 27:45that you put into the URL, you can just make a URL that says, you know, Michael Kennedy is cool,
- 27:49and it will return to you an image that says Michael Kennedy is cool. So, you know, it'll just format
- 27:55things for you, but it also has ways of getting information and then formatting it to give back to
- 28:00you.
- 28:00Okay. You probably could put this personally onto places, not just on your project.
- 28:06Right.
- 28:06But maybe on your GitHub profile, potentially.
- 28:08Absolutely. Yeah, my GitHub...
- 28:10Like the social.
- 28:11I'm embarrassed to talk about how over-automated my GitHub profile page is.
- 28:16I love it. All right. Shields.io, that's a section for the live badges. This one is hot off
- 28:24the presses. Let's see if we can find... Oh, it says initial commit. We got it 10 days ago.
- 28:30Will McGugan of Rich... Rich and Textual. And Textual, yeah. Put out a tool to generate a GitHub
- 28:37flavored FAQ.markdown document. This is pretty neat. This is a tool. I just took a quick look at it. It's
- 28:45in a similar vein that you want to make little bits of information in a convenient way and then have it
- 28:51published as a monolithic piece of information. In this case, he's talking about FAQ questions. And I think
- 28:57he said somewhere here, I got tired of answering the same questions over and over, so I made a tool
- 29:01to make an FAQ or something like that. Yeah. I don't know. I don't have the same problem of needing
- 29:06FAQs produced or why it's easier to put them all in separate little files that are combined together
- 29:11later than just editing one big FAQ page. But Will's a smart guy. He must have had a problem and he solved
- 29:18with this tool and it's cool to see. This is a little more similar to the way you described how
- 29:23you might see building up the readme. Instead of defining an automo file, reaching into a giant
- 29:28document, have a bunch of small ones to get assembled into a result here. Right. And that's a lot like some
- 29:34of the change log management tools that we're going to get to also. Yeah. One of the things that prompted
- 29:40Will to do this, he says here is people will ask the same question over and over and he in issues and
- 29:48he's like, you know, I can't, I just can't answer it again. How to make a table. I mean, or can I make it?
- 29:53So yes, you can make a table. Here's the link, whatever that is. So it has a fuzzy, fuzzy matching
- 30:00on suggest. So I think this is why it's separate because you can put alias questions to the frequent
- 30:06question. Yeah. And then you can just on the terminal on the shell, you can say factory suggest.
- 30:11And if you have some kind of input to it, like I took the question that somebody asked me and I want
- 30:17to point them at the thing so I can just jam that into the terminal and it'll go actually that matches
- 30:24over to this FAQ response. I think that's the idea. And he says that it's designed to be used with a
- 30:30GitHub action to post an automated response on an issue, I guess is the point is that if he's getting
- 30:36a ton of issues that all need to be answered, instead of saying, go and read the FAQ, he can,
- 30:41he's automated the process of putting the answer right onto the issue, which is cool. That's,
- 30:47I didn't realize that aspect of it. So that's very cool. So this is all of 10 days old. People can
- 30:51check that out if they want. Hot off the presses, torn from today's headlines. Exactly.
- 30:59This portion of Talk Python To Me is brought to you by Sentry. How would you like to remove a little
- 31:05stress from your life? Do you worry that users may be encountering errors, slowdowns, or crashes with
- 31:11your app right now? Would you even know it until they sent you that support email? How much better
- 31:16would it be to have the error or performance details immediately sent to you, including the call stack
- 31:21and values of local variables and the active user recorded in the report? With Sentry, this is not only
- 31:27possible. It's simple. In fact, we use Sentry on all the Talk Python web properties. We've actually fixed a bug
- 31:34triggered by a user and had the upgrade ready to roll out as we got the support email. That was a great email
- 31:40to write back. Hey, we already saw your error and have already rolled out the fix. Imagine their surprise.
- 31:46Surprise and delight your users. Create your Sentry account at talkpython.fm/sentry. And if you sign up with
- 31:53the code talkpython, all one word, it's good for two free months of Sentry's business plan, which will give
- 32:00you up to 20 times as many monthly events as well as other features. Create better software, delight your
- 32:06users, and support the podcast. Visit talkpython.fm/sentry and use the coupon code talkpython.
- 32:16We talked about contributions and how people appreciate getting credit for participating.
- 32:22You know, like I'm sure there are people who have closed a small issue or found and fixed a small bug
- 32:28in coverage.py or added a small feature and feel really proud of that, right? But yeah, they would
- 32:33feel more proud if you acknowledged that they did it, right? I accept your PR, right? Of course.
- 32:38So tell us about this all contributors place here. This is a GitHub bot that on an issue,
- 32:45you can say, you know, add all contributors, add Michael Kennedy to the bug fix sections of the
- 32:52contributors because he did it right here in this issue that we're talking about. And that's really
- 32:57cool because I don't use this tool. Like I said, I tend to be very low tech. I do acknowledge my
- 33:02contributors. I'll mention them in the changelog. And I have a contributors.txt file that lists everyone
- 33:07who's contributed in some way. And I will hand edit that. And it can be, you know, I have to remember
- 33:12to put it over there and put it over there. I don't get so many contributions to coverage.py that it's
- 33:18a burden. And I kind of actually like that little sort of moment of zen of, you know, finishing the
- 33:23paperwork and crossing the T and dotting the I's. But if you're on a big project where you are getting
- 33:28a lot of contributions, I could see how doing this with a bot would be, you know, save you that little
- 33:33bit of work that that could become a big amount of work. And you don't want to skip it, right?
- 33:39Because like we said, it's seems like a small thing to us and maybe like, I don't want to have
- 33:43to bother. But it's a huge thing to the contributor to have their name mentioned.
- 33:47Yes. Yeah.
- 33:47And maybe not just pride. Maybe they get a job because of it. Right. They could say,
- 33:51I'm getting hired to work on Flask. Look here. I'm listed as a contributor on Flask.
- 33:56That puts me above 99% of the other people applying.
- 33:59That's right.
- 33:59At least in that regard.
- 34:00The internet is the kind of place where you don't, when you're, you get a little connection
- 34:04like that, you never know what it's going to lead to.
- 34:06Yes.
- 34:06There's all sorts of things that pop up because of the strangest little mentions.
- 34:10So true.
- 34:11You might get invited to be on a podcast just because someone mentioned one of your dopey
- 34:15little tools on Mastodon.
- 34:17Or you might even start a podcast.
- 34:19You might even start a podcast. Yeah. Watch out.
- 34:21That's right.
- 34:22There's danger ahead.
- 34:22And then you're really in for it. So the way that this allcontributors.org bot seems to work,
- 34:28I don't use it personally because I don't have projects that are big enough to really
- 34:31justify this in terms of open source projects. But in the comment on an issue or on a PR or
- 34:37one of those types of things, you can just say at all contributors, please, please add at
- 34:43GitHub name of contributor. And then it says for design or for bug fixes or for documentation.
- 34:48And then the dot, the dot, the bot says added them as contributor. That's, that's really cool.
- 34:54Yeah. So I, like I said, I have a text file. One of the, one of the unusual things I do with my text
- 34:58file is that when I build for coverage.py, when I build the release, if you go and look at who,
- 35:04who the author of coverage.py is, it says Ned Batchelder and 137 other people. And that number,
- 35:11137 is counting the number of lines in the contributors.txt. Cause I want it to be clear
- 35:16that, yeah, it's not just me. There's lots of people helping with this and you can help too.
- 35:20Yeah. Especially over 18 years.
- 35:22Well, yeah.
- 35:23All right. Getting to the part of expanding beyond just readme.md, but the broader
- 35:28experience of things that maybe gets, gets their way pulled back into the readme is a changelog.
- 35:35Yes.
- 35:36Are you familiar with keepachangelog.com? Have you seen this?
- 35:39I am very familiar with keepachangelog.com.
- 35:41All right. Tell people about this.
- 35:42So keepachangelog is basically an advocacy site that says you should really have a changelog. And
- 35:47here's what we mean by that. And why should you do it? And I absolutely agree with the idea
- 35:53of keeping a changelog, which is a running history of what has changed in your project.
- 35:58And that's because people that your users want to know what's changed. I mean, it sounds really
- 36:04simple, really basic, but I think people can approach it in really simple ways that aren't
- 36:10as valuable. And if you put a little bit more work into it, you'll find it's really, really valuable.
- 36:15And you need to know as a consumer of a library, is there an immediacy to this new version that I
- 36:22need to pay attention to? Is there a risk to this new version that I should be aware of?
- 36:26Or do I don't care? And I just leave my thing pinned the way it was before, right? If it says
- 36:29there is a CVE where if we send the dollar sign, it takes over your server, like you should get in
- 36:35there straight away.
- 36:36Yes, exactly.
- 36:37Exactly.
- 36:38But if it says we deprecated this thing that you were depending upon, like, well, don't just push it.
- 36:43We're going to need to think about this.
- 36:44Right. And I think the way you just described that is really good, which is that the user of the tool,
- 36:49the library, the application, they want to understand, you know, what's in it for me?
- 36:53Like from my perspective, what has gone on with this library? And I think that's one of the things
- 36:58that's difficult for people is for maintainers is to put themselves in their user's shoes and think,
- 37:04what's changed about this that matters?
- 37:07Yeah.
- 37:07There are some auto-generated changelogs that, for instance, just put all the git commit messages
- 37:11in the changelog. And those drive me nuts because they're telling me all sorts of things that I don't
- 37:16care about. I don't care that you restyled, changed all the spaces to tabs in some file.
- 37:22That doesn't matter to me. That's just noise. You're hiding, you're burying the lead by telling
- 37:27me stuff that doesn't matter. So keep a changelog is a good, like I said, advocacy site. They have
- 37:33their guiding principles. Change logs are for humans, not machines, things like that. And they
- 37:37advocate for marking your commits with, or marking your changelogs, putting them into sections of what's
- 37:44been added, what's been changed, what's been deprecated so that, you know, people can zero in on what
- 37:49matters, right? Deprecated means I can't use the thing anymore and I need to make a change. And security
- 37:54means I really better get on this or I might be in trouble. So it's good to highlight those things and
- 37:59put it into the user's perspective. But I like the guiding principles here about it's
- 38:03for humans. Every version should have one. The release date should be specified. It's easy to
- 38:09just say, well, version 2.1 had these changes. Like, well, wait a minute. We're on three. Like,
- 38:14was that last week or five years ago? I need to know how relevant.
- 38:18Date things. I mentioned my son doing art. I always told him when he was a kid, put the date on the
- 38:23picture. So I'll know how old you were when you made the picture and you never wanted to do it.
- 38:26But change logs, you can put dates on things. Like you said, you don't know how long ago something
- 38:31was. Yeah. Don't have to go back and diff the thing to figure out when it was committed. Right. All
- 38:36right. And we've got one chat from a viewer talking about creating change logs, like as a good job for
- 38:42AI. And these days, I don't know, 2022, not only is, you know, Twitter versus Mastodon, but chat GP,
- 38:49what's it called? The AI thing? GP3, I think. Yeah. Something like that. Seems to be amazing.
- 38:54And I can probably retire soon because it's going to do my job, I think. Yeah. And just yell commands,
- 39:00just yell stuff at the computer from like the couch. Computer, go write the website. Just make it
- 39:05better. Scale the website, computer. Exactly. Oh yeah. That's a good point. Mario out there says it's
- 39:12called Skynet. There are some amazing tools, like a bit of a diversion, but there's like this thing
- 39:17called Jasper that a friend just told me about. And what you do is you write, it's like Google
- 39:22Copilot for writing content. And there's just, there's a bunch of crazy, crazy things out there.
- 39:28Yeah. It is. We've seen a complete change in the progression of things and it's astounding.
- 39:34It is. All right. Well, let's get to one of the first tools that got you recommended. The reason
- 39:39I invited you is because I asked people for general recommendations and they kept recommending your
- 39:44tools. I'm like, all right, well, I should just have Ned come on the show to talk about this.
- 39:47I'll just come in and talk about all of it. Sure. All right. So we, we saw the, keep a change log
- 39:52ideas, but that's in theory, not in practice, right? Right. To keep a change log just says,
- 39:57look, you should write this stuff and here's how you should write it. It's not a tool.
- 40:00It's just encouraging people to do a good job. I looked around at tools when I wanted to get
- 40:05people to make better change logs. And there was one called town crier from the twisted project.
- 40:11And they solved the problem that a lot of change logs have. So if you just have a change log file
- 40:16and everyone who makes a change to the code is supposed to put an entry into the change log file,
- 40:20then that file becomes a merge conflict every time, right? Because I added a feature. I put my thing at
- 40:25the top. You added a feature. You put a thing at the top and it's a merge conflict. Years ago at work,
- 40:29what I tried to do is have a change log file. And I told developers, put your change near the top of
- 40:34the file in the hopes that they wouldn't merge conflict. And developers would come to me and say,
- 40:39what do you mean by near the top of the file? Because they're engineers, they need precise directions,
- 40:43right? So, okay, that wasn't going to work. So the idea that town crier uses, and also the cpython
- 40:49source code has a thing called blurb that does the same idea, which is when you make a change to the code,
- 40:54you also write one small file, which has just the entry for the change log in it. And you check that
- 40:59in. There's a special directory that just has those little fragments in it. And so when you make your
- 41:04code change, you also add a fragment to that directory. And then later, when it's time to actually
- 41:09put everything, you know, make a release, all those fragments can be concatenated together to become
- 41:14the change log. And the good thing about that is that you don't have merge conflicts because everyone
- 41:19creates their own fragment. They have, you know, unique names based on some principle. And then at
- 41:24publication time, you know, when the release is made, they can get concatenated together. And like
- 41:29I said, town crier did this and blurb also did this. I looked at them and they were both a bit more
- 41:34opinionated than I wanted. I knew that if I was going to get a lot of people to use this thing, that it
- 41:41needed to be very, very flexible. And I actually took an approach when I was building Scriv of what's the
- 41:46least opinionated I can be. How many different ways can I let you decide how you want it to work?
- 41:50At the time, black was rising in its popularity and it was famously opinionated. And so I sort of took
- 41:57the opposite approach. Nice. Scriv's, the idea is that it's got a few commands. You say Scriv create
- 42:02to make a fragment, Scriv collect to collect them all together. Those are the two main ones.
- 42:07Scriv looks like, it looks like a great tool. And it looks like one of these things you could pipx
- 42:12install because you're not going to, it's unlikely you'll depend upon it for your code to run.
- 42:17You just need that command around to manage a project.
- 42:20Right. Or you can put it into your development requirements.txt or however it is you manage
- 42:25your project tooling. But sure, pipx would work too. And it's actually grown one other command
- 42:31for making GitHub releases. So it will actually parse your changelog file. Even if your changelog
- 42:37file wasn't made by Scriv, it will parse your changelog file and then create a GitHub release
- 42:42from your changelog file, which gets at a philosophical opinionated point of mine, which is that
- 42:48the information should live in just one place. And that place should be a file that you check
- 42:53into Git. It should be a file that people can clone when they clone your repo. If they want
- 42:57to just look at the changelog in Emacs or whatever locally, they should be able to do that. And since
- 43:02you don't want to duplicate information, but people do seem to like having GitHub releases
- 43:07make, you know, publish a GitHub release based on the information from the changelog file,
- 43:11rather than having the release be the source of truth where it can't be cloned. It can't be
- 43:16edited. It can't be, you know, there's no commits that you can track to see who put that text there,
- 43:21those sorts of things.
- 43:22Okay. And that makes a lot of sense. Let's see. Out in the audience, we got in a question.
- 43:26Last changelog I read was for Python 3.11. Did you read that? Have you read? It's a bit of a novel.
- 43:32The CPython developers have taken to heart the idea. And I make it sound like this is a recent
- 43:37development. They've always done this. You know, there's a Python 3.11 has a what's new in 3.11.
- 43:42And they tend to be very, very detailed about putting stuff in the what's new document. And like
- 43:47I said, they've got their own custom tool called Blurb, which is how CPython core developers,
- 43:53they write what are called news entries, which get created as small files in a custom,
- 43:57in a dedicated directory. And then those get aggregated into the what's new document.
- 44:02In that changelog, there's 180,000 words. Typical novel is like 80,000. So that's a proper changelog
- 44:10right there.
- 44:10There's more information there than any one person needs, but everything that's there,
- 44:15someone does need.
- 44:16That's right.
- 44:17Right.
- 44:17And each one of those links to like a GitHub issue or a PEP or something like that.
- 44:22Yeah.
- 44:22And there's a lot of those. I just noticed, I think it was today that they got GitHub
- 44:26issued number 100,000 in the CPython.
- 44:29Wow. Okay. That's major.
- 44:30Yeah.
- 44:31It's been chugging along for a while. All right. So this looks like a great idea. What do we
- 44:34got up next? Oh, I just also wanted to just give credit, speaking of giving credit from
- 44:38Colin Sullivan, who sent this in amongst some other things as well over on Mastodon. So thanks
- 44:44for sharing that. This is another one. I'm going to go quick because it's not a Python
- 44:48tool and it's actually in a technology I've never heard of. Maybe you've heard of it, Ned.
- 44:52So I hadn't heard of this. So this is called Changelog Manager from Masukomi. And it's
- 44:57interesting that he, Masukomi, is one of those bloggers from 15 or 20 years ago that I'd lost
- 45:03track of and suddenly got reconnected to on Mastodon. And when I asked about, I got a little
- 45:09petulant on Mastodon about a changelog that I found completely useless. And he chimed in
- 45:14with a long thread about how aggravated he is by changelogs and how hard it is to get people
- 45:19to do them well and pointed me at this tool that he had written about.
- 45:22It looks like a cool tool. People can check it out if it works well. It's written in a language
- 45:27called or technology called Crystal. I feel.
- 45:29Yeah. I don't know what that is.
- 45:31Makes me feel old all of a sudden not even know that that's a language. I don't know. But wait,
- 45:36hey, look, it's Colin's out in the audience. Oh, hey, Colin. Yeah.
- 45:41Thanks for the recommendation. You got me on here.
- 45:44Yeah, absolutely. So this is a cool project here and people can check it out. And yeah,
- 45:49it's got a lot of the philosophy of how you should do it, how you shouldn't just have
- 45:53commit messages. I remember hearing about tools that would look for swearing and other kinds of
- 46:01frustration in commit messages and not allow those particular messages to get into the changelog.
- 46:07But I don't think that, as you pointed out already, that individual commits are generally
- 46:12the right granularity.
- 46:13Right. Commits definitely are not. Some of these tools will aggregate your pull requests
- 46:17to be the changelogs. And that's a little bit better because they're larger grained. But even so,
- 46:23I think there's real value in hand curating your changelog. Start with a list of pull requests,
- 46:30but then take a look at it, reorder them so they make some sense and tell the story.
- 46:34Right. Put the important stuff on top.
- 46:35Put the important stuff on top. If you have three pull requests, which just by coincidence all changed
- 46:40how you handle file matching, then make an entry that says, we changed a bunch of things about file
- 46:46matching and then have sub bullets about the file matching changes. You want to explain things to
- 46:51people and you're going to be able to do a better job of it than your pull requests or your commit
- 46:55messages. Absolutely. All right. Well, thanks for that, Colin.
- 46:57Executable books. The executable books folks are interesting. They've got a lot of tools that will
- 47:03take Jupyter Notebooks and other things using the MIS plugin for markdown and generate books in
- 47:11different ways. And so they've got this project called GitHub Activity, which generates a simple
- 47:16markdown changelog based on that. Let's see. I think this is on issues and PRs, not commits.
- 47:25Yeah. I think this is one of the ones that goes for the larger chunked bits of information,
- 47:30which like I said, is good. Commits are too small. The issue is still that when you write a pull
- 47:37request, what you're writing about mostly is something that your reviewer needs to read.
- 47:41Right. So you're really addressing your collaborators rather than your users. I mean,
- 47:46ideally your pull request would include all of the user consequences as well, but it's also going to
- 47:52talk about what your collaborators need to know. So different audiences, different information at the,
- 47:57at the very least, it's going to need an editing pass in order to figure out how to actually explain
- 48:02this to people the right way.
- 48:03Sure. Well, that's an interesting idea. Maybe the tools don't have to be perfect. Maybe they could say,
- 48:09well, here are the 10 things in terms of PRs and issues that have changed. Now just rewrite that for
- 48:14humans with a different audience. That still could be valuable.
- 48:17Yeah. Collecting up all the information. That's great. I just think it needs, it needs a human
- 48:21touch.
- 48:21Yes.
- 48:22That's controversial in these days of AI, but I think humans can do a good job writing stuff.
- 48:26Indeed. As we say, get up co-pilot, write me a, no. So the next one we come to is Dinghi?
- 48:34Dinghy.
- 48:35Dinghy. Okay. Dinghy. Got it. Just like the little boat thing.
- 48:37The little boat. That's right.
- 48:38Okay.
- 48:39Yeah. So this is a tool that I wrote and it was interesting because when Colin mentioned this
- 48:42as a tool for changelogs, it didn't, that's not why I wrote Dinghy. Dinghy is designed to give you a
- 48:48daily digest of GitHub activity, which by the way is why it's called Dinghy because the D-I
- 48:53stands for digest and there's a G-H in it, which stands for GitHub. And I looked through words that
- 48:58had those pairs in them and Dinghy popped out.
- 49:00Nice. And it's got a Y, which is like half a Python for pies.
- 49:03And it's got, yeah. And then you can, you can backfill the marketing slogan of, you know,
- 49:07your lifeboat on a sea of information or something like that.
- 49:10There you go.
- 49:11Dinghy just gives you a digest of your GitHub activity. I was finding at work that I had to
- 49:16track lots of issues and pull requests and there were lots of repos where I wanted to know what
- 49:20was going on. And so I found it useful to just summarize the activity on issues and pull requests
- 49:26across repos.
- 49:27This is nice.
- 49:27Yeah. In the morning, take a look what happened on the last day. Oh, I should, you know, I should dive
- 49:32deeper into that one. I can click into it and go read the real issue, but you just can get a,
- 49:36get a quick overview, but I can see how, so I use it sort of on a daily basis, but I could see how
- 49:41you could take this and get a digest of the last three months and then use that as at least a guide
- 49:48to where to get the information for a change log. If not, you know, pulling information right off.
- 49:52It seems real helpful if you work on a team, especially if you're the team lead or kind of a
- 49:56manager type and you're like, all right, just need to see what's happened on these three projects
- 50:00this week. Exactly. Just hit it.
- 50:02That's what it's for. And it's, it's satisfying to hear people think of other uses for it. That's
- 50:06the sign of having built a useful tool is that I meant it for one thing, but then someone else
- 50:12sees, oh, I could use it for that too. And that's very gratifying.
- 50:15I can see it at the end of a sprint, like the sort of post-mortem burn down type of thing.
- 50:19Yep.
- 50:20Yeah. Okay. Cool. Cool.
- 50:21You mentioned blurb. I'll just put a link to, to the blurb project tool as well. This is the
- 50:27CPython prolific writer. This idea of building the change log from small fragments is something
- 50:35that's happened a number of times. And I think it's a great idea. I think it's the right way to,
- 50:39to do this kind of work. Agreed. One that comes, I, is this GitHub itself that does this? No,
- 50:45there's not. There's a thing called release drafter and it drafts your next release notes
- 50:51as PRs are merged into a master. Okay. So I haven't used this.
- 50:55This is another case of things going into GitHub actions. And I'm fascinated by this whole thing,
- 51:00you know, as a project maintainer, I feel like there's sort of three large buckets of work.
- 51:05There's the building, the product itself. I don't mean product to sell, but like coverage.py is a
- 51:10product. There's maintaining the test suite for it, which is if you've got a large test suite is a
- 51:14whole endeavor all to itself. There's all this project automation, you know, that we've been
- 51:19talking about here today. You know, how do I get the releases made? I've got a make file,
- 51:23what this command, how do I, what's, how do I bump the version up? Like all of that kind of,
- 51:27and it feels like micro automation. You're doing it like one shell command at a time or a 10 little
- 51:31Python, 10 line Python file or something. And the fact that there are all these tools around
- 51:35that help with it and put it in GitHub actions. And you just, you make a GitHub,
- 51:39a Git tag and suddenly it goes to PyPI and publishes the GitHub release and all that.
- 51:45That's fascinating to me how far you can automate those processes.
- 51:48They kind of build up like a snowball going downhill pretty quick because you're like,
- 51:51well, if I could automate this thing and that thing, they're like, wait a minute. Now we just,
- 51:55they click together and then it's, we're almost there.
- 51:59I'm a late adopter of technology. I won't automate a thing until I know that it's exactly the way I
- 52:04want it. And I've gotten completely sick of doing it by hand. But the good news is by then I do know
- 52:09exactly what I want it to do. And so I can build the automation and I don't have to come back and
- 52:13fiddle with it too much. Another big benefit I would say to that approach is every time it runs,
- 52:18it could just warm your heart with a joy. Like I, you know what, I hold another two hours. I didn't do
- 52:23that thing. That's right. The downside is when it does the wrong thing. So this weekend,
- 52:28I actually had a big weekend this weekend. I released 1.0 of both Scriv and Dingy and the
- 52:33first beta of coverage 7.0. And it turns out that the links to PyPI on the readme, no, the links to
- 52:41my documentation from the PyPI readme are broken because they don't work if it's a beta release.
- 52:46And I didn't know that until the release was published and betas happen so infrequently,
- 52:51it'll change again before I make another one. And it'll probably be broken too, because it's hard to
- 52:56test this kind of automation. Like the good thing about building the product and building your test
- 53:01suite for the product is that that is automation. You can run the crank on and you know if it's
- 53:05working or not. Releasing projects, if you build automation for that, how do you test that if release
- 53:11happened correctly other than actually making a release and then getting bug reports from people
- 53:16about the 404s on your PyPI page, which is how I found out about this. It's a little frustrating.
- 53:20For as much fantastic testing software and automation, sometimes you just got to hold your breath and
- 53:28push the button. And you're not going to write a unit test that says, let's push this thing to
- 53:32test.pypi.org and see if all the links on the readme are right. That's, I mean, maybe, I guess you could,
- 53:39but if anyone's done that, please get in touch because I messed that up this weekend.
- 53:44At some point you got to go, okay, we've tested enough. It's got to go. And even if you write a
- 53:49unit test, you know, it's not necessarily exactly the same. It's not the same and you'll fiddle with
- 53:54it and break it. And which is what happened to me. And yeah, absolutely. There'll be another release.
- 54:00It's fine. There'll be another release. We'll get it fixed. All right. You mentioned Town Crier
- 54:04already. I think maybe we can just carry on, but people can check that out as well. You know,
- 54:09I guess give them a quick shout out as well while we're here. This comes from the Twisted project,
- 54:12you said? Yeah. And Twisted is another of these projects that's been going for a very long time.
- 54:16So this is a mature tool. It's just a little bit quirky in the way that they wanted to do things.
- 54:22I think at least when I first looked at it, it was something like the fixes went into a .fix file
- 54:27and the features went into a .feature file, things like that, which just, and it didn't do markdown.
- 54:32And I knew that I was going to have people who needed markdown, even though I prefer
- 54:36restructured text. So I built Scriv to kind of along the same ideas, but in a more flexible way.
- 54:43Right. Okay. Cool. One of the things you may have in your readme or other parts of your documentation,
- 54:51your markdown files or restructured text, I suppose, would be example code. Like I talked about that.
- 54:56It would be nice to know some level of correctness to that, right?
- 55:01Yes.
- 55:02We have MKTestDocs. Tell us about this.
- 55:05This is one of these things that's the interesting thing to me is that you've got docs, you've got tests,
- 55:09you've got doc strings, and there's all these tools that do all the different pairings of stuff,
- 55:15right? So you can run tests against the code in your doc strings. This runs pytest against markdown
- 55:22files that have code in them. So it's running the code in the markdown files. And it's fascinating,
- 55:27again, to see how all of this automation, this project level automation comes together to try to
- 55:33close all those little gaps. Like I mentioned the problem of a broken URL on my readme. You could
- 55:38also have code that you had typed into a markdown file, and it turns out it doesn't work for whatever
- 55:43reason. Maybe it worked once, something changed. This will run the code in your markdown files so that
- 55:49you know that it still works, which is great. I'm all for more testing.
- 55:52Yeah. Well, even if you're not actually trying to execute it, and like I'm asserting that my example
- 55:58returns seven, because maybe it says connect to a database and do other crazy stuff, it could at least
- 56:03be syntactically valid.
- 56:05Yes.
- 56:05Right. It could look at it and go, I loaded that up and I parsed that function and it didn't die.
- 56:09That's a start.
- 56:10Exactly. There's levels of testing. And like you said, it can get very complicated to do full testing of
- 56:16some kinds of code.
- 56:18So how do you test your markdown, your readme.md? Well, see, I fire up a series of a cluster of Docker
- 56:25containers using Docker Compose, and then we can run the one example and then it's good.
- 56:29If there's a tool out there that launches missiles, I don't want to know how you're testing the code
- 56:33in your readme.
- 56:34Yeah. There's another one that is a little bit tough to test. One of the things that's interesting,
- 56:39by the way, this tool comes from Vincent WormerDem, that it deals with multiple code blocks. So if you
- 56:46do the language specifier in markdown, so the triple dot back tick, and then you just say the word
- 56:52Python or JavaScript or C# or whatever, that'll tell the formatters, format it like,
- 56:59this, right? It's this type of syntax you should see. So if you do the Python one,
- 57:04it will run those. And it'll also do bash as well, I believe. But what's interesting is you could have
- 57:10a, like, and here's how you set it up, and then here's how you call it type of series of code blocks.
- 57:15And it will run all the code blocks, or you can actually say, you know, remember what you saw
- 57:21before, because that was the first half of what you need to do the second half.
- 57:24Right. Because you're trying to tell a story. This is like a Jupyter notebook where you're
- 57:27interspersing code with commentary and then more code, and you need the multiple blocks of code to
- 57:34all be executed together, or, you know, one after the other. You need the first one's results in the
- 57:39second one.
- 57:39I certainly appreciate a don't completely repeat yourself every time in your code example,
- 57:45right? It would say you get started by importing this, and then you would create a class like this
- 57:49that it arrives from. You wouldn't want to have to have import, import, import over and over,
- 57:54right? So yeah, this is cool. I don't use this one either, but it definitely looks like something I
- 57:58could see adopting. Now here's something called shed, which is not exactly what I want to talk about,
- 58:06but it's for formatting code. So it runs autoflake, it runs pyupgrade. You mentioned that before,
- 58:11I believe, for upgrade. You can specify a version, pyupgrade me to Python 3.8, but not further,
- 58:17please.
- 58:17Pyupgrade is good.
- 58:18Yeah. Yeah. It runs black. But what I do want to talk about is it runs black in docs.
- 58:23Which formats the code in the doc strings and in your docs. Which again, is one of those pairings of,
- 58:30let's put this tool into that thing and have it do just a little bit.
- 58:35This is super hard to get just right because you want to format code. And, you know, one of my
- 58:41markdown editors, if I highlight some code and I hit shift tab to unindent, it'll put everything just to
- 58:47the left. I'm like, no, no, no, no, this is Python code. It has to have the space. You can't just put
- 58:51it all the left, like undo one level, right? The things like that, where it's just like, oh, this,
- 58:55this is not quite formatted, right? Just running this maybe even as a pre commit hook would be
- 59:02glorious. Just like all of my code in my examples and my triple back tick Python becomes black,
- 59:08blackened.
- 59:09Yep. And if you're using black, then you really want it everywhere, right? You've given up control
- 59:15of the formatting of your code willingly. You see the value of it and you just want it everywhere.
- 59:21And this is great for getting it into your docs too.
- 59:23Exactly. Like there's, there's gaps. Maybe your Jupyter notebooks don't have black formatter,
- 59:27like get it in there, get it into the docs, get it everywhere.
- 59:29Yeah. Getting to read me. Cool. Okay. let's see this one. Another person gave a shout out to
- 59:36your next project here. This is Cy Gallimardi said, Hey, we should check out cog.
- 59:42Yeah. Cog is one of those tools that I wrote very long time ago to do one particular thing.
- 59:48And it ended up being useful in lots of other ways. Basically cog is a way that you can make a text file
- 59:55like a readme.md and put little bits of Python in the middle of it. Not because you're trying to
- 1:00:00display that code to people, but because you want the results of that code to be part of your document.
- 1:00:05A little bit like a, a Jinja, right? A template maybe.
- 1:00:08Exactly. But it's a little bit backwards because Jinja starts with the idea. I mean,
- 1:00:12Jinja is, well, it is like Jinja actually. I should, I shouldn't say that. It's just like Jinja.
- 1:00:16But instead of being HTML, you want it to be text or something, right?
- 1:00:19Right. It can be anything you want. Jinja is particular to HTML in some ways,
- 1:00:23but cog is completely agnostic. The bigger difference from Jinja with cog is that the output of your code
- 1:00:30can go into the document so that you process, you run the document, the output of your code
- 1:00:36becomes part of the document. So sort of the input file and the output file are the same file so that
- 1:00:41you get sort of an idempotent kind of processing of the file. So you can have a readme.md. You run cog
- 1:00:47on it. You still just have a readme.md, but now you've got the results of the computation in the file.
- 1:00:52So for instance, I use this in the coverage.py docs. There's a database schema for the SQLite data
- 1:00:58file that coverage.py writes. That schema is in a string in a Python file someplace, but I also want
- 1:01:04it to be in my docs. So I use cog in the restructured text file to go and get the string from the Python
- 1:01:10code and splat it into the restructured text file so that I know that the two are the same because
- 1:01:17there's one source of truth and an automated process to bring it into the restructured text file.
- 1:01:22You know how they say there's like two hard problems in computer science, naming things,
- 1:01:26caching validation and off by one errors. Yes. I feel like maybe a fourth one should be
- 1:01:31identifying and controlling and keeping the one source of truth.
- 1:01:35One source of truth is a big thing with me and all of these kinds of processes where
- 1:01:40you want to make it convenient to write information, but you also want to make it convenient to read
- 1:01:46information. And so you might want to publish information in more than one place. For instance,
- 1:01:50I mentioned that my changelog is in a .rst file, but it also goes into GitHub releases because people
- 1:01:57want to read it in GitHub releases. So I get the information out of the changelog and automatically
- 1:02:02publish it into GitHub releases. Yeah.
- 1:02:04Cog has found a lot of use. Simon Willison has been very positive about Cog. He uses it in a number
- 1:02:09of places to keep his documentation up to date. I've used Cog to an extreme extent in my GitHub profile
- 1:02:16to, for instance, grab information from PyPI where I mentioned what my projects are and things like
- 1:02:22that. Yeah. Yeah. Cog is one of those things that started small and it's just has chugged along for a
- 1:02:27long time. And I continue to find more uses for it. Yeah. That's great. Colin says using Cog to document
- 1:02:33CLI tools is Chef's Kiss. Yeah. So very nice. Very nice. We're getting to the end here. We're almost out of time, but luckily we're also almost out of things to talk about. Well, we're not out of them. We're stopping.
- 1:02:45There's a lot. There's a lot. This is a small sampling. But here's one by Haidang that's awesome tools for the readme profile. So this is a lot of, let's do the test. Click on their profile and see how it looks. You know what I mean?
- 1:02:58Yep.
- 1:02:59Got to get a little more in there. So this is more of a collection, but we have readme's for projects, but also readme's for humans, right? You know, if you go to my account, you see a particular thing. Some people have really fancied that up with lots of things. And this project here talks about, well, what kind of cool stuff can you put on there that people might see?
- 1:03:20I haven't looked at yours recently. What's your profile look like?
- 1:03:22So it's not as visual as this. It has a few badges, but I used Cog to, for instance, pull in the six most recent blog posts onto my page. I wanted to do recent tweets, but that was going to be hard because Twitter API wanted me to authenticate. And half the time I turn away when I'm asked to authenticate against the thing, because that's the hardest part of the whole thing. And it takes away all the fun.
- 1:03:46The main thing I used Cog for, I used Cog on my readme. And one of the things I did with it was to write Python code to generate that markdown syntax for badges and to put together shields.io badge URLs. So both of those things are complicated, right? Shields.io is amazingly powerful, but how you actually put all the bits of information into the URL is hard to get right. And it's fiddly. There's like ampersands and you have to quote them in the markdown or something.
- 1:04:13It's a regular expression, yeah.
- 1:04:14Yeah, I mean, it's just too intense. So I wrote Python functions to put together shields.io URLs. And then I called those Python functions from the Cog code in my readme.md. And there's a GitHub action that runs the Cog on it.
- 1:04:29Whenever I publish a blog post, my blog publishing triggers the GitHub action that recalcs my GitHub readme. So the latest blog post is on the top of the GitHub readme. Like I said, you can take this a long way. I may have gone too far with this.
- 1:04:45Oh, I love it.
- 1:04:45But yeah, it's cool to see how the tools can come together and you can automate all of these processes. Again, to go back to one source of truth, my blog is the one source of truth about what are my blog posts. But the information is also on my GitHub readme because I thought that would be a useful thing for people to see when they look for me on GitHub.
- 1:05:04Yeah, that's fantastic. All right. So this project here is like a whole host of things like that that you could do. And I love the use of Cog and the GitHub actions just to chain it together.
- 1:05:16Awesome tool for readme profile. It's sort of like a blank catalog. Like you might want to put this on your profile or put that on your profile.
- 1:05:24If it was 1994 and you wanted a blink tag, here's a whole bunch of or a little animated diggy GIF you could figure out.
- 1:05:31So you get these graphs of like what were your last year contributions over time or when are you most likely to?
- 1:05:39Yep.
- 1:05:39Some more badges. Like here's the latest blog posts, which is a thing that people can pull in if they don't want to do more of it themselves.
- 1:05:46Yep.
- 1:05:47How much time you spent coding in various languages per month or per week, weekly here. That's pretty wild.
- 1:05:54Yeah. He's got a lot of things here, like what you're listening to on Spotify.
- 1:05:58Yeah. Do they have emails, one of your coding activities? Cause I spend a lot of time in email and I wish.
- 1:06:02Are you typing code in your email? You might be doing it wrong.
- 1:06:06I'm just spending a lot of time in email. I wish I didn't.
- 1:06:10Okay. So it's got a, what time of the day? Are you a morning person? Are you a,
- 1:06:15it has a snake game that goes around and races like a centipede.
- 1:06:20You know, you're right. This is very reminiscent of the early, like geo cities kind of internet where
- 1:06:26everything flashed and blinked and looked cool and had contrasting colors and stuff like that.
- 1:06:32Yeah. So people, I mean, we're only like a third of the way through this game. People can,
- 1:06:36they can give themselves trophies. They can give themselves, I think this is stack overflow. Yeah.
- 1:06:41Stack overflow reputation.
- 1:06:43There's just a ton of different stuff you can put together. And I think it all comes back to,
- 1:06:47you know, besides like maybe overdoing with digging animated GIFs and blink tags. I think it comes back
- 1:06:53to your GitHub profile is a little bit like your resume and how much can you say more than just,
- 1:06:59Oh, I forked Django.
- 1:07:00Right. And you want, I mean, the point of the profile is to let people know about you and
- 1:07:05hopefully they'll be interested in you in whatever way you want them to be interested. So all of these
- 1:07:11things that attract attention and let you can choose something here that sort of has your vibe
- 1:07:17in whatever way. For instance, my page is very text heavy, but that's my vibe. That's the way I am.
- 1:07:22And if that's not for you, then you should look for someone else's profile. But if you want to know
- 1:07:26what I'm listening to on Spotify, then that's a thing to put on a profile page. So it's great. I
- 1:07:32mean, self-expression is a wonderful thing. And the fact that GitHub lets you build your own profile
- 1:07:37and that there are all these tools to do whatever you want with it. It's amazing.
- 1:07:41It is amazing. All right. I think this is probably going to be it for our final thing to cover and
- 1:07:46read me and friends. Let's close this out just really quickly with a, give us the 7.0 story on
- 1:07:53coverage. Oh, coverage on 5.7.0. Yeah. That's a big deal. All right. I mean, if you're going to
- 1:07:58make that big of a number, it might not be a big deal. This is a tricky thing. So really what happened
- 1:08:02was I was looking through the bugs that people were reporting and a lot of them had to do with,
- 1:08:06it couldn't find my source file where I said it should put the source file. And I was answering with,
- 1:08:11well, you have to do these tricky things in your configuration file. And I thought maybe that should
- 1:08:15be simpler. So really the reason it's a 7.0 is because I made things better, but I also think you
- 1:08:22might have to change your settings in order for them to still work the way they used to work.
- 1:08:26So when you look at the change log for coverage.py 7.0, there's no like amazing big thing. The biggest
- 1:08:33feature change is that when you get a text report out, now it can be in markdown format instead of
- 1:08:38in plain text format. And that's cool, but that's not like a 7.0 level feature. The real change is,
- 1:08:44I think it's going to be better, but a few of you might have to update your settings. And I wanted to
- 1:08:49make it clear to people that that was going to happen. So I bumped the number to 7.0.
- 1:08:54That seems totally reasonable and still going strong. It's a beta one right now. When do you foresee
- 1:09:00this becoming the pip install coverage sort of version?
- 1:09:04That's a great question. I have to admit, to be perfectly honest with you, that I have been
- 1:09:09disappointed in the past at how few people try out betas. So I'm putting this out there in a
- 1:09:15disciplined way and I'm trying to talk about it, like go and try the beta, but eventually I'm going
- 1:09:20to get tired of waiting for people and I'm just going to publish it. And if the bug reports come
- 1:09:23in then, then we'll deal with them then because there's only so much you can do to get people's
- 1:09:28attention on a beta.
- 1:09:28Absolutely. I can totally understand that. All right. Final two questions before you get out of here.
- 1:09:32If you're going to write some Python code, what editor are you using these days?
- 1:09:36Vim.
- 1:09:37Vim. Right on.
- 1:09:37And I do not have any code completion plugins.
- 1:09:40Okay.
- 1:09:40I've said this before. I'm very low tech.
- 1:09:42Perfect. And then notable PyPI package. I kind of feel like we've covered a bunch,
- 1:09:46but if there anything you want to give a shout out.
- 1:09:48We did cover a bunch. You know, I've been very enamored of Rich, I have to say. It's very cool.
- 1:09:53I'm looking forward to hearing more about what Textual is going to be for building
- 1:09:57terminal UI interfaces for applications. But Rich is astoundingly competent at what it tries to do.
- 1:10:05Yeah. And what they're doing on the terminal is just nuts.
- 1:10:08It is.
- 1:10:09Nuts in a good way.
- 1:10:10I only discovered just the other day, maybe people don't know this, that you can,
- 1:10:14one of the Rich styles, and this is a feature that terminals support and Rich is just tapping
- 1:10:18into it, but it gave a convenient way to do it. You can output text, you know, that's red or that's
- 1:10:21bold. You can output text that's a link where the word in the terminal is just, you know, click here
- 1:10:27and behind it is the URL you told to have it. And then you can click the link in the terminal
- 1:10:32and go and visit things. Astounding.
- 1:10:34I'm familiar with terminals detecting links, but not having a different link text than the actual link,
- 1:10:41right?
- 1:10:42Yes. That's what I'm talking about. I didn't know it could do that.
- 1:10:45Yeah. That's nuts.
- 1:10:46Yeah. Cool. Well, that's definitely a good one. All right. Final call to action. People are thinking
- 1:10:50about their projects. I want to get started with some of these ideas. What do you tell them?
- 1:10:53Think about your users. Think about who you're writing for. And it's different people at different
- 1:10:58times and write, write words. I actually want to say one more thing. We talk about change logs as being
- 1:11:04really good for the users of your library. I find when I sit down to edit my change logs that I
- 1:11:09understand my own product better and that I think about the features I've built in a new way and
- 1:11:15sometimes actually go back and change them because in the process of trying to describe what happened,
- 1:11:19I learned something. Yeah.
- 1:11:21Writing for readers is great. Writing, you will learn things when you write. Write more. It'll be good.
- 1:11:26I can definitely see that. You're like, I want to say, but it doesn't quite do this unless I change
- 1:11:31this other thing in code and then it'll be true to what I tried, wanted to say here. So yeah. Yeah.
- 1:11:36Perfect. Yes. All right, Ned. Thanks for coming back on the show. Great to have you here.
- 1:11:39It's always fun. Yeah. See ya.
- 1:11:41This has been another episode of Talk Python To Me. Thank you to our sponsors. Be sure to check
- 1:11:48out what they're offering. It really helps support the show. Listen to the Local Maximum podcast.
- 1:11:53Learn about topics as diverse as the philosophy of probability and Elon Musk's next move.
- 1:11:59Just search for Local Maximum in your favorite podcast player.
- 1:12:02Take some stress out of your life. Get notified immediately about errors and performance issues
- 1:12:08in your web or mobile applications with Sentry. Just visit talkpython.fm/sentry and get started
- 1:12:15for free. And be sure to use the promo code talkpython, all one word. Want to level up your Python?
- 1:12:21We have one of the largest catalogs of Python video courses over at Talk Python.
- 1:12:26Our content ranges from true beginners to deeply advanced topics like memory and async. And best
- 1:12:31of all, there's not a subscription in sight. Check it out for yourself at training.talkpython.fm.
- 1:12:36Be sure to subscribe to the show. Open your favorite podcast app and search for Python. We should be
- 1:12:41right at the top. You can also find the iTunes feed at /itunes, the Google Play feed at /play,
- 1:12:47and the direct RSS feed at /rss on talkpython.fm. We're live streaming most of our recordings these
- 1:12:54days. If you want to be part of the show and have your comments featured on the air, be sure to subscribe
- 1:12:59to our YouTube channel at talkpython.fm/youtube. This is your host, Michael Kennedy. Thanks
- 1:13:05so much for listening. I really appreciate it. Now get out there and write some Python code.
- 1:13:09izepotletcwnc.com