Latest / Talk Python To Me / #181: 30 amazing Python projects
Transcript
- 0:00Listeners often tell me one of the really valuable aspects of this podcast is the packages and libraries that they hear about and start using in their projects.
- 0:08On this episode, I've invited Brian Okken, my co-host over on Python Bytes, to take this idea to 11.
- 0:14We're going to cover the top 30 Python packages from the past year, a metric to be determined later in the show.
- 0:20This is Talk Python To Me, episode 181, recorded October 3rd, 2018.
- 0:26Welcome to Talk Python To Me, a weekly podcast on Python, the language, the libraries, the ecosystem, and the personalities.
- 0:46This is your host, Michael Kennedy. Follow me on Twitter where I'm @mkennedy.
- 0:50Keep up with the show and listen to past episodes at talkpython.fm and follow the show on Twitter via at Talk Python.
- 0:56This episode is brought to you by Linode and CloudBold.
- 1:00Please check out what they're offering during their segments. Really helps support the show.
- 1:04Brian, welcome back to Talk Python.
- 1:06Oh, yeah, thanks.
- 1:07Yeah, you've been here a bunch of times on this show.
- 1:10And of course, we meet up quite often on Python Bytes, right?
- 1:14Yeah, every week.
- 1:15Every week. That's such a fun show.
- 1:17And so we get to talk, you know, this is like the sort of extended edition of Python Bytes in some sense for our topic today.
- 1:25Because on Python Bytes, we meet up, we talk about a couple of cool projects we found this week.
- 1:29This one is, hey, here's a whole bunch of cool projects found throughout the year.
- 1:34But this time we didn't pick it, did we?
- 1:35No, it came from, where did it come from?
- 1:38MyBridge AI.
- 1:39It wasn't even from a person then.
- 1:41No, so there's this app, this company, I guess, called MyBridge.
- 1:47And they kind of like Zite or Flipboard curate a list of articles and other interesting reading.
- 1:55But instead of just trying to do that for general population, they try to do that for professionals in various industries.
- 2:01So one of the things they came up with was 30 amazing Python projects, the 2018 edition.
- 2:08And we're just going to go through that list and just talk about these projects and sort of shine a light on some cool stuff that, well, this AI picked out for us.
- 2:15Yeah.
- 2:15And it's one of the interesting things is the, you can, I mean, like individuals can go in and do just the popularity of a, like the number of stars or the number of, maybe that number of downloads on PyPI or something.
- 2:30But this is also, they also used the engagement, I'm guessing, how many, how often things git added to possibly and recency.
- 2:40So if things haven't been edited for a long time, they're probably not going to be on the list.
- 2:44Right.
- 2:45Or stuff that maybe is new, but it has the same number of stars or something that's old, right?
- 2:49That would make it more valuable.
- 2:51Yeah.
- 2:51So before we get into our main topic, though, let's just do a little background on you since it's been a while since you've been on this show.
- 2:57Although I'm sure many people that listen to Talk Python also listen to Python Bytes.
- 3:00A couple of things that you're notable for.
- 3:03One is the pytest book, right?
- 3:05What's the title of your book?
- 3:06Python Testing with pytest.
- 3:08Not very creative, but is exactly what it is.
- 3:11Yeah, it's quite descriptive.
- 3:12It starts out with an introduction just to get people's feet wet with pytest.
- 3:17I've had a lot of people say that they didn't get lost with it, but a lot of the stuff there is stuff that they'll use down the road.
- 3:24Like we get into building plugins and things like that.
- 3:27Yeah, yeah.
- 3:28Very nice.
- 3:28And what do you do day to day?
- 3:29Do something testing related, right?
- 3:31Yeah, I make test equipment.
- 3:33So I work for Roden Schwartz and make electronic test equipment.
- 3:39And me specifically, I'm a manager for some C++ people that do embedded and a test team that does testing of the hardware.
- 3:48Nice.
- 3:48That's very cool.
- 3:49All right.
- 3:50So are you ready to get into our topics?
- 3:52Yeah, definitely.
- 3:53What's our first one?
- 3:54The first one is Home Assistant at homeassistant.io.
- 3:58And it is a open source automation, home automation that puts local control and privacy first.
- 4:05So I haven't actually played with this, but it looks super awesome.
- 4:08So there's a lot of different automated home automation things out there like Nest and others.
- 4:15And then some do-it-yourself stuff like with Raspberry Pi and Arduino projects.
- 4:20But this is sort of an overreaching one that interacts with all of these things.
- 4:26And you can control multiple devices with one interface, track multiple devices, and then have some cross-device automation and notifications.
- 4:37Like, for instance, you could monitor the soil moisture outside and then alert you, send you an email or something if it's too dry or something like that.
- 4:49Even better, how about have it automatically turn on your sprinklers?
- 4:53Because you have smart sprinklers, right?
- 4:55You're right.
- 4:56Only when it's needed because not when it rained.
- 4:58Yeah.
- 4:58One of the things I want to play with is the ability to, there's a location things where you can hook up through your, allow an app on your cell phone or something to know where you are.
- 5:08And you can say, hey, when I leave my work, go ahead and turn the air conditioning up or the heat up in the house so that the temperature's right when I get home, regardless of when I left work.
- 5:18So that'd be fun.
- 5:19Yeah.
- 5:20There's all sorts of cool stuff.
- 5:21Another thing I want to give a shout out to here is Haas.
- 5:25I guess the way you'd say it shortening would be Haas.io, H-A-S-S.io.
- 5:29Or maybe Haas, like the avocado.
- 5:30Yeah, I guess so.
- 5:31Okay.
- 5:32So this is a little thing that you can run on a Raspberry Pi that is like an embedded home assistant.
- 5:40So you can just have a Raspberry Pi in your house and you have a private server that controls all of your devices.
- 5:46And it's an iPhone app you can install that then talks to this private server and all sorts of cool stuff.
- 5:52That's cool.
- 5:53So you're not dependent on a cloud service or something for these sorts of things.
- 5:58Right.
- 5:58Exactly.
- 5:59Yeah.
- 5:59Isn't that cool?
- 6:00Nice.
- 6:00Yeah.
- 6:01Yeah.
- 6:01So Home Assistant, if you're doing anything with a smart home and you care at all about Python, there's tons of integration and it's all in Python, which is amazing.
- 6:08Well, what's next?
- 6:09Next up, we have PyTorch, which is a deep learning library, which is pretty awesome, right?
- 6:15Yeah.
- 6:15Is that from Microsoft or who's that from?
- 6:18I think it's its own project.
- 6:19Okay.
- 6:19It's even coming out with a new version here pretty soon or maybe already.
- 6:23Yeah.
- 6:24So what's really cool about PyTorch, it's basically lets you do a lot of GPU accelerated, like tensor deep learning type of stuff, deep neural networks and so on.
- 6:34But the new thing that's cool is in PyTorch 1.0 coming along, you can accelerate your Python machine learning code with native code.
- 6:45So they've actually created their own little mini language called TorchScript.
- 6:49And TorchScript is a subset of Python that can be compiled into either C++ or other high speed languages.
- 6:56Nice.
- 6:57This is very cool.
- 6:58Yeah, it's pretty cool.
- 6:59So it's already had like support for Cython to extend it, but now it even has support for its own special language coming soon.
- 7:06So I think that's an RC1.
- 7:07So if you're doing any machine learning, PyTorch, you probably already know about it, but quite cool.
- 7:11And this little TorchScript subset thing is quite interesting as well.
- 7:16Yeah.
- 7:17Normally, I'm pretty happy about these new libraries, but sometimes, you know, not too much, right?
- 7:21Yeah, I kind of get a little grumpy.
- 7:23You can definitely get grumpy.
- 7:25Well, grumpy is next on our list.
- 7:28And grumpy is a Python to Go or Trans compiler.
- 7:32Maybe it's the same thing.
- 7:33Yeah.
- 7:33And runtime.
- 7:34So you can write Python code and have it run on a Go runtime.
- 7:39Sure, why not?
- 7:40That's pretty interesting.
- 7:41Yeah, why not?
- 7:42I mean, one of the things you get is pretty good support for concurrency because Go is all about that, right?
- 7:46So that's kind of cool.
- 7:47One of the things that kind of makes me grumpy about grumpy is that it's a legacy Python, not modern Python.
- 7:54Oh, it's 2.7.
- 7:56Yeah, the reason is this is a super focused project from the YouTube team.
- 8:02And the YouTube team is running YouTube on Python 2.7.
- 8:07And they're trying to make it go faster because they have requirements that I suspect most people don't have.
- 8:13I mean, our podcast, Python Bytes, for example, gets a lot of traffic, right?
- 8:16Yeah.
- 8:17But, you know, if you look at YouTube, they get a million page views per second.
- 8:22Yeah.
- 8:23That's a lot of traffic.
- 8:24That's a lot.
- 8:25So actually, I had the grumpy guys on, well, the guy behind grumpy on Talk Python in episode 95.
- 8:33And a lot of these topics we've covered in one place or another.
- 8:35So I'll try to give a shout out to like more deep coverage on them if that's interesting to you.
- 8:40But yeah, grumpy is kind of interesting.
- 8:43I hope I would love to see this go somewhere.
- 8:44Actually, I would love to see alternate core implementations.
- 8:48Like I would love to see a Rust re-implementation of CPython, the runtime as well.
- 8:53So pretty cool.
- 8:54Yeah.
- 8:54So Go has asynchronous stuff and so does Python.
- 8:57And as of Python 3.5, we have async and await, right?
- 9:02And that kind of unlocks a certain type of really good concurrency, which is the kind that is based on IO.
- 9:08That's waiting on databases, waiting on microservices, waiting on the file system.
- 9:13You know what websites do a lot of?
- 9:17Wait on stuff.
- 9:18Wait on stuff, right?
- 9:19Wait on databases.
- 9:21Wait on web services, et cetera.
- 9:22And so Sanic is one of the big frameworks that came out pretty recently and is one of the really fast async and await based Python web frameworks.
- 9:32And like it seems like all the new web frameworks that are coming out, they're like, yeah, we're basically the Flask API with a different implementation.
- 9:39And this is no different.
- 9:40Yeah.
- 9:41One of the things that's kind of fun with Sanic is there's been a lot of like proof of concept things coming up.
- 9:46But this one does look like it's gaining traction.
- 9:49Yeah.
- 9:49It's pretty cool.
- 9:50And it's based on this thing called uvloop, which is an alternate implementation of asyncio in Python.
- 9:55That's about twice to four times as fast.
- 9:58So that's also pretty cool that it's based on that.
- 10:00And also Sanic just announced, we'll probably cover this over on Python Bytes at some point, but they just announced that they're a community driven organization.
- 10:08Used to be a project by a guy and now it's sort of its own thing.
- 10:12A little bit like Palette's is to Flask.
- 10:13There's that organization.
- 10:15Oh, nice.
- 10:15So if you're looking to contribute to projects, this is a good chance to do that.
- 10:19They even, I don't know how many projects do this, but I think this is a great idea.
- 10:23They say in there that you can go to GitHub and look through the various items and they'll put a help wanted tag on things they think would be a good thing for somebody to grab and contribute.
- 10:34That's cool.
- 10:35Yeah, it's pretty nice.
- 10:36Yeah.
- 10:36They're on fire, aren't they?
- 10:37Yeah.
- 10:38And they are on fire.
- 10:40And next up is Python Fire.
- 10:42So Python Fire is a, it's an interesting little project in, well, I don't know how little it is.
- 10:48I haven't looked at the source code, but it's a different take on command line.
- 10:51It's a little in scope though.
- 10:53Yeah, a little in scope.
- 10:54A different take on command line interface generation.
- 10:57I'm familiar with Click and there's quite a few others, but Python Fire does it kind of a little different.
- 11:04You put some boilerplate, not a whole bunch, but a little bit in one of your files.
- 11:08And then you can, all the functions within that module get exposed as command line arguments.
- 11:14And it's kind of magical how it works.
- 11:18And it's fun.
- 11:19It's a, if you're confused by generating command line interfaces, check this out.
- 11:24It also, they kind of push it for people that are like, you just quick and dirty just for yourself or your small team.
- 11:31These are, this might be a good thing.
- 11:32Yeah, it's pretty cool.
- 11:33Their little subtitle or whatever is automatically generating command line interfaces from absolutely any Python object.
- 11:40That's pretty cool.
- 11:41Yeah.
- 11:41And then their documentation is beefed up recently.
- 11:44So they, they've built a guide and there's a lot more easier ways to get into it now.
- 11:49So that's cool.
- 11:49Yeah, that's cool.
- 11:50And this is from Google.
- 11:51So, you know, you can pretty much trust.
- 11:53It's probably pretty good, pretty nicely put together.
- 11:55Yeah.
- 11:55So going back to machine learning, our next one is spaCy.
- 12:00When you think, when I think, at least when I think of machine learning and like text understanding, natural language understanding, I always thought of NLTP.
- 12:09That seemed like the way to go.
- 12:11But spaCy is the new fancy way to do that apparently.
- 12:15And it's written in Python and Cython.
- 12:17So it makes it super fast.
- 12:19Yeah, this looks, this looks very interesting.
- 12:21And natural language processing is actually, it's getting used quite a bit.
- 12:25Yeah.
- 12:26Anytime you want to take text and understand what the words mean, this is it, right?
- 12:31If you say wanted to, maybe you were an algorithmic trader and you were studying the live flow of data on Twitter and trying to look for sentiment analysis around a particular stock and then having automatic trading happen on that.
- 12:44You probably would put spaCy in there.
- 12:46Yeah, sure.
- 12:47Or do you want to?
- 12:48Just grabbing an example out of the scenario.
- 12:50Or maybe tracking the emotions of a certain chief of a country on Twitter.
- 12:57You can maybe use this.
- 12:58I'm not sure.
- 12:59I'm not sure we'll understand that.
- 13:01You can try.
- 13:01All right.
- 13:03So speaking of something I don't understand, and I want to understand it, help me understand PIP-ENV.
- 13:08PIP-ENV?
- 13:09PIP-ENV.
- 13:10There's so many ways to create virtual environments and work with them and dependencies and so on.
- 13:17And then there's this other way with PIP-ENV, which is really awesome, that applies some of the time.
- 13:22It's done partly by Kenneth Wright.
- 13:23So very cool.
- 13:24But I don't know where it fits in my world still.
- 13:27It's for applications.
- 13:28And it's really good for coordinating all of the dependencies for application developers.
- 13:35So if you've got a team of people working on an application, I think this is a good way to go.
- 13:41Some of the ways to get to is built in work to separate deployment environments versus development environments, because you might need you might need extra things around like pytest and document generation and stuff like that.
- 13:56If you're doing development that you don't need when you're just deploying, having those separated out is handled by PIP-ENV rather beautifully.
- 14:03Yeah, nice.
- 14:05So it creates and manages virtual environments.
- 14:07It replaces requirements.txt and friends with the pip file and the pip file.lock.
- 14:13And it sort of pins the versions and all of those kinds of things.
- 14:17So pretty interesting.
- 14:18I got to say, I'm still pip install -r some stuff these days.
- 14:22It also, it can generate your requirements file.
- 14:24So it can play nice.
- 14:26You can have a project play in both worlds at the same time.
- 14:29Yeah, that's cool.
- 14:29No, it's a good project.
- 14:31And I just, I need to, you know, shake myself out of my rut and learn this as well.
- 14:36And then I can decide better where it fits for me.
- 14:38So one thing I've always wanted to do is create like a product that I could sell out of little tiny, like IoT smart things.
- 14:48And I'm still trying to understand like what that might be.
- 14:50But if I were to do that, I know what project.
- 14:53Yeah, MicroPython.
- 14:54Right on, MicroPython.
- 14:55Tell us what that is.
- 14:56No, it's your turn.
- 14:56All right.
- 14:59So MicroPython is basically a Python implementation of the operating system that runs microcontrollers.
- 15:08So it's not like I have a Raspberry Pi, which is running some variation of Linux, and then I can install CPython on there.
- 15:15It's like Python itself is the operating system.
- 15:19And you can do insane things.
- 15:21Like you can hook up a Lambda expression to a hardware.
- 15:24Yeah, that's so cool.
- 15:24Like that low level.
- 15:26Isn't that amazing?
- 15:27So you could like put this on like a $5 little embedded chip.
- 15:31And it's got pretty good support.
- 15:33It's Python 3.
- 15:33And there's the Mu editor and other editors that can talk directly to it.
- 15:39So developing in this world sounds fun.
- 15:42It's been going for a few years.
- 15:43And it's still going strong.
- 15:45So I'm super excited for that.
- 15:46Yeah.
- 15:47A MicroPython evangelist.
- 15:48Or maybe a prophet.
- 15:49Ah, yes.
- 15:51It's as if a prophet for it.
- 15:54Indeed, prophet is the next one.
- 15:56What's that?
- 15:56I actually don't know.
- 15:57I should have taken the last one.
- 15:59It's a tool for producing high quality forecasts for time series data that has multiple seasonality with linear and nonlinear growth.
- 16:08I don't even know what that I just read.
- 16:11So, yeah.
- 16:11So the idea is this is a project from Facebook.
- 16:14So it's for predicting trends and time series data that might not be like stock prices.
- 16:21Yeah.
- 16:22Like stock prices or things that are not just completely linear, completely the same, right?
- 16:27Like the seasonality and the nonlinear growth and things like that.
- 16:30So it's just a really advanced library for predicting, given a time series of data, what's going to happen in the future.
- 16:36Oh, there's a lot of uses for that.
- 16:38That sounds neat.
- 16:39Yeah.
- 16:39Yeah.
- 16:40It's pretty cool.
- 16:40And from Facebook, I bet they do a little bit of predicting and analyzing and stuff like that with like your feed and whatnot.
- 16:46Yeah.
- 16:46And maybe for like predicting ad prices and things like that.
- 16:50Yeah, exactly.
- 16:50This portion of Talk Python To Me is brought to you by Linode.
- 16:56Are you looking for bulletproof hosting that's fast, simple, and incredibly affordable?
- 17:00Look past that bookstore and check out Linode at talkpython.fm/Linode.
- 17:05That's L-I-N-O-D-E.
- 17:07Plans start at just $5 a month for a dedicated server with a gig of RAM.
- 17:11They have 10 data centers across the globe.
- 17:14So no matter where you are, there's a data center near you.
- 17:16Whether you want to run your Python web app, host a private Git server, or file server,
- 17:21you'll get native SSDs on all the machines, a newly upgraded 200 gigabit network, 24-7 friendly support,
- 17:29even on holidays, and a seven-day money-back guarantee.
- 17:31Do you need a little help with your infrastructure?
- 17:34They even offer professional services to help you get started with architecture, migrations, and more.
- 17:40Get a dedicated server for free for the next four months.
- 17:43Just visit talkpython.fm/Linode.
- 17:46The next one is something called Serpent AI.
- 17:50And we actually talked about this back on Python Bytes number 50, but this is really cool.
- 17:54It is cool.
- 17:55It's like AI with game development, or actually, you better take this one too.
- 18:01I'm not sure what this is.
- 18:02So the idea is if you have an AI and you want to train it, you could construct like a fake world for it, right?
- 18:10You could tell it, all right, you're in a box, you can move around, or like you're in a maze,
- 18:14and you'd have to build that maze, right?
- 18:16For your game.
- 18:17You'd basically have to build a miniature game and then try to teach a character in the game a thing if you want to develop AI.
- 18:23But we have all these real games that are super, super interesting, super nuanced, right?
- 18:30Like games you might play.
- 18:32Okay.
- 18:32Racing games, first-person shooter games, whatever.
- 18:35So Serpent AI attempts to let you control that game with Python, whatever that game is.
- 18:42They claim you can turn any video game into a sandbox environment for AI and bot programming.
- 18:48So imagine I'm trying to create a robot that can interact with the world.
- 18:52You could try to create your own world, or you could stick that thing in Grand Theft Auto or some other game and make it run around and go,
- 19:00okay, well, it's really good in this world.
- 19:02So it's a little bit, let's use sidestep creating the environment for testing AI.
- 19:06That's so cool.
- 19:07Yeah.
- 19:07Yeah.
- 19:08It says it even works with like games based on Steam or stuff like that.
- 19:12So it's pretty cool.
- 19:13The guy who creates it also does a Twitch programming channel.
- 19:16Okay.
- 19:17It's kind of interesting, right?
- 19:18Yeah.
- 19:18So like he'll like fire it up and say, all right, I'm going to go and take this game.
- 19:23I'm going to create an AI that's going to do this.
- 19:25And he'll just like start from scratch.
- 19:26So if, you know, if you got a Friday night and you don't got anything going on, you could watch that.
- 19:32Oh, yeah.
- 19:32That sounds great.
- 19:33Because I don't really want to do it myself, but I'd like to watch somebody else do it.
- 19:36Exactly.
- 19:37Yeah.
- 19:37All right.
- 19:38So that's a good one.
- 19:39If you're into like creating AIs and bots and stuff like that.
- 19:42Pretty awesome.
- 19:43Yeah.
- 19:43The next one is just beautiful, right?
- 19:45Yeah.
- 19:46It is nice.
- 19:46And this one I actually can understand.
- 19:48So it's good.
- 19:49Next one is Dash.
- 19:50Tell us about it.
- 19:51It's a framework for building analytical web applications.
- 19:54But so it's kind of like you need plots and, you know, Python code interactions.
- 20:00But you need some real-time stuff.
- 20:02So you like you want to zoom in and look at new data and have data go back and forth.
- 20:08And usually you do JavaScript or something like that and maybe React or something.
- 20:13And this is, it's built on top of Plotly and React and Flask.
- 20:19And it's just really, it's really a beautiful interface for data and for interacting with stuff on the web.
- 20:26So I actually tried to use this.
- 20:28And I think it would be fine for most applications.
- 20:31But you do need to have either use their server or you can set up your own server.
- 20:36But there needs to be a server to do a lot of the crunching.
- 20:40So.
- 20:40Right.
- 20:41So basically you need a server that runs Flask.
- 20:45Okay.
- 20:46Their thing that's derived on top of Flash.
- 20:49Yeah.
- 20:49Right.
- 20:50Yeah.
- 20:50Yeah.
- 20:50So if you go and open up the link, go to their main website, there's a part that says Dash is productive.
- 20:57And it shows the amount of code to create this cool graph that's totally interactable, zoomable, drop down to choose different data sources.
- 21:05And you basically have to say, I would like to graph these things and my data source is Google and my date range is this year.
- 21:15And somehow it can just go and get like stock data and other stuff like straight from Google.
- 21:21You don't even need to provide it the data.
- 21:23Wow.
- 21:24Yeah.
- 21:24That's neat.
- 21:25So there's a lot of, if you're trying to create visualizations on the internet and you're mostly happy writing in Python, this is a really pretty sweet thing.
- 21:33Yeah, it is.
- 21:34And it's really pretty.
- 21:35Yeah, it's definitely pretty.
- 21:36So, you know, another place where a lot of pretty stuff gets put is on Instagram.
- 21:39Yeah.
- 21:40This is actually an amusing little project called Instapy.
- 21:45It's for trying to make your own Instagram bots.
- 21:48And it's built just as if you were interacting with Instagram yourself through a webpage because it's built on Selenium and it's Python powered Selenium.
- 21:58It's kind of a little pet project that might be used for, you know, like automatically farming out likes and commenting on certain pictures that have something in it or something like that or comments and followers.
- 22:13There's a lot of stuff it's a good thing.
- 22:15I'm not sure it's one of those.
- 22:17Is this a good thing or a bad thing?
- 22:18Yes, I know.
- 22:19It was a little bit like that.
- 22:20It's definitely interesting.
- 22:21Yeah, it's definitely interesting.
- 22:22Like I can see if you were, say, a social media company, like you did social media as a consulting project for large companies, you could write some cool automation that maybe automatically analyzes all the ways people interacted with you, store them, generate reports, stuff like that.
- 22:40Yeah, so there's some good uses, but there's also, you know, bots in general.
- 22:45I feel the same way about Twitter bots.
- 22:47They kind of bug me, but what are you going to do?
- 22:49It's the internet.
- 22:50Yeah.
- 22:51Yep.
- 22:52Speaking of the internet, the internet's full of APIs.
- 22:54And the next project is API Star, which this is a project that fully embraces Python 3.
- 23:05So this is from Tom Christie, the guy who wrote Django REST Framework, but this is sort of his reimagining of what a REST Framework would look like in Python with Python 3.5 and above.
- 23:15And it's really cool because it does things like the arguments to your API methods use type annotations to get their values.
- 23:24So you can have like a variable or an argument colon and say this comes from the header and it's automatically extracted out of the header because of the type hint and things like that.
- 23:32It's pretty crazy.
- 23:33So yeah, this is a good one.
- 23:35Yep.
- 23:35Very good.
- 23:35And you said you talked with him about it on one of your episodes, right?
- 23:39I did back in episode 125.
- 23:41I had Tom on there to talk about that.
- 23:43So definitely a link to that as well.
- 23:45Okay.
- 23:46All right.
- 23:46This next one, I'm going to let you do this because this one sounds simple.
- 23:50Yeah, sure.
- 23:50It's very simple.
- 23:52I don't even know how to pronounce it.
- 23:54It's spelled F-A-I-S-S.
- 23:57Maybe F-A-I-S-S?
- 23:58F-A-I-S?
- 23:59Yeah.
- 23:59F-A-I-S?
- 24:00I'm going F-A-I-S because it has to do with similarity and stuff.
- 24:03Maybe F-A-I-S.
- 24:04I'm going F-A-I-S.
- 24:05Oh, okay.
- 24:06It's a library for efficient similarity search and clustering of dense vectors.
- 24:12Of course.
- 24:12I have to do that all the time.
- 24:14Of course.
- 24:14It's a data science-y thing for people that understand that.
- 24:18You probably understand.
- 24:19Contains algorithms that search in sets of vectors of any size, even ones that don't fit in your RAM.
- 24:26So that is big.
- 24:27It's written in C++, so it's going to be fast.
- 24:29And it's written by Facebook.
- 24:31Yeah, it's another one of the Facebook AI projects.
- 24:34And it also runs on GPUs.
- 24:36So it's another specialized AI system.
- 24:39I feel kind of a little, I feel a little bit like I'm not entirely keeping up with the whole world of AI.
- 24:45It's going so fast.
- 24:46No, but now I get the name.
- 24:47It's Facebook AI similarity search.
- 24:51Yeah, there you go.
- 24:51Right on.
- 24:52Okay.
- 24:53Yeah.
- 24:53And who knows, maybe even when it auto tags you.
- 24:57Who knows?
- 24:58Maybe it's using this.
- 24:58Maybe.
- 24:59All right.
- 24:59So another one that's interesting, sticking with the web for a little bit, is Mechanical Soup.
- 25:03Yeah.
- 25:04Actually, I hadn't heard of this before I ran across this list.
- 25:07So this is neat.
- 25:07I haven't either.
- 25:08Yeah.
- 25:09And that's why I like this little article project that we're covering.
- 25:12Because I would say a good five or six of these.
- 25:14I'm like, whoa, I'd never even heard of this.
- 25:16Mechanical Soup is an automation library for interacting with websites.
- 25:22So a little like Selenium, a little like Requests.
- 25:24It'll keep cookies and send them around.
- 25:27It'll follow redirects and interact with links and forms and all kinds of stuff, which is pretty awesome.
- 25:32Yeah.
- 25:32I want to give sort of notable mention as well to another one from Kenneth Wright's here called Requests HTML, which is somewhat similar.
- 25:41So this is Mechanical Soup, like Beautiful Soup.
- 25:44And Requests, you know, everyone knows what Requests is.
- 25:47Well, Kenneth Wright's created another project called Requests HTML, which kind of merges Beautiful Soup and Requests as well.
- 25:53So they're in the same space.
- 25:55Yeah.
- 25:55And, you know, if something goes wrong, you can get an exception.
- 25:59But at least you can make them better, right?
- 26:01Yes.
- 26:02With better exceptions.
- 26:03What's that?
- 26:04The better exceptions is just it's a you kind of have to modify your code a little bit to make use of these.
- 26:10But it intercepts the exception process so that you're the output, the tracebacks from your exceptions are easier to read and prettier.
- 26:18There's colors in there and it tells you what values are and it kind of points the value to the variable.
- 26:24And actually, it's kind of fun.
- 26:26It's a neat thing to check out.
- 26:28Yeah, it basically creates little like lines mapping parts of the code.
- 26:32And one of the things that's actually super cool, if you look at the GitHub screenshot there, when it shows you the error, do you see, Brian, how it actually shows you the values of the functions that the values that were passed to the function?
- 26:47That is so incredibly cool.
- 26:49So you'll say this function was called and it crashed.
- 26:51And not only does it just say, too bad it was on this line and color it in like indented, but like if it has a say, here's a function called deep and it takes A plus B and it'll have little visual lines going A is 2 and B is 15 in this crash.
- 27:06Like that is awesome.
- 27:07Yeah.
- 27:07And it's even though it'll even go back a little bit and interpret things beforehand.
- 27:12So I'm not sure how this is doing it, but it's pretty cool.
- 27:14It's definitely cool.
- 27:15It's definitely better, isn't it?
- 27:16Yeah.
- 27:17Yeah.
- 27:17For me, it's similar to most of my, a lot of time I'm in the testing world and pytest does a lot of this stuff for you also.
- 27:24It isn't as pretty with the colors and everything.
- 27:27Yeah.
- 27:27Quite cool.
- 27:28Anyway.
- 27:28So have you heard the saying that if you have a problem that you solve with regular expressions, then you solve it with regular expressions.
- 27:36Now you have two problems.
- 27:37Yeah.
- 27:38This next one is meant to kind of make that go from one to zero, not one to two.
- 27:44Tell us about it.
- 27:46One to zero.
- 27:47I don't get that.
- 27:48Well, you have a problem and it's solved rather than I had a problem.
- 27:51Now I have two problems.
- 27:52Now you have two problems.
- 27:53So it's flash text.
- 27:55And it's a very focused solution for searching and search and replace and things that you would often use regex for and finding words within sentences and grouping them into.
- 28:07You can have a set of phrases that all kind of phrases that all kind of mean the same thing.
- 28:12If you want New York and big apple to mean the same thing.
- 28:15You can search them together.
- 28:16You can search them together.
- 28:16And it's like really, really fast.
- 28:19Like if you look at the link that will conclude, it has some graphs on a search size compared to regex.
- 28:26And it's kind of incredible.
- 28:28Yeah.
- 28:28It's really nice.
- 28:29And so you can say it'll take like the sentence.
- 28:33I love big apple and, you know, the big apple and the Bay area or something like that.
- 28:38But if you've told it big apple is a stand in for New York and you ask, Hey, what keywords are here?
- 28:43It says New York and Bay area.
- 28:44Or you could also put San Francisco, right?
- 28:46Yeah.
- 28:47So, so quite cool.
- 28:49And it's a way to sort of normalize text data for various things people might say.
- 28:53I like it.
- 28:54Yeah.
- 28:55It's super simple and you don't have to write regular expressions.
- 28:57So that's good.
- 28:58Yeah.
- 29:00I'm not really afraid of regular expressions, but yeah.
- 29:03Anyway.
- 29:04Yeah.
- 29:04I'm not terribly afraid of them, but they're not the first thing I'd jump for.
- 29:06Okay.
- 29:07So I find dates in Python to be surprisingly not obvious.
- 29:13How about you?
- 29:13Well, they're really easy until they're not easy.
- 29:15Exactly.
- 29:16You're like, wait a minute.
- 29:17That one has a time zone in it and that one doesn't.
- 29:19You're done.
- 29:20Too bad.
- 29:20Good luck with that.
- 29:23There's a lot of projects in Python to deal with, deal with date time.
- 29:27And Maya is one that is, is from Kenneth Reitz.
- 29:32Yeah.
- 29:32And so, so it's a for humans application.
- 29:36Yeah.
- 29:37People feel better when whatever their project that they're using, like request HTTP for humans,
- 29:43right?
- 29:43So this is date times for humans.
- 29:44Quite nice.
- 29:45So if you're working with date times, it has a lot of, a lot of cool features and, and simplifies things around date times.
- 29:53Some of the slang features are kind of fun.
- 29:55So you can say, do things like give it a date and say a week ago or, and have it generate things like those sorts of slang versions of words.
- 30:05And so interacting with putting out text, you don't want to use JavaScript.
- 30:17You want to keep it on the Python side.
- 30:19Maya is a good choice.
- 30:20But anyway.
- 30:22Yeah.
- 30:23Yeah.
- 30:23It's cool.
- 30:24Yeah.
- 30:24It's cool.
- 30:25So you can say like slang time and it'll say that's, you know, 23 hours from now, or that's tomorrow, or it's yesterday, which is a real nice way to not be overly precise.
- 30:32If you want to just put that on like a forum or something to that effect.
- 30:35This portion of talk Python to me is brought to you by Cloudbolt.
- 30:40Friends don't let friends violate PEP 8, nor do they let them spend their days in an unfulfilled work environment.
- 30:46Good news.
- 30:47Your friends at Cloudbolt want your help developing their state-of-the-art cloud management software.
- 30:52Built with Django and ranked as the number one product of its kind, Cloudbolt is looking for talented engineers of all types.
- 30:59Located in beautiful Portland, Oregon, Cloudbolt is an hour from the Pacific Ocean and Mount Hood.
- 31:04You're not in Portland?
- 31:05Not a problem.
- 31:06Cloudbolt offers a relocation stipend to the Pacific Northwest and is also hiring solution engineers from everywhere around the globe.
- 31:13Whether you're interested in containers, hypervisors, or just writing clean performant Python code, Cloudbolt would love to hear from you.
- 31:20Visit talkpython.fm/Cloudbolt for more information.
- 31:24That's talkpython.fm/Cloudbolt.
- 31:27So I think this next one is right up your alley, Brian.
- 31:31Really?
- 31:32I do.
- 31:33I do.
- 31:34I'll take it for you, but I think it's up your alley.
- 31:37So I don't know how to say it.
- 31:39Mimesis?
- 31:39Mimesis?
- 31:41I'm going to go with mimesis.
- 31:42I don't know.
- 31:42So it's another one of these fake.
- 31:43It's another one of these faker libraries.
- 31:46So the idea is you can go and say, I would like to create a person object.
- 31:50And you can ask, what's their occupation?
- 31:51How old are they?
- 31:53You know, what's their name?
- 31:54And you can tell things like, please answer me in English or German or whatever.
- 31:59And it will basically generate fake test data.
- 32:02So you could, you know, create a fake database and put it in a SQLite file, then use that
- 32:09for testing or things like that.
- 32:10So pretty cool.
- 32:11Oh, yeah.
- 32:11That does look neat.
- 32:13And it looks like they have a page on like, well, why am I using this versus something else?
- 32:17So they have a comparison to other libraries.
- 32:20So it's good when people are trying to decide.
- 32:23Yeah, it has a cool function called identifier.
- 32:25And you can give it a mask, just like number, number, number, dash, dash, number, number,
- 32:29slash, number.
- 32:29And it'll like create one.
- 32:32So if you need, say, like social security numbers or something else like that, it'll,
- 32:37it's really easy to generate those.
- 32:38Quite nice.
- 32:39Yeah, I could see where that'd be useful.
- 32:41Neat.
- 32:41Yep.
- 32:41So this next one is called open paperless for scanning documents.
- 32:47I know, I don't know anything about this.
- 32:48Tell me about that one.
- 32:49Well, so this is a, I didn't know about this before reading this.
- 32:53So apparently there's a, a document management system called the Mayan EDMS.
- 32:58So I'm guessing Mayan electronic document management system, probably for some reason,
- 33:05there's open paperless is a, even though the Mayan EDMS is a, is an open project.
- 33:12Also the interface, apparently at least some people don't like the interface.
- 33:15So open paperless is a Python interface to this system and a simplified interface to it.
- 33:22So probably only have concern with, for people that interested in that, but maybe I should be.
- 33:28Yeah.
- 33:28Well, it's, it's got a lot of possibility for the automate the boring stuff type of things,
- 33:32right?
- 33:33Like I'm so tired of being in this office and doing this.
- 33:35Like, can I write Python to make my job better?
- 33:37Yeah, definitely.
- 33:38Right.
- 33:39Like I don't use paper for anything.
- 33:40I'm not sure it'd be any value to me, but I can see how it would be for others.
- 33:44Yeah.
- 33:44And like things like places where you have to keep signed, keep copies of signed contracts
- 33:49and receipts and all sorts of, there's a lot of jobs where you have to keep at least the,
- 33:54a scan of the physical version.
- 33:56So that would be good.
- 33:57All right.
- 33:58This next one is a shout out to my, one of my absolute favorite TV series.
- 34:02And it scares me to death.
- 34:04Really?
- 34:05So F society.
- 34:06Okay.
- 34:07That's the hacker crew from Mr. Robot.
- 34:10Okay.
- 34:10It means a couple of things.
- 34:12It's a play on like that little arcade where they, they all hung out where the U and the
- 34:17N fell off, but also, you know, the more obscene version of it as well.
- 34:21But so this one is a set of tools for hackers.
- 34:25If you're doing penetration testing or things like that.
- 34:29So you can check out, this is on GitHub and you can go and grab it.
- 34:33So if you say wanted to turn this loose against your code or your infrastructure to see what
- 34:38would happen if somebody else did that, you might want to give that a look.
- 34:41Yeah.
- 34:42And hopefully the people that you're trying to protect from aren't using the same tools,
- 34:46but you know, that's, that's one of those good thing, bad things sort of things, but yeah,
- 34:50for sure.
- 34:50Yeah.
- 34:51And it turns out that a Python is a big hit with hackers.
- 34:53It's actually an interesting article about like the growth of Python adoption amongst hackers
- 34:59was like 77% over the last year or something crazy.
- 35:03like that.
- 35:03Well, they're a segment of the population and Python's growing in all segments.
- 35:07So yeah, that's right.
- 35:08It's just, maybe it's because of all the opportunities to do live coding.
- 35:12It definitely could be.
- 35:15So this, you can take your program and you can hook up a debugger to it and sort of step
- 35:20through.
- 35:21That could be like PDB or that could be PyJarm or something like that.
- 35:25But this live Python one is a little bit more of a, I would like to sit back and watch how
- 35:32my program works.
- 35:33Right.
- 35:34Yeah.
- 35:34And I'm still kind of a little confused by this one, but it's a, it's an application that's,
- 35:39so you have to, it sits on your desktop and yeah, you kind of watch as your program's running
- 35:45to tracing sort of thing.
- 35:46And then you can see lots of stuff going on inside.
- 35:50Yeah.
- 35:50So it says, it lets you basically watch your program run like a movie.
- 35:56So you can say, go and I'll sit back and it'll show like the execution through your program,
- 36:02as well as like a stack of variables, like a watch window of variables just on the side
- 36:06there, which is, it's pretty cool.
- 36:08Yeah.
- 36:08Maybe you could just have it.
- 36:09You could have that just running while you're at lunch and people think you're working while
- 36:14you're.
- 36:16I'm sorry.
- 36:16I'm not, I'm not coming back.
- 36:17I'm compiling.
- 36:18Yeah.
- 36:18I don't know.
- 36:20It might be fun.
- 36:21I think it's a good idea.
- 36:22I saw there was some coffee cup that you can get that it'll like heat itself up at like
- 36:27six 30 in the morning and to like start to steam before you get into the office.
- 36:31So it looks like you're in early, you just stepped out.
- 36:33So this can go along with that.
- 36:34Yeah.
- 36:35So I told you I was confused about PIPF, right?
- 36:40Yeah.
- 36:40Yeah.
- 36:41Still, still confused.
- 36:42And Hatch is also pretty awesome, but it also makes me confused because there's a
- 36:46there's all these different ways of what time might work with stuff.
- 36:48So Hatch is another package manager, virtual environment manager for Python, which is pretty
- 36:55cool and on our list.
- 36:55Yeah.
- 36:56And it also like they're taking over lots of other stuff too.
- 36:59So it, it does things like start a project and like cookie gutter that kind of does in
- 37:04it.
- 37:04It also does things like push up to PIPI and, and a whole bunch of other things.
- 37:10Right.
- 37:10It has pytest support.
- 37:11Yeah.
- 37:12Yeah.
- 37:12I don't have any issues with all the tools by themselves.
- 37:15So I'm still, yeah, I don't, I don't think I need this, but you know, but a lot of people
- 37:20use it and like it over other things.
- 37:22Yeah.
- 37:22It's cool.
- 37:23And I think what this really means that there's all these different ways of doing this stuff.
- 37:27It's like, it's just not really totally nailed down.
- 37:30Like I recently interviewed the folks around the Python language summit, which is where the
- 37:36core developers get together.
- 37:37And one of, one of the topics at the core developers meeting in 2018 was virtual environments.
- 37:44Do we need them?
- 37:47Why are they so hard to teach?
- 37:49Can we make them simpler?
- 37:50Right.
- 37:51I'm telling you, this is just like the fact that there's all these different solutions,
- 37:54I mean, it's just not quite a solved problem.
- 37:56So I guess that's, you know, it's good that people are trying to solve the problem.
- 37:59Yeah, definitely.
- 38:00This next one that came up is, I guess if you're in the right space, it'll be useful.
- 38:05I'm not totally entirely sure, but number 24 is tangent, which is, it does source to source
- 38:12debuggable derivatives.
- 38:13Sure.
- 38:14In pure Python.
- 38:14Why not?
- 38:15As in, you know, DYDX.
- 38:17Yeah.
- 38:19The first derivative of a thing.
- 38:22So anyway, it's, if you have to do numerical differentiation, Python, it's pretty cool.
- 38:27I probably don't want to say more than that about this one.
- 38:29Sure.
- 38:29So previously we had profit.
- 38:30Did you foresee that Clairvoyant was coming?
- 38:33Yeah, I knew that.
- 38:35Because I wrote it in here, in the list.
- 38:39So Clairvoyant, which is like kind of an awesome name for a project.
- 38:42It's a software designed to identify and monitor social and historical cues for short-term stock
- 38:50movement.
- 38:50So it's, oh yeah, it's like kind of like profit, but focused on stocks.
- 38:55I'm guessing.
- 38:56Yeah.
- 38:56Yeah.
- 38:57Nice.
- 38:58Yeah.
- 38:58For all the algorithmic traders out there.
- 39:00Here you go.
- 39:01One that is pretty promising is called Monkey Type.
- 39:05And that will come from Instagram, I believe, right?
- 39:07Yeah, that's from Instagram.
- 39:09So we have mypy, we have Monkey Type, and a couple of these other systems that are out
- 39:16there trying to take code annotations and help us either evolve or better understand our code
- 39:21or lent them to make sure they're correct based on their typing, right?
- 39:24Yeah.
- 39:24And so this one's kind of a runtime thing that it's, so if you, if you're not sure how your
- 39:29code is being used, it can take a look at your, at how it's being used in runtime and
- 39:34tell you what the types are.
- 39:36What's really interesting is it'll generate a stub.
- 39:39You know, the stubs, like it might say def add a colon int, b colon int, goes to int, and
- 39:46then just dot, dot, dot instead of an implementation.
- 39:49And then Python itself and mypy and PyCharm and whatnot can use that to actually validate
- 39:55your code.
- 39:56So it doesn't even have to modify your code.
- 39:58It can generate these sort of parallel side type definition files, these stub files, and
- 40:04put it on a type shed.
- 40:05It'd be pretty cool.
- 40:06Yeah.
- 40:06And I think it might be kind of fun to use as a, just to, to go over some code to see
- 40:11if what you think you're doing is really actually how it's being used.
- 40:15Right.
- 40:15And it's based on how it works at runtime.
- 40:17So it looks at your code and says, well, every time you call this function, you pass an int.
- 40:20So that's getting a colon int put on it right there.
- 40:25Yeah.
- 40:25You thought it was a string.
- 40:26It's not.
- 40:27It's an int.
- 40:27No, it's an int.
- 40:28That's why it's never equal to the string.
- 40:30So, and you can even say, okay, do that and apply those back to my code and I'll put Python
- 40:37three.
- 40:37Yeah.
- 40:38Annotations.
- 40:38It'll rewrite your code that has no annotations with annotations guessed from runtime behavior.
- 40:44That's pretty awesome.
- 40:44Yeah.
- 40:45That's nice.
- 40:45And then you can just diff it and see what it does and whatever.
- 40:49Yeah.
- 40:50And then we have, there's so much stuff happening on the space.
- 40:52These are not, this next year are not really on the list.
- 40:55But we have mypy, which we talked about, right?
- 40:57And there's mypyc, which will take this code here that we're talking about and compile it
- 41:02to C. Standard Python with annotations compiled to C automatically.
- 41:06Okay.
- 41:07I'm not sure how that helps me.
- 41:09That's a new project coming from Dropbox, actually.
- 41:11Okay.
- 41:11Because compiled Python needs annotations?
- 41:15No.
- 41:16If you want to, let's say you want to write a C extension.
- 41:20One thing you could do is write the C code, compile it, and then import it.
- 41:24The other thing you could do is just say this module, I would like to run through mypyc,
- 41:28and now it's a C extension.
- 41:29Oh, okay.
- 41:30Now I get it.
- 41:31Yeah?
- 41:31Yeah.
- 41:32I'm slow.
- 41:33I know you work at a place where they do C and C++, but not everyone necessarily wants
- 41:37to write it, right?
- 41:38So this will let you skip that or maintain all Python, but still get this equivalent of what
- 41:42had happened if you had done C compilation.
- 41:45Why are we even writing C anymore if we could just have this?
- 41:48I know.
- 41:48And the other thing I want to throw in there is Cython will also take this code and compile
- 41:53it to C as well with new...
- 41:56Now it just does the Python 3 type annotations, and it would make that work as well.
- 42:00So you could take monkey type and get yourself into a place where either of those things would
- 42:05work on it.
- 42:05It'd be pretty cool.
- 42:06Nice.
- 42:06They all fit together.
- 42:07Yes.
- 42:07You know, I don't know how many people listen to Python bytes, but if they did, they have
- 42:13to know we've been on a GUI trip, right?
- 42:15Yeah.
- 42:15With the help of a lot of people telling us stuff.
- 42:18We're like, oh, there's four.
- 42:19They're like, no, no, no.
- 42:19Let me tell you.
- 42:21Let's count the ways.
- 42:22Yeah.
- 42:23So there's lots of ways to do user interfaces in Python.
- 42:26One of the interesting ones is Eel.
- 42:28Yeah.
- 42:28Which I'm amused by the name because I got to make the obvious pun.
- 42:31It's...
- 42:32Or the...
- 42:33Just state the obvious.
- 42:34It's an electric Python.
- 42:35Like Electron, but with Python.
- 42:38Get it, Eel?
- 42:39I love it.
- 42:39I love it.
- 42:40The name is actually really awesome.
- 42:41So for those who don't know, ElectronJS...
- 42:45A lot of apps, probably one of the more notable ones is actually Slack, I believe.
- 42:50I'm pretty sure Slack is certainly Visual Studio Code is an ElectronJS app.
- 42:54Atom is an ElectronJS app.
- 42:55Basically write in web stuff, HTML, JavaScript, CSS, and then run in on top of Node and embedded
- 43:03Chrome.
- 43:03So this lets you take Python and replace the Node side with it somewhat.
- 43:08And it says it's for simple Electron-like apps, which is pretty cool.
- 43:14So another one, speaking of listeners helping us out, that's pretty awesome, that I think
- 43:19is more full-featured, is called Python Electron.
- 43:22And I'm going to put a link to that in the show notes as well.
- 43:25And there's actually some pretty cool interaction of here's how you write your Python code and use
- 43:33zero MQ to communicate back and forth with the browser.
- 43:36So pretty cool.
- 43:38You can write just like standard Python and then you have an object and you just say,
- 43:43this object is...
- 43:44I would like to take this object and make it the API that my app can communicate with.
- 43:50It's cool.
- 43:50Yeah, neat.
- 43:51I would say that was even surprising.
- 43:52It was surprising.
- 43:55And next up is Surprise.
- 43:56So Surprise stands for Simple Python Recommendation System Engine.
- 44:02The U and the R are silent.
- 44:05A Python scikit...
- 44:07Scikit's a noun?
- 44:08A Python scikit for building and analyzing recommender systems.
- 44:11Yeah, that's pretty cool.
- 44:13So if you have any sort of e-commerce system or if you read this article, you might also
- 44:17like that article.
- 44:18Here you go.
- 44:19Surprise lib.com, right?
- 44:21Yeah.
- 44:21Nice.
- 44:22Nice.
- 44:22So we talked about mechanical soup.
- 44:25The other one that we have previously talked about on Python Bytes not long ago is something
- 44:29called Gain, which is a web crawler, much like the other ones we talked about.
- 44:34But this one is special because it's based on AsyncIO, which is really cool, and UVloop and
- 44:40AIOHTP and things like that.
- 44:42Yeah.
- 44:42It's a web crawler framework thing.
- 44:44Yes.
- 44:45You basically give it, you know, here is, let's say, a URL.
- 44:49Start here.
- 44:50And then go actually find all the other URLs and crawl them.
- 44:54So basically, if you wanted to create DuckDuckGo, start here.
- 44:58Yeah.
- 45:01We need another one of those.
- 45:02That's right.
- 45:03But if you want to go to a website and sort of explore all the links and start downloading
- 45:07and processing that stuff, Gain is pretty awesome because it does it super, super low latency
- 45:12and in parallel with AsyncIO.
- 45:14And actually, so I like projects like this, not necessarily to make commercial products out
- 45:19of them, but for your own thing.
- 45:20So if you've got a large website that you're maintaining or a company website or your own
- 45:26personal one or whatever, and you want to make sure things are working right, being able
- 45:30to crawl it and then interact with, instead of having hooks, you've got a tool for web crawling
- 45:36that you can hook other Python up to.
- 45:39There's a lot of stuff you can do with that and having it do it quickly on maybe your
- 45:44limited little CPU that you've got playing around.
- 45:47I think it's neat.
- 45:48Yeah, that's awesome.
- 45:49So yeah, that's a really good example as well is if I've got a large website, maybe it's even
- 45:54like a CMS or something where I don't necessarily control all the stuff that goes into it.
- 45:59You want to make sure there's no broken links.
- 46:01You can easily do that with Gain.
- 46:02That'd be cool.
- 46:03Make that part of your automated build.
- 46:04All right.
- 46:05The last one here is one of these automate the boring stuff type things.
- 46:09It's not interesting to many people, but if you need it, you really need it.
- 46:13So if you would like to interact with PDFs and get data out of them, then PDF tab extract is
- 46:22for you, right?
- 46:22Yeah.
- 46:23And the, I mean, the article and the, the, the, even the read me on this show some kind
- 46:29of amazingly horrible scans of documents.
- 46:32They're not straight.
- 46:34Oh, they are horrible.
- 46:35Oh my goodness.
- 46:36They're so bad.
- 46:37Yeah.
- 46:37And there's like, I can hardly read them.
- 46:39Yeah.
- 46:39You can hardly read them.
- 46:40And yet this has, this is a way to OCR and extract data and then create data sets out of,
- 46:47out of like scans of things with tables in them.
- 46:51So one of those things of, if you need to, if you need to, if this is your job, yeah, automating
- 46:57this is a good idea.
- 46:58That is so awesome because normally what you could do with some of the tools for PDFs is
- 47:03get the text represented in the file.
- 47:06But this, these examples are not that these are, here's your tabular data just scanned from
- 47:12an image.
- 47:13Now get the text out of it.
- 47:14Yeah.
- 47:15Yeah.
- 47:15Cool.
- 47:15So I'm sure that's going to make someone's day.
- 47:17Right.
- 47:18So that's our, our top 30 from 2018, which is really based a little bit on slightly older
- 47:23data, but it was fun to cover with you, Brian.
- 47:25It definitely was fun.
- 47:26and, similar feel is, Python bytes.
- 47:30So if you, if you like this sort of a thing, we get to spend a little bit more time per
- 47:35topic on Python bytes.
- 47:36So head over to there and check us out there.
- 47:39Yeah, absolutely.
- 47:39That's a fun podcast for sure.
- 47:41So do check that one out.
- 47:43All right.
- 47:44Before you go though, there's the two questions.
- 47:45I always, always get to ask if you're going to write some code these days, what editor Python
- 47:50code specifically.
- 47:52PyCharm, always now has incredible pytest support.
- 47:56And then I also got, I'm going to get this wrong, but I got, Oliver Best Walter keyed
- 48:01me onto a project called like, power mode or something.
- 48:06And, when you, when you type it's like sparks and fire comes out and it's just a blast.
- 48:12So I'm using that all the time now.
- 48:14So you want to feel powerful.
- 48:17Like I'm kind of just low energy this morning.
- 48:20All right.
- 48:20Yeah.
- 48:20Power mode, baby.
- 48:21It's all.
- 48:22When you, when, when you copy and paste a chunk of code also, or cut a big chunk of
- 48:26code, it pops up like a bam, like a, on comics.
- 48:30it's neat.
- 48:31Oh my gosh.
- 48:32I have to find this.
- 48:33You're going to change my, the way my, my, coding works.
- 48:38This is going to be bad.
- 48:39I had to turn off the flames and the shaking of the screen.
- 48:42Cause I could, it can't work like that, but the sparks, I can, I can just work with those
- 48:46sparks.
- 48:47And so that's pretty excellent.
- 48:49Normally I would ask you for a notable PI PI package, but we literally just covered like
- 48:5435 PI packages.
- 48:56Definitely.
- 48:56So I think we're good.
- 48:58I think we're good on that one, but let me swap that one out.
- 49:00Just let, why don't you tell people about testing code, your other podcast, which you didn't give
- 49:04a shout out to yet.
- 49:05Oh yeah.
- 49:05I also do another podcast called testing code.
- 49:08That's a test and code T a two.
- 49:12I can't spell today.
- 49:13T E S T A N D C O D E.F.
- 49:16That's not that FM.
- 49:17Why am I doing that?
- 49:18It's testing code.com.
- 49:20That's it.
- 49:20Yeah.
- 49:21We cover all bunch of stuff.
- 49:22We don't just do testing and cover a lot of other things too.
- 49:25I know that we already have talk Python, but I do a little bit different take on things
- 49:30and it's fun.
- 49:31And I'm ramping things up.
- 49:32We're doing weekly, weekly podcasts for the rest of the year.
- 49:35That's awesome.
- 49:36And you've had some pretty notable folks on there, so that's good.
- 49:38Keep it up.
- 49:38Thanks.
- 49:39All right.
- 49:39Well, hopefully people have found a couple of things that really apply to what they're
- 49:43doing that they maybe hadn't heard of.
- 49:45I know I had when I went through this.
- 49:46Yeah, I did too.
- 49:47It was a surprising.
- 49:49It was very surprising.
- 49:50My clairvoyance wasn't good.
- 49:52My prophecies were not.
- 49:53A lot to gain.
- 49:54We're going to stop now.
- 49:55Oh, sorry.
- 49:56Oh my gosh, there was a lot to gain.
- 49:58All right.
- 49:59Let's just leave it there, Brian.
- 50:01Thank you so much for coming.
- 50:02Bye.
- 50:02Thank you.
- 50:03Bye.
- 50:03This has been another episode of Talk Python To Me.
- 50:07Our guest on this episode was Brian Okken, and it's been brought to you by Linode and Cloudbolt.
- 50:12Linode is bulletproof hosting for whatever you're building with Python.
- 50:16Get four months free at talkpython.fm/Linode.
- 50:21That's L-I-N-O-D-E.
- 50:22Spend your work time fulfilled.
- 50:25Write Python and Django code at Cloudbolt, developing their state-of-the-art cloud management software
- 50:29in beautiful Portland, Oregon.
- 50:31Visit talkpython.fm/Cloudbolt to join the team.
- 50:36Want to level up your Python?
- 50:38If you're just getting started, try my Python jumpstart by building 10 apps or our brand
- 50:42new 100 days of code in Python.
- 50:44And if you're interested in more than one course, be sure to check out the Everything Bundle.
- 50:48It's like a subscription that never expires.
- 50:50Be sure to subscribe to the show.
- 50:53Open your favorite podcatcher and search for Python.
- 50:55We should be right at the top.
- 50:56You can also find the iTunes feed at /itunes, Google Play feed at /play, and direct
- 51:02rss feed at /rss on talkpython.fm.
- 51:05This is your host, Michael Kennedy.
- 51:07Thanks so much for listening.
- 51:09I really appreciate it.
- 51:10Now get out there and write some Python code.
- 51:12I'll see you next time.
- 51:32Thank you.