Latest / Talk Python To Me / #443: Python Bytes Crossover 2023
Transcript
- 0:00This episode is a special crossover from my Python Bytes podcast that I co-host with Brian
- 0:04Aukin.
- 0:04It's got a different vibe than the interview shows here and short topics coming in fast
- 0:10and quick.
- 0:11If you haven't listened before, I think you're going to enjoy it.
- 0:13So here are a bunch of excellent Python tips and tools to close out the year.
- 0:18See you all in the first week of January.
- 0:21And while I'm talking directly to you, thank you very, very much for taking the time to
- 0:26listen to my shows and support all of my projects.
- 0:28Cheers.
- 0:30This is Talk Python To Me, sort of.
- 0:32Episode 443, recorded December 19th, 2023.
- 0:37Welcome to Talk Python To Me, a weekly podcast on Python.
- 0:54This is your host, Michael Kennedy.
- 0:56Follow me on Mastodon, where I'm @mkennedy, and follow the podcast using @talkpython,
- 1:01both on fosstodon.org.
- 1:03Keep up with the show and listen to over seven years of past episodes at talkpython.fm.
- 1:09We've started streaming most of our episodes live on YouTube.
- 1:12Subscribe to our YouTube channel over at talkpython.fm/youtube to get notified about upcoming
- 1:18shows and be part of that episode.
- 1:20This episode is sponsored by Posit Connect from the makers of Shiny.
- 1:24Publish, share, and deploy all of your data projects that you're creating using Python.
- 1:29Streamlit, Dash, Shiny, Bokeh, FastAPI, Flask, Quattro, Reports, Dashboards, and APIs.
- 1:35Posit Connect supports all of them.
- 1:38Try Posit Connect for free by going to talkpython.fm/posit.
- 1:42P-O-S-I-T.
- 1:43And it's also brought to you by us over at Talk Python Training.
- 1:48Did you know that we have over 250 hours of Python courses?
- 1:52Yeah, that's right.
- 1:54Check them out at talkpython.fm/courses.
- 1:57Hello, and welcome to Python Bytes, where we deliver Python news and headlines directly
- 2:01to your earbuds.
- 2:02This is episode 365.
- 2:05Wow.
- 2:06Recorded.
- 2:07It's like we've been doing it for a year.
- 2:08Yeah.
- 2:09Recorded December 19th, 2023.
- 2:13Yeah.
- 2:14And I'm Brian Okken.
- 2:15Hey, I'm Michael Kennedy.
- 2:16And yeah, if we did it, if somebody listened to one a day from now on, they would be behind
- 2:23because we'll be way ahead of 365 by the time they finish.
- 2:27But yeah.
- 2:27Still be awesome.
- 2:30Well, want to kick us off with something cool?
- 2:34Oh, before we kick it off.
- 2:35Yeah, go ahead.
- 2:36Let's say that this episode is sponsored by us.
- 2:39So please support us and other people.
- 2:42I'm going to talk about that a little bit later at the end of the show.
- 2:45But also check out all the courses at Talk Python Training.
- 2:50Check out the Complete pytest course.
- 2:52You can be a Patreon supporter.
- 2:54And also, if you want to connect with us, one of the best ways to do it is through on
- 2:58Mastodon.
- 2:59And we're all on Fosstodon, or at least Michael and I are.
- 3:03At M.
- 3:04Kennedy, @brianokken, and at Python Bytes.
- 3:07Indeed.
- 3:08Hey, do I feel like I'm really fast, Brian?
- 3:12Like Neo in the Matrix?
- 3:13Mind-bendingly fast?
- 3:15Let's go with yes.
- 3:17Okay.
- 3:18I appreciate that.
- 3:19Because I just got fiber, gigabit fiber installed 30 minutes ago.
- 3:24I was hoping it wouldn't destroy the show, but it almost didn't make it, but it made it.
- 3:28Ooh, nice.
- 3:29So hopefully that doesn't curse it, that something doesn't go wrong and it will crash.
- 3:32But 950 megabit down, which is fine, but 950 megabit up is glorious.
- 3:37We should speed up the playback speed when we release the MP3 so it sounds really fast.
- 3:43No, we're talking really fast because it's really uploading.
- 3:45Yeah.
- 3:45No, let's talk about Hatch, because Hatch is awesome.
- 3:49OFEC is the maintainer-creator of Hatch, and boy, oh boy, has he gone big on his latest release,
- 3:561.8.0.
- 3:57So Hatch is like Flit, is like PDM, is like pip, ENV, and many of these other poetry, others.
- 4:05If I'm leaving your version of this out, I apologize.
- 4:08But with version 1.8, this has gone in a bit of a different direction.
- 4:15You know, I had OFEC on the Python packaging panel.
- 4:19I think Steve Dower was there.
- 4:20Some other folks were there.
- 4:22Really interesting that there's this tension between should there be an app that manages
- 4:28Python environments with Python, or should there be a thing that manages the Python itself,
- 4:34right?
- 4:35Kind of like PyEMV, for example, right?
- 4:38So Hatch has gone in that direction of now Hatch manages Python, not just Python projects.
- 4:45And there's this thing to solve this problem in the form of PyApp.
- 4:50So PyApp is even maybe more awesome.
- 4:53PyApp is a runtime installer for Python projects written in Rust, and they can be, you ready
- 5:00for this?
- 5:00I'm so, so excited.
- 5:02Your Python app can be distributed as a standalone executable, a .exe or .app for users.
- 5:09What do you think, Brian?
- 5:10I'm very interested in finding out more.
- 5:12Now, this whole post is a little bit wordy.
- 5:15So let me jump into the omnivore version of it over here, which has a huge icon.
- 5:20So Ofex says, look, one of the things that's been a perpetual problem for Hatch and all the
- 5:25others I named is that Python itself is a dependency.
- 5:27So in order to use Hatch or any of these other tools or any apps, you have to say, well, go
- 5:32get Python and then get back to me and we'll start talking, right?
- 5:35So he came up with this thing called PyApp that will create installers for the different
- 5:40platforms.
- 5:40Claims it's trivial.
- 5:41It's probably never trivial, but possible.
- 5:44Possible would be awesome even.
- 5:46And so starting with this releases, not only are the binaries available for every platform,
- 5:52but there are installers as in like install wizards on Windows and a DMG type thing, I'm
- 5:59guessing, or a PKG on macOS.
- 6:01But so the installer for the macOS is signed using the certificate from the same account used
- 6:06to sign the official distributions of Python.
- 6:08So you won't get any security warnings or blocking.
- 6:10Thank you, Ederbin, for helping out with that.
- 6:13And Hatch itself with any good system is self-updating.
- 6:16So you can Hatch self-update.
- 6:18What else I want to point out?
- 6:19There's also a new Python, like Hatch space Python command group that will allow you to
- 6:24manage things.
- 6:25So you can show what you have installed.
- 6:27You can install different versions of Python, CPython and PyPy for those.
- 6:32Works with virtual environments.
- 6:34It has built in rough and Ruff format integrations.
- 6:38Traditionally, it's been somewhat slow to like activate and set up a virtual environment
- 6:45that's already previously been installed because it'll refresh and recheck that all of the
- 6:50dependencies are there and everything.
- 6:52So now it does a hash of those.
- 6:54And so only if the dependency statement doesn't match the hash, right?
- 6:59Basically, so it'll pre-compute all that stuff.
- 7:00So now it should be basically instant.
- 7:03So also some minor breaking changes around build defaults and the new app build targets,
- 7:09what I've been raving about.
- 7:10So OFAC, you killed it.
- 7:12Can't believe it.
- 7:12It's awesome.
- 7:13Awesome.
- 7:13So Hatch has hashes?
- 7:16If you hash a hatch with hashling and, you know, like there's some kind of tongue twister
- 7:24in there we could do.
- 7:24I'm not doing it though.
- 7:25Got to be.
- 7:27I'm excited about this.
- 7:28It's very cool.
- 7:29I definitely want to play with it.
- 7:31Yeah.
- 7:31Yes, indeed.
- 7:32This portion of Talk Python To Me is brought to you by Posit, the makers of Shiny, formerly
- 7:37RStudio and especially Shiny for Python.
- 7:40Let me ask you a question.
- 7:42Are you building awesome things?
- 7:44Of course you are.
- 7:45You're a developer or a data scientist.
- 7:47That's what we do.
- 7:47And you should check out Posit Connect.
- 7:50Posit Connect is a way for you to publish, share and deploy all the data products that you're
- 7:55building using Python.
- 7:56People ask me the same question all the time.
- 8:00Michael, I have some cool data science project or notebook that I built.
- 8:03How do I share it with my users, stakeholders, teammates?
- 8:06Do I need to learn FastAPI or Flask or maybe Vue or React.js?
- 8:11Hold on now.
- 8:12Those are cool technologies and I'm sure you'd benefit from them, but maybe stay focused on
- 8:16the data project.
- 8:17Let Posit Connect handle that side of things.
- 8:19With Posit Connect, you can rapidly and securely deploy the things you build in Python.
- 8:25Streamlit, Dash, Shiny, Bokeh, FastAPI, Flask, Quattro, Reports, Dashboards, and APIs.
- 8:31Posit Connect supports all of them.
- 8:33And Posit Connect comes with all the bells and whistles to satisfy IT and other enterprise
- 8:38requirements.
- 8:39Make deployment the easiest step in your workflow with Posit Connect.
- 8:43For a limited time, you can try Posit Connect for free for three months by going to talkpython.fm
- 8:48slash posit.
- 8:50That's talkpython.fm/P-O-S-I-T.
- 8:53The link is in your podcast player show notes.
- 8:55Thank you to the team at Posit for supporting Talk Python.
- 9:00I'm not sure how long this has been out, but Hinnick has been promoting a new project that
- 9:08he's got called Services or SVCS, which is short for Services and pronounced services.
- 9:15And it is a, I think it could be used for more than web stuff.
- 9:19But the intent, I think, was for removing some labor plate code from hooking up dependencies
- 9:27and different, like your database and your cache and all sorts of stuff to an application.
- 9:34Typically a web application, but I think it could really be anything.
- 9:38But it's a flexible service locator.
- 9:41And one of the reasons why I haven't covered it yet on Python Bytes, I don't think I have,
- 9:47is because I didn't quite understand what it was doing.
- 9:51And it took me a while to get my head around it.
- 9:53Why does this exist?
- 9:53But it's pretty cool.
- 9:56And Hinnick apparently realizes that it is a bit difficult to get your head around what this
- 10:01is doing.
- 10:02So he just recently released a video describing this project.
- 10:08So really great video describing services, what you can do with it, and also how to pronounce
- 10:16his name.
- 10:17He doesn't pronounce his last name, though.
- 10:19Apparently that's left for maybe episode two.
- 10:22But Shalavak, I guess.
- 10:25Anyway, it's pretty cool.
- 10:28Actually, I'm pretty excited about it after watching it.
- 10:31Watching the video.
- 10:33I thought maybe it wouldn't be for me.
- 10:35But especially for keeping services contained or the setting up services, looking them up
- 10:42within different parts of your application, and then getting them all cleaned up correctly
- 10:48at the end.
- 10:48That's kind of what it does, plus a whole bunch of other stuff.
- 10:51And one of the neat things is throughout all of this documentation, the documentation is
- 10:55amazing.
- 10:56Throughout all of this documentation, he has examples in aiohttp, FastAPI, Flask, Pyramid,
- 11:04and Starlet.
- 11:04Nice.
- 11:05And the video is talking about Flask, but it's cool that he just already hit all the bases.
- 11:11Like, how do I do this in Starlet?
- 11:13Well, it's just a little different.
- 11:15Most of them, mostly they're similar, but little different ways to use it throughout the different
- 11:21applications.
- 11:22So it's pretty cool.
- 11:23He also mentions in the video that he took a really long time really talking about the terminology
- 11:30and the glossary of the documentation.
- 11:33And actually, I really appreciate this of somebody saying, okay, this is generally what I think
- 11:39of as what the meanings for all of these words are.
- 11:43And a lot of these words are overused in the English language to begin with, and even in talking
- 11:50about programming, web programming.
- 11:51But things like, what is a service?
- 11:53What is a resource?
- 11:54What is a dependency?
- 11:55Service layer.
- 11:57He goes through a whole bunch of different terms, what it means to him and probably to everybody
- 12:02else, but if you're unfamiliar with him.
- 12:04And even a decent discussion of dependency injection.
- 12:07So one of the things he talks about is that this is not really a dependency injection thing.
- 12:13It's inversion of control, but it's a little different than service.
- 12:17Service locators are a little different than dependency injection.
- 12:20And I kind of appreciate that discussion.
- 12:23It's pretty cool.
- 12:23So anyway, kudos to Hinnick for doing this and for helping us pronounce his name.
- 12:29Yeah, this looks cool.
- 12:31I definitely want to check this out.
- 12:32It's news to me, so I will be checking it out.
- 12:34Cool.
- 12:35Mm-hmm.
- 12:35We have new leaders, Brian.
- 12:39We do.
- 12:40Yes.
- 12:40For the Python world, we have new leaders.
- 12:42And specifically, the steering council election results are in for next year.
- 12:48Okay.
- 12:48So for the 2024 term, we have Pablo Galindo Salgado.
- 12:53We've got Gregory Smith, Emily Morehouse, Barry Warsaw, and Thomas Waters.
- 12:57So very cool to see them all leading the way.
- 13:02There's a lot of familiar faces there.
- 13:04So that's pretty cool.
- 13:05I don't expect a whole lot of different from the year before, but here's the results.
- 13:10You can actually see in PEP 8105, you see everybody who was potentially a candidate, how many votes
- 13:19they got by people who are disenfranchised.
- 13:21I don't know what that means.
- 13:22Or the franchised voters, the one who are enfranchised, how many votes that they got.
- 13:28And you can put that all together.
- 13:29So this begs the question, like, well, how do you get on this list?
- 13:33You get on this list by being nominated by a core developer.
- 13:37So everyone on the list was nominated by a core developer.
- 13:39If you are a core developer, you can nominate yourself.
- 13:44So that could be the person you see here, because everyone I see, I think, is a core developer.
- 13:49Okay.
- 13:49But anyway, the results, the results are in, and we have those five folks.
- 13:54Welcome and congrats.
- 13:55Awesome.
- 13:55Nice.
- 13:56That's a good set of names, too.
- 13:58Yeah.
- 13:58So.
- 13:59Yeah.
- 13:59All right.
- 14:00Indeed.
- 14:01Well, there probably is some protocol around the election results, right?
- 14:07No, you could model it with classes, or you could functionally model it, like, in an immutable
- 14:12way, but I don't know about a protocol.
- 14:14Okay.
- 14:14We're just great at transitions on this podcast.
- 14:19The next I want to talk about Python protocols.
- 14:22So there's an article from Carlos Vecina, I think, called Python protocols, defining a protocol
- 14:31and when to use it.
- 14:32And actually, this is something that I have, I've been meaning to play with for actually
- 14:37some years, and I haven't really done much with it yet.
- 14:40So I really appreciate this article.
- 14:41He's talking about protocols are a feature of Python that were added in Python 3.8.
- 14:48So really anything maintainable right now, you can use protocols.
- 14:54And you kind of, mentally, I think of them kind of like class inheritance or mix-ins or abstract
- 15:03base classes.
- 15:04And that's one of the things he talks about in this article is they are in that same similar
- 15:10space, but you use them a little different.
- 15:13And you might use them together with other forms too, like with mix-ins and abstract base
- 15:18classes.
- 15:19So the article just goes through on how to define a protocol.
- 15:23And really, and he's also discussed also a decent tutorial on abstract base classes and mix-ins
- 15:29as well, which is nice to kind of describe them all together.
- 15:32But the protocol thing is just sort of, let me see if I can find an example.
- 15:37So you inherit, you have a class that's inherited from protocol and you give it, you kind of give
- 15:44it function definitions, but don't fill in the body.
- 15:47So that's kind of what a protocol is.
- 15:49And then other classes that use the protocol derive from that protocol.
- 15:56From like in his example, there's a class called explainable, something that has an explained
- 16:02function.
- 16:02And so you would derive from explainable and then your new class would be a instance of
- 16:11a protocol.
- 16:11But all it really says is that you can, other places that use it for types and stuff can
- 16:16declare that they need a protocol passed in or a explainable class.
- 16:21And then you can use anything that derives from that.
- 16:23So pretty cool.
- 16:24Yeah, Brian, let me jump in and just say one extra point here.
- 16:28Like what's awesome about this stuff is we've had duck typing like this.
- 16:33There's an assess fairness function that it has to call explain on the object passed in.
- 16:38And duck typing said, well, if it takes that, if you can pass it in there and it will run
- 16:42when you call explain on it, it must fit.
- 16:44Right.
- 16:44But the typing tools don't check.
- 16:46So like PyCharm, for example, would just go, well, it's a whatever.
- 16:49So good luck with that.
- 16:50But once you do this protocol stuff, if you say the function takes an explainable and you
- 16:55have explainable as a protocol, you can pass stuff in and it doesn't even have to derive
- 17:00from or be related to that protocol in a base class.
- 17:03Like anything that is passed in there, the type system will look at it and verify it hasn't
- 17:08explained, even if it's in a third party package and you don't control it.
- 17:11So it's like a way to project typing structure onto a dynamic thing that is not necessarily
- 17:16your code.
- 17:17It's wild.
- 17:17Oh, cool.
- 17:18I kind of had that a little bit wrong then.
- 17:20Awesome.
- 17:21You can drive from it.
- 17:22It gives you more information potentially, but.
- 17:24It doesn't have to be.
- 17:25You don't even have to, which that's the totally wild aspect.
- 17:28That's what I think is really different for this.
- 17:30Okay.
- 17:30Yeah.
- 17:31Oh, awesome.
- 17:32That's pretty cool.
- 17:33No.
- 17:33Yeah.
- 17:34So clearly I haven't thoroughly read this article, but I do want to get into really getting my
- 17:40head around abstract based classes, mix ins and protocols and stuff.
- 17:43And partly.
- 17:44I wouldn't say that though, because like your experiences in C++, mine also is in C++ and C
- 17:49sharp and all of those languages have these interface ideas, but there's, they're, they're put
- 17:53into the type system through inheritance.
- 17:55And so you can inherit from it and it does what you expect.
- 17:57And it seems the right thing, but what's weird is you don't even have to.
- 18:00That's what's weird about it.
- 18:01Okay.
- 18:02Cool.
- 18:02Oh, awesome.
- 18:03Ah, now I definitely want to play with it more.
- 18:05yeah.
- 18:06Cause I've kind of missed that aspect of C++ in Python.
- 18:09Yeah.
- 18:10so nice.
- 18:11Anyway, also, I'm assuming it's a AI generated image, but really cool image at the top of the
- 18:18article.
- 18:19It's good.
- 18:19I don't, I'm not sure what my opinion is about it.
- 18:21I'll ask ChatGPT, how I feel about it.
- 18:23It's hard to describe how I feel.
- 18:25So I'll, you know, yeah, I'm actually sort of, I don't know, this is a tangent, but I've
- 18:31switched to, was, was playing with like Bing is my primary search engine at work.
- 18:37I just, I don't know that a new computer, it just was there and I'm just going with it for
- 18:41a while, but everything I search is like, it gives me an AI generated answer first.
- 18:45And I'm like, I don't, I don't know if I like that very much.
- 18:49Yeah, I know.
- 18:50I know.
- 18:50Anyway, well, that's, that's it for our main stuff.
- 18:53Do you have any extras?
- 18:55I could have almost made it an extra, extra, extra this time.
- 18:58So yeah, sure.
- 18:58I do.
- 18:58First of all, I've been wanting to say this several times and I'm usually like looking at
- 19:03my screen and see what I want to share and stuff.
- 19:05And I didn't have this anywhere.
- 19:06So I just pulled up Mastodon to remind me there are tons of people interacting with us
- 19:11over on Mastodon.
- 19:12And I've had some great conversations and I want to, I'm sure you do too, Brian, want to
- 19:16follow people back, but there's, there's kind of a, at least for, I'll say these are Michael's
- 19:21Mastodon's conventions.
- 19:23you, you could take them for what you want.
- 19:25I just made them up, but this is how I think about it.
- 19:27So people will follow me and I'm like, huh, did that person follow me?
- 19:30Cause they listened to the show and listened to Brian say, you should come join us and have
- 19:33a conversation.
- 19:33Hey, I'd like to follow that person.
- 19:35But a lot of times they have no picture, no description, no web pages, no posts.
- 19:39You're like, yeah, maybe not next, you know?
- 19:42And so I'm just going to say, if you have a picture and a description, a description seems
- 19:47somewhat relevant.
- 19:47I will certainly follow you back.
- 19:49If you have posts, that's plus one.
- 19:51If you have a verified webpage, which is easy, another plus one.
- 19:54And a lot of people have private accounts who follow me.
- 19:57I'm like, why are you in social media?
- 19:59If you want a private account?
- 20:00I don't understand what this is because your profile is public.
- 20:03Just your posts are private, but the platform has a way to have private posts.
- 20:07I don't understand.
- 20:08So anyway, probably not going to get a lot of engagement.
- 20:11If you have a private account, just post private messages for things you don't want to see.
- 20:15So, and while I'm on the topic of Mastodon, I had a really nice and productive conversation
- 20:20with the PSF around my mask rant on PyCon.
- 20:23So that was nice over there.
- 20:25Some people weren't nice as they sent me, like not necessarily nice responses, but the PSF
- 20:29did.
- 20:29And that was cool.
- 20:30That's nice.
- 20:30Yeah.
- 20:31All right.
- 20:31Next one.
- 20:32Oh, wait.
- 20:33Before you move on, I just want to add my two cents on the picture.
- 20:38I also prefer to be able to see who it is, but also primarily if the picture is something
- 20:44that they're using on other stuff.
- 20:45So like if a lot of people have a, their profile picture on their, like the profile picture on
- 20:50their blog and on their, and in their primarily a GitHub user and, and they have the
- 20:56same profile there, even if it's like a stylized something, but if it's the, if it's distinctive
- 21:02and the same everywhere, like glyph, for instance, has a, has a different thing for them.
- 21:07I I'm okay with that, but most people I think go with their picture.
- 21:11I think it's the right answer.
- 21:12But yeah, when I say picture, I don't mean necessarily it has to be your picture.
- 21:16Just the fact that it's not the default icon.
- 21:18You've taken enough effort to put in something, even if it's just a picture of a triangle, I don't
- 21:23care.
- 21:23You know?
- 21:24Yeah.
- 21:25All right.
- 21:26Paul is asking in the audience, what is your secret?
- 21:29Okay, well, we'll do this.
- 21:33we, earlier on, we were talking about how Michael's got a faster internet now, so we
- 21:39should make it really fast speed.
- 21:41and then somebody commented, wagrants, wagrants, commented, I played it at one and a half
- 21:47times speed.
- 21:47Then I got up to a live event.
- 21:50and all of a sudden Brian should sounded like he got drunk in one second.
- 21:55and so I said, Brian's secret is out.
- 21:59So nice.
- 21:59I'll just have another drink of my, Irish coffee.
- 22:03It's coffee.
- 22:03Trust me.
- 22:04All right.
- 22:06more extras.
- 22:08So, Dropbox spooks users with turning on new AI features that can almost automatically
- 22:15send your private documents to OpenAI.
- 22:18Now you have to interact with part of the site for it to happen, but it doesn't say, Hey,
- 22:22necessarily, cause you does, you touch this.
- 22:24We're now sending your social security number away.
- 22:27but anyway, that's kind of unnerving.
- 22:31Yeah.
- 22:31Yeah.
- 22:32So you can check that out on defaulted to on if you're not subject to the GDPR, but defaulted
- 22:38to off if you are.
- 22:40So, you know, plus one for GDPR there, I suppose.
- 22:43So mine was turned on.
- 22:44Okay.
- 22:44So you have to go check to make sure that they're not sharing all of your.
- 22:47Yes, exactly.
- 22:49And it's on by default for you, Brian.
- 22:50So you might want to check the whole conversation.
- 22:54It's on ours.
- 22:55The, the comment section of our second is like the top notch place for comments, I
- 23:00think.
- 23:00So really good.
- 23:01Okay.
- 23:02Yeah.
- 23:03There's, it talks about how to go find it.
- 23:04So anyway, this like maybe think, you know what?
- 23:06I should really be a little more.
- 23:07I have, I have like three terabytes of data and Dropbox.
- 23:10So I'm like, maybe I should be a little more specific and intentional about where I put
- 23:14my stuff.
- 23:14So I went on this, this ran on Mastodon, by the way, a bunch of people sent me all sorts
- 23:17of options of like, okay, if not Dropbox, then what?
- 23:20And I decided whatever I'm doing is probably good to have it end to end encrypted.
- 23:25Cause then I don't care what they try to do with it.
- 23:27Right.
- 23:27Cause they can't decrypt it.
- 23:29Yeah.
- 23:29That, that solves a whole lot of problems.
- 23:31You care about the security, but it doesn't matter as much as if you're just exposing files
- 23:36or leaking stuff or whatever.
- 23:38Right.
- 23:38So I decided to go, I already have a paid Proton account.
- 23:43So all my private stuff, all my private documents, like my scans of things I want to save that might
- 23:48be sensitive.
- 23:48They're going to Proton drive.
- 23:50I have 500 gigs and it's already paid for and encrypted.
- 23:54There's async thing you can install.
- 23:56That's pretty excellent.
- 23:57I looked around and some people suggested next cloud, which is really interesting.
- 24:02It's maybe more than I want.
- 24:03It's almost like a document calendar, everything self-hosted.
- 24:07Maybe do that next.
- 24:08Yeah.
- 24:09Own cloud got like super owned just last week.
- 24:13And there's a similar self-hosted thing, which makes me a little nervous to self-host stuff.
- 24:16I know there are people who host it for you, but it's not next cloud.
- 24:19It's a little bit indirect.
- 24:21So maybe violin.
- 24:22I don't know if you've heard of this, but they have encrypted cloud storage and the end again,
- 24:29pretty nice.
- 24:30I think this is British.
- 24:32I don't remember exactly.
- 24:33UG.
- 24:34Not sure.
- 24:35But somewhere in Europe, this company, it looks pretty good.
- 24:39I have not tried it, but in encrypted.
- 24:42There's IceDrive, the next generation cloud storage.
- 24:44Also, I think this might be the British one.
- 24:46Yeah, this is in Wales.
- 24:47I mean, British, I mean, UK.
- 24:49Sorry, folks.
- 24:49So that's pretty interesting.
- 24:51And I think I'm going to go with sync.com.
- 24:55Super simple.
- 24:56All they do is sync and then encrypted for six terabytes.
- 25:00It's like 140 bucks a year or something like that, which is a lot versus 240 for less than
- 25:05that in Dropbox.
- 25:05Anyway, if people are in this zone of like, I'm looking for all this stuff.
- 25:09Oh my gosh.
- 25:10Like, what am I going to do?
- 25:11Regardless of whether you care about the Dropbox fiasco.
- 25:14Here's a bunch of options people can pick.
- 25:16There was one comment in this whole discussion that was pretty interesting.
- 25:19I think it was in the Ars Technica thing.
- 25:23And it said, look, if you give your data unencrypted to somebody,
- 25:26another company, even if you trust them, you don't really necessarily control that anymore,
- 25:30especially if they decide to pass it along.
- 25:32So somebody pointed out Cryptometer.
- 25:35Have you heard of this, Brian?
- 25:36No.
- 25:37Cryptometer is cool.
- 25:38I have used something like it, but it's older and no longer supported, which makes me sad.
- 25:42So what you do is you run this app.
- 25:45It does like super strong encryption.
- 25:47You control the key, right?
- 25:48It's just like a thing you make up and don't give away.
- 25:50And then it will create a drive, a mountable drive on your Mac or on Windows,
- 25:56like a D drive or E drive or whatever.
- 25:58And that thing is encrypted.
- 25:59So when you mount it with this software, it looks like a drive.
- 26:02But then when you unmount it, it becomes just an encrypted pile of files.
- 26:05So you put that in Dropbox, you put that in sync or whatever.
- 26:09And then no matter what happens, they just get an encrypted blob of stuff.
- 26:12So things I super care about.
- 26:14I have encrypted in something, either Cryptometer or something like it,
- 26:17on top of all the safety around the cloud drive and trust and whatever you might have there.
- 26:22Like worst case scenario, they get a huge, hard, hard to decrypt a blob of stuff that they don't know the value of.
- 26:28And I don't know if it has Linux.
- 26:29Someone's asking, does it have Linux?
- 26:30I think it might.
- 26:33Let's see.
- 26:34Mac.
- 26:35Let's see if I go to download what it says.
- 26:37Yeah.
- 26:38Worth knowing for people.
- 26:39Downloads.
- 26:40Use your DMG.
- 26:41Yeah.
- 26:42Windows, Mac, Linux, Android, and iOS even.
- 26:45Yeah.
- 26:46So that's that.
- 26:47I think that it's a loss.
- 26:49I mean, cool.
- 26:50But Cryptomator would have been great as a rotten tomato sort of thing to rate different cryptocurrencies.
- 26:57I know.
- 26:58It's the word is taken.
- 27:01I'm pretty sure this has been around before crypto became a thing.
- 27:05Like, I'm not sure how old this is, but yeah, there's 17 pages of releases on GitHub from 2017.
- 27:12So yeah, they were ahead of their time in that.
- 27:14But yeah, this is super cool, Brian.
- 27:16Like you can just say, I don't really care that much about the security where these files go.
- 27:20You're not getting them.
- 27:21Interesting.
- 27:22So I suggest a sweet combination of these things.
- 27:25I'm going through like a super digital decluttering as part of this, and it's glorious.
- 27:30I'm having like a tech love affair with Notion.
- 27:33It's so good.
- 27:33But yeah, anyway, I'll leave it there.
- 27:37Maybe I'll come back and tell you more about this.
- 27:39Last thing for me, I'm doing the keynote at PyCon Philippines 2024 in February.
- 27:46How awesome is that?
- 27:47Slightly jealous, man.
- 27:49Somewhere I scroll down and over.
- 27:51Woo.
- 27:52Yeah.
- 27:53Cool.
- 27:53Three of us, and I get to be one of them.
- 27:55So that'll be awesome.
- 27:55Thank you for inviting me.
- 27:57And if you're going to be there, I will see you there.
- 27:58Nice.
- 27:59Yeah, in February.
- 28:00Cool.
- 28:00Oops.
- 28:01Over to you for your extras.
- 28:03Well, I just deleted one.
- 28:05So sorry about that.
- 28:06But shift command T.
- 28:09Oh, shift commit.
- 28:12Whatever.
- 28:12I'll just tell you guys about it.
- 28:14So this is the kind of time of year that some people like to donate some money to different people.
- 28:22different groups.
- 28:23I had the link up for the Python Software Foundation.
- 28:27So Python Software Foundation is not hard to find.
- 28:31So I would encourage people to consider giving some money to the PSF.
- 28:36So Django Software Foundation is doing a drive.
- 28:39So giving some money.
- 28:41If you use Django, of course.
- 28:42If you enjoy Python Bytes, of course, you can check out Patreon.
- 28:46At Patreon, we do accept money for Python Bytes to help keep the show going.
- 28:53This is great.
- 28:54Also, I wanted to highlight as well just the idea that to just go on GitHub.
- 29:01So the different things you use on GitHub.
- 29:03Like attrs, for instance, you can go down and you can sponsor this project.
- 29:08You can throw some money that way.
- 29:10pytest has a sponsor link.
- 29:14Palettes and Flask has a way to sponsor either all of Palettes or particular projects within the Palettes program.
- 29:22And really, a lot of projects that you use every day have a sponsor of this project on GitHub.
- 29:30So I think it'd be great, too, for people.
- 29:32If you have extra and you want to help out, I think it's a good idea.
- 29:35Sometimes I help out different projects.
- 29:38And I kind of shift it up every year in local things.
- 29:41And I think the things that I use.
- 29:44And somebody asked me once recently about some projects don't really need the money.
- 29:50And I guess, for instance, I really love having people support Python Bytes through Patreon.
- 29:56It's fun to have our community help support us.
- 30:00If you, in particular, don't donate, we're not going to disappear.
- 30:04Michael and I are going to keep doing it anyway.
- 30:06It is totally up to you.
- 30:07And definitely don't do it if it's a hardship.
- 30:09But I think it's a fun thing to do this time of year is to spread the love around.
- 30:14That's all I wanted to say.
- 30:15Indeed, I second that as well.
- 30:19That's kind of serious, though.
- 30:21Do you have something funny for us?
- 30:23Let's lighten it up.
- 30:24No, this is not funny.
- 30:25It's too close to home.
- 30:27You told me how you feel about this.
- 30:28So here's the joke.
- 30:29Here's the joke.
- 30:30So there's two red buttons.
- 30:31Think Ren and Stimpy or something like that.
- 30:33And a huge, scary red button.
- 30:35You can press either of them.
- 30:36One of them says, pay $12.
- 30:38The other one says, admit to yourself, your dream is dead.
- 30:42And at the bottom, there's somebody sweating trying to decide which button to press.
- 30:46And it's the domain renewal.
- 30:49Oh, yeah.
- 30:49Totally.
- 30:49Totally.
- 30:50This is way too close to home for me because I just transferred 25 domains from all the different
- 30:58places into hovers I talked about like a while ago.
- 31:00And I talked about all the name servers and all that.
- 31:04And there was a few where I'm like, God, is the dream dead or do I just move this?
- 31:07So how many are you using still out of those?
- 31:11Well, lots of them are to like protect people from doing crappy stuff.
- 31:15For example, I've talked by thon.com.
- 31:17I don't technically use it.
- 31:19It redirects to talk by thon.fm.
- 31:21But if I don't have it, someone will get it.
- 31:24And then all sorts of badness.
- 31:25Like there's a bunch of these guards.
- 31:27I would say half of them fall into that realm.
- 31:28Okay.
- 31:29And then maybe another third I'm directly using.
- 31:31And then there's the whatever the balance, the one sixth that's left is the dream could
- 31:35be dead.
- 31:36But or it could be not there yet.
- 31:38Not realized yet.
- 31:38We'll see.
- 31:39I had about eight that I was not really using last year.
- 31:44And I admitted that about half of those are not going to go anywhere and let them expire.
- 31:51Although I mean, the domain companies don't make it easy.
- 31:54You're like, okay, I'm just going to let it expire.
- 31:57But you get like emails.
- 31:58No, it's going to go.
- 32:00Oh, it's gone.
- 32:01But we're going to save it for you for a couple more months.
- 32:04And you get a whole bunch of guilt emails.
- 32:06But yeah.
- 32:07Anyway.
- 32:08Yeah.
- 32:08Yeah, exactly.
- 32:09I have one real quick sad story to round this out, Brian.
- 32:12A friend of mine and I decided we're going to write some iPhone apps right when the iPhone
- 32:16came out, like 2007 or whatever it was.
- 32:19And he had the clever idea of like, let's go.
- 32:21Let's get a domain.
- 32:21I would probably do it together.
- 32:22I don't know.
- 32:23Got the domain.
- 32:24iPhone dot L Y.
- 32:26I fun.
- 32:26Lee.
- 32:26And we worked on stuff for like a year because we didn't know we're going to build.
- 32:30We'll just like come up with this.
- 32:31We'll put stuff there.
- 32:32Never really came up with stuff.
- 32:34It looked like there was nothing on the horizon.
- 32:35We're like, you know, after three years, the L Y is like the FM.
- 32:37I was like kind of expensive.
- 32:39Like, ah, just let it go.
- 32:40A week later, somebody says, Hey, I'll give you $5,000 for that domain.
- 32:43So I shoot my friend like, Hey, don't let it expire yet.
- 32:45Let's do this instead.
- 32:46He's like, it expired last week.
- 32:48Like, no.
- 32:48Oh no.
- 32:49Oh well.
- 32:51So it goes.
- 32:52So that somebody could have paid you $5,000, but they instead got it for like 20 or got it.
- 32:57Yeah.
- 32:57For like 20 bucks or something.
- 33:00I'm sorry to laugh at your pain.
- 33:02No, it's okay.
- 33:03I mean, like I'm telling you, this is not a joke.
- 33:05Admit to yourself, your dream is dead or pay $12 for the rest of your life every year.
- 33:09That's where you are.
- 33:11No, it's good.
- 33:13It's a good joke and people can hopefully laugh at it.
- 33:16Yeah.
- 33:16Everybody.
- 33:17Most people that listen to this podcast probably are feeling this.
- 33:20Yeah.
- 33:22All right.
- 33:22All right.
- 33:22Well, I'm feeling good about our year's worth of show every day.
- 33:26Yeah.
- 33:26365.
- 33:27Pretty cool.
- 33:28Yeah.
- 33:29All right.
- 33:29Talk to you later.
- 33:30Yeah.
- 33:30See you.
- 33:31Thanks everyone.
- 33:32This has been another episode of Talk Python To Me.
- 33:36Thank you to our sponsors.
- 33:38Be sure to check out what they're offering.
- 33:39It really helps support the show.
- 33:41This episode is sponsored by Posit Connect from the makers of Shiny.
- 33:45Publish, share, and deploy all of your data projects that you're creating using Python.
- 33:49Streamlit, Dash, Shiny, Bokeh, FastAPI, Flask, Quattro, Reports, Dashboards, and APIs.
- 33:57Posit Connect supports all of them.
- 33:58Try Posit Connect for free by going to talkpython.fm/posit, P-O-S-I-T.
- 34:04Want to level up your Python?
- 34:05We have one of the largest catalogs of Python video courses over at Talk Python.
- 34:09Our content ranges from true beginners to deeply advanced topics like memory and async.
- 34:15And best of all, there's not a subscription in sight.
- 34:17Check it out for yourself at training.talkpython.fm.
- 34:20Be sure to subscribe to the show, open your favorite podcast app, and search for Python.
- 34:25We should be right at the top.
- 34:26You can also find the iTunes feed at /itunes, the Google Play feed at /play,
- 34:31and the direct RSS feed at /rss on talkpython.fm.
- 34:36We're live streaming most of our recordings these days.
- 34:39If you want to be part of the show and have your comments featured on the air,
- 34:42be sure to subscribe to our YouTube channel at talkpython.fm/youtube.
- 34:46This is your host, Michael Kennedy.
- 34:49Thanks so much for listening.
- 34:50I really appreciate it.
- 34:51Now get out there and write some Python code.
- 34:53Now get out there and write some Python code.
- 34:53I'll see you next time.
- 34:53Bye.
- 34:54Bye.
- 34:54Bye.
- 34:54Bye.
- 34:54Bye.
- 34:54Bye.
- 34:54We'll see you next time.