Latest / Talk Python To Me / #499: BeeWare and the State of Python on Mobile
Transcript
- 0:00This episode is all about Beware, the project that is working towards true native apps built on Python, especially for iOS and Android.
- 0:08Russell's been at this for more than a decade, and the progress is now hitting critical mass.
- 0:13We'll cover the Toga GUI toolkit, building and shipping your apps with Briefcase,
- 0:18and the newly official support for iOS and Android in CPython, and much more.
- 0:24I can't wait to explore how Beware opens up the entire mobile ecosystem for Python developers,
- 0:29So let's jump right in.
- 0:31This is Talk Python To Me, episode 499, recorded February 18th, 2025.
- 0:37Are you ready for your host, please?
- 0:40You're listening to Michael Kennedy on Talk Python To Me.
- 0:43Live from Portland, Oregon, and this segment was made with Python.
- 0:49Welcome to Talk Python To Me, a weekly podcast on Python.
- 0:53This is your host, Michael Kennedy.
- 0:55Follow me on Mastodon, where I'm @mkennedy,
- 0:58and follow the podcast using @talkpython, both accounts over at fosstodon.org,
- 1:03and keep up with the show and listen to over nine years of episodes at talkpython.fm.
- 1:08If you want to be part of our live episodes, you can find the live streams over on YouTube.
- 1:13Subscribe to our YouTube channel over at talkpython.fm/youtube and get notified about upcoming shows.
- 1:19This episode is sponsored by Posit and Posit Workbench.
- 1:23Posit Workbench allows data scientists to code in Python within their preferred environment
- 1:28without any additional strain on IT.
- 1:31It gives data scientists access to all the development environments they love,
- 1:34including Jupyter Notebooks, JupyterLab, Positron, and VS Code,
- 1:38and helps ensure reproducibility and consistency.
- 1:41If you work on a data science team where consistency matters,
- 1:44check out Posit Workbench.
- 1:46Visit talkpython.fm/workbench for details.
- 1:50Russell, welcome to Talk Python To Me.
- 1:52Great to have you back.
- 1:53Hey, thank you for having me again.
- 1:55Yeah, it's good to have you back.
- 1:56You've been diligently working away on Beware,
- 2:00and I am very excited to see what you all are up to these days
- 2:04because I have very high hopes for the project.
- 2:06I'm multiple angles.
- 2:08I'm a fan.
- 2:09Thank you very much.
- 2:10Yeah, I have been very busy, particularly busy over the last couple of years,
- 2:14but, yeah, we've made some good progress,
- 2:16and, yeah, we started to see the fruits of what is now at this point almost a 10-year –
- 2:21well, it is over a 10-year project.
- 2:23So
- 2:23you've been at it for a long time and it's been quite a while since I had you on the show
- 2:26and Talk Python has been around for almost 10 years. And so I know you've been at it for
- 2:30quite a while. That's awesome. And it seems like you're starting to get some real traction,
- 2:35which it couldn't come soon enough.
- 2:36Yes. And the good, the sort of the reason why that has
- 2:40happened is basically about three years ago, I was hired by Anaconda to work on their open source
- 2:46team um so i am employed full-time just to work on beware uh with another guy malcolm smith who
- 2:53works with me based in based in london um and yeah just like the short version is it is amazing how
- 2:59much progress you can make when you have two people working full-time on an open source project and
- 3:02like just a lot
- 3:03of stuff all the yeah yeah i've always thought that about things it's like there's
- 3:08the main product or the main project of the main library and then there's all these little
- 3:13not fun, annoying details that somebody just has to grind through. And when it's two hours in on a
- 3:18weekend where you're excited about it, it's not the final
- 3:21push over the
- 3:21finish line, grindy details
- 3:23that people want to do. And so when it's, I wake up today and we're pushing it forward every day,
- 3:28it's
- 3:29awesome. Yeah. And
- 3:30a lot of it is also just like CPython is an awesome project, but it's a
- 3:34big project and getting anything to happen. Like it's a, you've got to move a big project in the
- 3:39direction of something, that takes a lot of political effort. It takes a lot of time. It
- 3:43takes a lot of hanging around our mailing lists. And at some point, if you're just trying to do it
- 3:46on like two hours on a weekend, that just doesn't happen. But
- 3:49if you can actually
- 3:50say, okay,
- 3:51every morning I'm going to spend an hour responding to all the email that I've received about this
- 3:55project, well, then you can do it. And then you can actually have a meaningful progress.
- 3:59And then there's also things like, I don't use, I have no disrespect whatsoever for anybody who
- 4:05uses Windows. I don't use Windows on a day-to-day basis. It is, as a weekend project, very hard to
- 4:10get me excited about working on Windows app signing as a personal side project. And I am going to see
- 4:17no benefit out of that whatsoever. But when I've got time for it, a lot of other stuff
- 4:22becomes more plausible and more palatable as a thing to look at.
- 4:26Yeah. I want to let you do an introduction for yourself real quick before we dive into it. But I
- 4:31want to tie this back to PyScript a little bit as well. I think there might be some times that
- 4:35align there.
- 4:36There absolutely are. Yeah,
- 4:37I can imagine. So for folks who haven't listened
- 4:41over all of the years and have a really great memory, tell us, who are you? What are you up
- 4:46to these days? Give us a bit of a hint already.
- 4:48So hi, I'm Russell. I am in days of yore,
- 4:53I was possibly better known for my contributions to the Django project. I was a very early contributor
- 4:57or a member of the Django core team.
- 4:59I don't do anywhere,
- 5:01well, I basically don't do any Django work at this point.
- 5:03My interests have moved away from web stuff generally.
- 5:06For about the last 10 years,
- 5:08I have been working on the Beware project,
- 5:10which is a collection of tools and libraries
- 5:14to support building graphical user interfaces,
- 5:18native graphical user interfaces
- 5:19in Python
- 5:21and targeting that at desktop platforms,
- 5:23so Windows, Linux, macOS,
- 5:25but also mobile platforms, iOS and Android,
- 5:28the web as a GUI user interface,
- 5:32and more recently also TextUID,
- 5:33the console-based applications.
- 5:35Working on the premise that every platform
- 5:38has a concept of a native interface.
- 5:41Now, there is a concept of a button
- 5:44on all of those platforms.
- 5:45How you access that button is different on every platform.
- 5:48And Beware's goal is to, one,
- 5:51put a clean interface around the outside of that
- 5:54so you can have a common API for,
- 5:55I just want a button on the screen
- 5:57so when I push the button, the light goes Bing.
- 6:00One, provide a common cross-platform API for that.
- 6:02And then two, provide the mechanisms to say,
- 6:05okay, I have written my machine
- 6:07that goes Bing with a button.
- 6:08I want to give it to someone
- 6:10and I want to give it to them
- 6:12using the platform's app infrastructure.
- 6:16I just want to have it on this person's iPhone
- 6:19or give it to a Windows user
- 6:21and have them just run it
- 6:23without having to go through, okay, well, first you've got to set up
- 6:26a Python virtual environment, and then you've got to pip install it.
- 6:29Are you familiar with the terminal?
- 6:32Why don't you become
- 6:32familiar with the terminal?
- 6:33We'll
- 6:34start there, yeah.
- 6:35From my perspective, there are absolutely, as a developer,
- 6:39I need to know that.
- 6:40As a Python user, I need to know how that stuff works.
- 6:43If I have
- 6:44written a program
- 6:44and I want to give it to someone,
- 6:47if they need to know what Python is, I have failed as a developer
- 6:50because as an end user, they don't care.
- 6:53They
- 6:54just want to spool the app
- 6:55the same way as everything.
- 6:56They want to double click on an icon and make the thing work.
- 6:59And that's the other part of
- 7:00doing it.
- 7:01That's awesome.
- 7:01And I would say if it's not possible to have a little colorful,
- 7:06native-looking icon, either in your dock, in your taskbar,
- 7:10in your app launcher on your phone that you touch,
- 7:12and the thing comes to life,
- 7:14that's not a real app delivery platform.
- 7:16Yeah, it is a very powerful language
- 7:19with which you can do all sorts of incredible things.
- 7:21But at the end of the day,
- 7:22you've got to give that thing to someone to do it
- 7:24without giving them a three-year degree in computer science
- 7:27before they can actually do the damn thing.
- 7:29Sure.
- 7:29And even if they can, they might not want to, right?
- 7:32Yeah, exactly.
- 7:32I don't want to do that.
- 7:33It's a barrier.
- 7:34Yeah, yeah.
- 7:35I love my web browser.
- 7:36I don't want to start it that way.
- 7:37Yeah.
- 7:39Yeah, so the extension of that then is that particularly for the web,
- 7:44for iOS and for Android,
- 7:47there's kind of the foundational question then of, well, okay,
- 7:50but how do I run Python on that device at all? You
- 7:53know,
- 7:54how do I
- 7:54get Python on my iPhone?
- 7:57And I don't just want to have like a Python interpreter on my iPhone because
- 8:01you don't like the, an iPhone, everything is inside an app.
- 8:04So I need to have it inside my app. How do I get it inside the app?
- 8:06And then when it's inside the app,
- 8:08how do I invoke the code that's there and so on and so on.
- 8:12So a lot of the work that's kind of been leading up to this point is like
- 8:16literally how to make cpython work on ios how do i make cpython work on android how do i make cpython
- 8:22work in the browser um
- 8:23right so yeah that's awesome a very very interesting and powerful goal i think
- 8:29let's not talk about it just yet but i think it's gonna it's it's really it leaves python open to
- 8:35being not the default choice even though it's a really great programming default choice language
- 8:40somebody says i want to i want to get started programming awesome you should check out python
- 8:44yeah i want to build an app you shouldn't check out python right like you don't want that to be the
- 8:48the answer right and this path that you're you're making you're hacking away
- 8:53in the forest forest
- 8:54yeah exactly one
- 8:56of the one of the stimulus for me working on this there was a couple
- 9:00but one of them is that my son who is now first year university but at the time when i was sort
- 9:04of starting it was you know late primary school um was starting to look at how to program and the
- 9:11device that he had at school was an iPad. And he says, okay, well, I'm learning to program. Great.
- 9:17How do I build an iPad app? Well, you don't. Like, it's complicated. Like, maybe.
- 9:23Have you heard the story for
- 9:24it? It's kind of complicated.
- 9:26It's learning. Then you say, okay, well, but I'm learning Python because Python is a good
- 9:32language for teaching people how to program. Okay, well, now I want to write that iPad app.
- 9:39Yeah, but you can't.
- 9:40So maybe you've got to learn a different language for that.
- 9:42But I don't want to learn a different language.
- 9:44I've only barely got my hands around Python.
- 9:45Why do I have to learn another language just to be able to have an app there?
- 9:49So there's a running sort of semi-joke that goes around that Python is the second best language for everything.
- 9:55And part of it being the second best language for everything is that it needs to be able to do all these things,
- 10:01maybe not as well as Swift on an iPhone or Coughlin on an Android machine or whatever,
- 10:08but well enough that you can get something going.
- 10:11Yeah, I would be well happy to say
- 10:13it takes an extra 5% of my battery
- 10:15compared to a regular app.
- 10:16They use a Python app.
- 10:17I don't care.
- 10:18It's fine.
- 10:19But it's not that.
- 10:20It's possible, impossible.
- 10:22Right?
- 10:23That's not a great divide.
- 10:24All right, before we dive into this though,
- 10:26you mentioned that you work
- 10:28on the open source team at Anaconda.
- 10:30So I want to
- 10:30give you
- 10:31a
- 10:31moment
- 10:31to talk a little bit about what that is.
- 10:33I had Peter Wang on the show not too long ago
- 10:36and he's always super fun to talk to.
- 10:38And I know that they're putting a lot of support
- 10:42behind PyScript.
- 10:43And it sounds like the timing of releasing PyScript
- 10:46and all that is a little bit aligned with when you joined.
- 10:49Yeah, so maybe talk to us a bit about all this.
- 10:51Yeah, so Anaconda took a round of funding
- 10:56a little over three, almost four years ago,
- 10:57I think at this point.
- 10:58And part of that was to sort of really start doubling down
- 11:02on the contribution of open source.
- 11:05Anaconda is a company who is built upon tools that are open source, most notably Conda, but that's not the only piece of it.
- 11:15Conda is an open source project.
- 11:17Someone needs to maintain it.
- 11:19Anaconda is able to make money selling this open source product, this whole Python ecosystem, into Fortune 500 companies who need all sorts of legal compliance and standards compliance and security reporting and all that kind of stuff.
- 11:33that your student doing a high school computer programming degree doesn't care about, but
- 11:38the big end of town does.
- 11:40Anaconda is able to make money out of that, but recognizes that the only reason they're
- 11:45able to make money doing that is that there is this open source foundation, that Python
- 11:49is an open source ecosystem.
- 11:51And unless people are maintaining that stuff, Anaconda is not going to have a company in
- 11:57a couple of years because everyone's going to move away from Python or do other things
- 11:59or find other ways of solving problems.
- 12:02And, you know, that ultimately is bad news for Anaconda.
- 12:05The other side of it, and sort of the reason why PyScript is interesting, why Anaconda
- 12:10is supporting iOS and Android work, is that there is an opportunity here to just literally
- 12:15make the pie bigger.
- 12:16That if Anaconda, you know, if someone can come in and say, oh yeah, I want to write
- 12:20my, you're at a Fortune 500 company, I want to write my app, I want to write it in Python.
- 12:24Okay, well now I can do it at iOS and Android.
- 12:27There's now more users for Anaconda's products as a result of this investment that's been
- 12:32in iOS and Android to make it possible at all.
- 12:35It is very much a long-term project.
- 12:37But like this is iOS and Android stuff.
- 12:39Conda as a project does not have particularly good support
- 12:42for iOS and Android.
- 12:43Eventually, hopefully not that far off, it will.
- 12:47But you don't get to Conda supporting it
- 12:49until Python supports it.
- 12:51And you don't get Python supports it
- 12:52unless someone sits down and actually does the hard work
- 12:55to make that happen, which is essentially what I was hired to,
- 12:58myself and Malcolm, who had to do.
- 13:00And PyScript fits in a very similar boat.
- 13:02The web is undeniably a platform that is everywhere
- 13:06that you can't run Python in, or you couldn't run Python,
- 13:08or it was very hard to run Python in.
- 13:10And PyScript as an effort is essentially saying,
- 13:14okay, let's make it as straightforward as possible
- 13:16for me to just drop some Python into a browser
- 13:19and do web user interface stuff
- 13:22where instead of having to learn JavaScript
- 13:24and learn a whole new ecosystem
- 13:25and learn a whole bunch of new set of tools,
- 13:27I can just use Python and open up.
- 13:30that whole other ecosystem of places where you can run Python code as another place where you
- 13:36might want to do things.
- 13:37Yeah. And to give people a sense of what's possible with PyScript,
- 13:40it's very, very interesting. On iOS and also on Android, I'm sure I just haven't tried it,
- 13:47you can create progressive web apps and then say, save this to my home screen. And when it launches,
- 13:52it looks like a native app, but you can't really tell that it's not a native app.
- 13:56I put together a sample when PyScript first came out that had an offline or offline capable PyScript, all Python written app.
- 14:04And it was talking to some APIs out on the Internet.
- 14:07And even just those early stages, it was like, wow, this really makes things possible.
- 14:12The challenge is, I mean, this is the big challenge, is people don't discover apps on their mobile devices through progressive web apps, right?
- 14:21Hence your project, right?
- 14:23They go to the app store and they click get or buy,
- 14:27and then it shows up on their device, right?
- 14:29It's kind of like back to like,
- 14:31well, if you could create a virtual environment,
- 14:32you could run this thing.
- 14:33If you can create a progressive web app,
- 14:35I'm a huge fan of them,
- 14:36but
- 14:36my fandom doesn't change people's
- 14:39behavior, right?
- 14:40Sure.
- 14:41But there is also like to defend my own project here,
- 14:44like I'm a big fan of PyScript.
- 14:46I love what they're doing.
- 14:47There are limits to what you can do in a progressive web app.
- 14:49Those limits are getting extended further and further out,
- 14:52But
- 14:52there are things that
- 14:53if you want to have access to the entire capabilities of your device directly at the hardware layer, you can't do that in a progressive web app.
- 15:02You can only do it if you're actually writing to the native APIs and you've got direct hardware access.
- 15:09The web browser sandbox does place some limits on what you can do.
- 15:15Do those limits matter?
- 15:16That's an open question.
- 15:17there are a lot of things that probably should be progressive web apps that are, you know,
- 15:21or that could be progressive web apps.
- 15:24But that doesn't mean that there's no market for native apps or that PyScript is like,
- 15:29PyScript is eventually going to make, you know, Beware or native apps completely irrelevant.
- 15:33Because
- 15:33there is...
- 15:33No, it absolutely won't.
- 15:34Yeah.
- 15:35And the other thing is that they actually do complement each other really well.
- 15:38Like, Beware does have a PyScript web backend or PyScript-based web backend specifically
- 15:44so you
- 15:45can say, okay, I want to build an app.
- 15:47it has a button and when I press it, the dialog button,
- 15:49my dialog box pops up.
- 15:51Nothing about what I just said dictated whether it was a web browser
- 15:55or an iOS app or a desktop app.
- 15:57I can render that on all of them and then say, okay,
- 16:00well, it starts as a progressive web app because that's how I want to do it
- 16:02and then I'm going to spend a little bit more effort
- 16:04and actually make it into a native app and get it into the iOS app store.
- 16:07You can progress along that chain without cutting off any options.
- 16:13Yeah.
- 16:13Oh, I think your project, the native app side is critical.
- 16:17I just think there's also a bunch of people out there that say, well, I'm going to build a front end, interactive front end and have a bunch of Django REST framework or something on the back end.
- 16:25So I'll use
- 16:25React or I'll use Vue.
- 16:27And why isn't the answer Python, right?
- 16:29It
- 16:29really, really could
- 16:30be Python.
- 16:31That's kind of, I think, where PyScript has a lot of possibilities.
- 16:35This portion of Talk Python To Me is brought to you by the folks at Posit.
- 16:39Posit has made a huge investment in the Python community lately.
- 16:42known originally for RStudio, they've been building down a suite of tools and services
- 16:46for Team Python. Have you ever thought of all the things that go into a Python data science project?
- 16:53You need your notebook or IDE, sure. Also a server or cloud environment to run it,
- 16:58a version of Python, packages, access to your databases, and internal APIs. That's a lot of
- 17:03setup. And if you change any of these things, when you return to your projects a month down the road,
- 17:08you might get different results. Wouldn't it be nice to have all of this set up for you in one
- 17:13easy to access place whenever you want to get work done? That's the goal of Posit Workbench.
- 17:19Posit Workbench allows data scientists to code in Python within their preferred environment
- 17:24without an additional strain on IT. It gives data scientists access to all the development
- 17:29environments they love, including Jupyter Notebooks, JupyterLab, Positron, and VS Code.
- 17:34and yet it helps ensure reproducibility.
- 17:37Here's how it works.
- 17:38You or your IT team set up Posit Workbench
- 17:41on a powerful, dedicated server within your organization
- 17:44or on the same cloud service
- 17:46that is hosting your most important data sources,
- 17:48such as AWS, SageMaker, Azure, GCP, Kubernetes,
- 17:53or pretty much anywhere.
- 17:54There, you create dedicated, pre-configured environments
- 17:57to run your code and notebooks.
- 17:59And importantly, you also configure access
- 18:01to proprietary databases and internal APIs.
- 18:05When it's time to onboard a new data scientist or start a new project, you just fire it up in Workbench and it's fully configured and ready to go, including on the infrastructure side of things.
- 18:14All of this is securely administered by your organization.
- 18:18If you work on a data science team where consistency matters, you owe it to you and your org to check out Posit Workbench.
- 18:24Visit talkpython.fm/workbench today and get a three-month free trial to see if it's a good fit.
- 18:29That's talkpython.fm/workbench. The link is in your podcast player's show notes.
- 18:34Thank you to Posit for supporting Talk Python To Me.
- 18:38I think that brings us a little bit to one of your keynotes from 2019, where you talked
- 18:42about Black Swan events, right?
- 18:44Yes.
- 18:46It's a little bit of the same story, but maybe give people a sense of this and we can link
- 18:49to this keynote if they want to explore that side of things more.
- 18:52Sure.
- 18:52Yeah.
- 18:53So the idea behind a Black Swan event was Nicholas...
- 18:58Nassim Talib, I believe it
- 19:00was.
- 19:00Nassim Talib, that's the one.
- 19:01Yep.
- 19:01I forget his name.
- 19:02but he identified this idea of what's called a black swan event.
- 19:07The reason I use this is I'm from Perth and black swans come from Perth.
- 19:10So it was an interesting
- 19:11little tie-in for an international
- 19:12keynote.
- 19:13You guys actually have black swans all over?
- 19:15We have
- 19:15them.
- 19:16The state emblem of Western Australia is a black swan.
- 19:19Like that is literally
- 19:20on our flag.
- 19:23So the
- 19:23theory was that the Dutch bumped into Western Australia
- 19:27accidentally looking for the Spice Islands in the 1600s.
- 19:31And at the time they did that, they knew with absolute certainty that all swans were white.
- 19:37And then they bumped into Western Australia and they discovered that all the swans here are black.
- 19:42The idea behind a black swan event is a thing you don't see coming that completely changes your view of the world.
- 19:50And black swan events are the sorts of things that completely change markets.
- 19:53We don't know what, if you're not looking, if you're not ready for a cataclysmic change in your ecosystem, then the change happens and you are left behind.
- 20:05I
- 20:05would say
- 20:06COVID is a good example of what hit people.
- 20:10Another one's AI.
- 20:11Yeah, AI is still, how is that going to impact?
- 20:14It's just a little bit less clear.
- 20:16And COVID, we're kind of seeing the impacts of that, whether that's going to have long-term impacts.
- 20:21like it's some
- 20:22of those things seem
- 20:23to be kind of fading away.
- 20:24But the one that I,
- 20:25yeah,
- 20:26well,
- 20:27yeah,
- 20:27mostly.
- 20:28I mean,
- 20:28people,
- 20:28I mean,
- 20:29people still get to say,
- 20:29but like the,
- 20:30the world has shut down and
- 20:33will we,
- 20:34will economies just disappear?
- 20:36Level of,
- 20:36Oh my gosh.
- 20:37It's kind of,
- 20:37that's the history I was thinking of.
- 20:39Yeah.
- 20:39I,
- 20:40the one that I was highlighting for,
- 20:41for,
- 20:43for Python is that Python is a programming language,
- 20:46but it's a programming language that has historically assumed,
- 20:48well,
- 20:48you're running on a laptop,
- 20:49right?
- 20:50Like that's where you run computer code.
- 20:51you always run computer code in a laptop. And then iPhones turned up. And now we've got computing in
- 20:56our pocket that is as powerful, if not more powerful than the laptops that we had on our desk
- 21:0110 years ago. And Python can't run there, or at least at the time, couldn't really run there.
- 21:07So what does that mean for Python? Why am I going to learn Python? If the computing ecosystem moves
- 21:13to a world where everybody's using phones and tablets, and I can't run Python on a phone or a
- 21:18tablet, why am I going to learn Python? Python as an ecosystem has an existential risk there
- 21:23because of this black swan of a change in the way people do computing.
- 21:29And at
- 21:30the time I gave that
- 21:31keynote, what I was essentially saying is, okay, as an ecosystem, we need to take a long, hard look
- 21:35at ourselves. It's impossible to know what the black swan events are going to be, but we can look
- 21:40at where the ecosystem is now. We can look at the trends of things that are happening and we can work
- 21:44out institutionally what are our risks, like what would need to change to make Python a
- 21:52dead ecosystem.
- 21:54And the obvious one, the one that I was really pushing at that time, one of which is platforms
- 22:00that we need to support.
- 22:00And the second is how do we support this software going forward?
- 22:04How do we actually guarantee that this community-driven project continues to be maintained?
- 22:10Because if we don't have maintainers, then the code doesn't get written.
- 22:14So, yeah.
- 22:15Yeah, excellent.
- 22:15I recommend people check it out.
- 22:17It's on YouTube.
- 22:17I will link to it.
- 22:19It's scary the last five years ago.
- 22:21I know.
- 22:22I feel like that was pretty recent, but no.
- 22:25No, that was the last one before COVID, by the way, bringing it full circle.
- 22:29Tommy out there asked in the audience, is in the iOS Pythonistas app, I had some really good simple use cases in the past.
- 22:35The GUI layer, a bit of a hassle, but like the library modules, also could not call some not yet exposed APIs.
- 22:42I guess as we get into this, maybe think, just people probably know about the Pythonista app.
- 22:47I don't know.
- 22:49Yeah, it was around.
- 22:51And it's not the same idea.
- 22:52It's not what you guys are trying to do.
- 22:54Yes and no, because I actually worked on Pythonista.
- 22:57The reason that Pythonista supports Python 3, I was contracted to do the Python 3 port.
- 23:02So the
- 23:02core of that library
- 23:03is essentially the thing that Beware was doing.
- 23:05And the reason it was able to move to Python 3 was because of the work that I was doing.
- 23:10It is, yeah, it is very much sort of the Pythonista as an idea is kind of what if idle, but on a phone?
- 23:18Like here is a development environment where you can write Python code.
- 23:22You have some access to some libraries and some GUI libraries.
- 23:27So you can put a button up, but you're not writing, you're not using Pythonista to write an app.
- 23:33You're using it to put an interface into a running Pythonista sheet, you know, working
- 23:40environment.
- 23:41It is absolutely a way to write Python.
- 23:44It is a way to have
- 23:45Python running
- 23:47on your phone.
- 23:48But it is not something that's going to push something to the iOS app store so that random
- 23:52other person can buy your app.
- 23:55You know, to me, it feels a little bit like shortcuts on iOS in that you could kind of
- 23:59put together some behaviors, but you would never try to make an app.
- 24:02yeah that's it's not that's not too far from it and it except that it's all inside the sound
- 24:07yeah and you could do real python which is way better than shortcut but the kind of the type
- 24:12of thing you accomplish it feels a little bit like i can go find this thing and run it and it'll do
- 24:16something for me which is cool
- 24:17but
- 24:17yeah it's
- 24:18not going to be the new airbnb implementation no
- 24:22exactly
- 24:23and like even like i guess beware as a project isn't it the intention is not that it would be
- 24:29the next Airbnb as a final product.
- 24:33It might, however, be the mock-up of the demo app
- 24:37that you take to your initial seed funding round
- 24:40to prove, here is the idea we've got.
- 24:43We've proved it out with some people,
- 24:44just like a small little sample trial, whatever.
- 24:47Now give us the money to go and actually hire
- 24:49a team of iOS developers and a team of Android developers
- 24:51to build an absolutely kick-ass,
- 24:54optimized native application of every platform.
- 24:57Yeah, maybe a little bit like Playgrounds
- 24:59Well, perhaps in that regard.
- 25:02Yeah, a little bit, I guess, like Playgrounds, yeah.
- 25:04Yeah, also a different focus.
- 25:05But another comment maybe as we dive into this, Joe out there asks us,
- 25:09hey, great project.
- 25:10How would you sell this to us?
- 25:12And that there's a few other frameworks like WXPython, Kivy.
- 25:15WXPython also renders data of GUIs.
- 25:18How would I sell it?
- 25:20Okay, says he, pulling out the sales sheet.
- 25:23Let me get my pitch deck.
- 25:24Hold on.
- 25:25So there's essentially two questions there.
- 25:27One is wxPython and one is Kivy.
- 25:31The Kivy is a sort of the two different reasons.
- 25:35Kivy does work on iOS and Android and also on the desktop platforms.
- 25:39Kivy is taking a very, very distinctly different approach to user interface design.
- 25:44So Kivy can run on all those platforms, but the user interface that it puts up is a Kivy
- 25:49user interface.
- 25:50It always looks like Kivy.
- 25:51And it's like if you build a macOS app, it will look the same on Windows.
- 25:56It'll look the same on GDK, and it will look the same, you know,
- 25:58size of window notwithstanding.
- 26:00It will look the same on iOS and Android.
- 26:02That is a completely viable way to build apps.
- 26:06It is not a native user interface.
- 26:10And one of the major reasons that I dislike that as an approach,
- 26:14I'm not in any way saying that Kibbe is a bad project.
- 26:17It is a different way to build user interfaces,
- 26:19and I prefer a different approach, which is to say an actual native button.
- 26:23So on macOS, it looks like a macOS app.
- 26:26On iOS, it looks like an iOS app.
- 26:28On Windows, it looks like a Windows app.
- 26:32The downside is that if you need to take screenshots,
- 26:35you've got to have an iOS screenshot
- 26:36and a macOS screenshot and a Windows screenshot.
- 26:39The benefit is consistency with the rest of the platform.
- 26:43And that might seem like a totally cosmetic thing,
- 26:46but one, consistency between applications
- 26:50is a mode of user interface discovery
- 26:52because if people know this is how a button works on MacOS,
- 26:56they know how your platform does it as well,
- 26:58how your app does it as well,
- 26:59rather than
- 26:59having to discover how you have decided
- 27:01to implement menus or buttons or anything else.
- 27:05Yeah, one of the really things that stands out,
- 27:06I think, super stark a lot of times is the file open save dialogs.
- 27:10Yes,
- 27:11yes.
- 27:11It's like,
- 27:12whoa, this is clearly just alien versus...
- 27:15Yeah, and
- 27:15a lot of cases,
- 27:17they are missing the one thing on my platform
- 27:19that makes file dialogues actually useful
- 27:22because
- 27:22I can do
- 27:23this thing that I can't do in your dialogue
- 27:26because you've had to build it from scratch.
- 27:27And speaking of building from scratch,
- 27:28the other big benefit of a native GUI
- 27:31is that you get all of the platform's native affordances.
- 27:34One of the most surprising things,
- 27:36it wasn't necessarily surprising
- 27:37because I understood why I was doing it,
- 27:39but things that might be surprising to people
- 27:41who haven't followed along GUI development,
- 27:43we have received an inordinate number
- 27:46of very, very enthusiastic comments
- 27:48from blind people writing iOS apps.
- 27:52Because an iOS app built with Beware
- 27:55fits in directly with screen readers
- 27:58because it is using the platform's native accessibility.
- 28:02Kivy has not built explicitly
- 28:05native screen reader support into their widgets.
- 28:06To the best of my knowledge,
- 28:08or at least all the reports that I'm getting
- 28:09are saying that it's not there
- 28:11because you have to build it from scratch
- 28:13on every platform and they haven't done that.
- 28:16It's a lot of work.
- 28:17I'm not underselling how big of a project it is,
- 28:19but Beware got it for free because we are using native widgets,
- 28:24and that's not an insignificant consideration.
- 28:28That's
- 28:28Kivy.
- 28:28Oh, sorry.
- 28:29No, no, please
- 28:29go ahead.
- 28:30No, I was going to say, that's the Kivy.
- 28:32So that's the not native user interface but looks the same everywhere
- 28:35versus Beware's using native widgets everywhere.
- 28:38The other argument is, okay, but why don't you use WX Windows?
- 28:41The reason we don't use WX Windows is WX Windows doesn't run on iOS
- 28:44or Android and trying to make it run on iOS and Android.
- 28:47Like I did look into it and it was a little bit crunchy.
- 28:50Qt apparently works on iOS now.
- 28:53It didn't when I started the project,
- 28:56but they very much don't want you to write Python.
- 28:58And one of the things that Beware is trying to push
- 29:00and Toga as a GUI platform is trying to push
- 29:01is you're writing Python code.
- 29:03It looks like Python.
- 29:04It tastes like Python.
- 29:06If you don't want to write Python, that's fine.
- 29:08There are plenty of GUI toolkits out there
- 29:09that don't require you to write Python.
- 29:11But Toga is a Python first GUI toolkit.
- 29:14And it looks like, tastes like Python, we support, we use, actively use in APIs, iterators and generators and asyncio syntax and context managers.
- 29:25Things that WX Windows as a light wrapper around a C++ framework doesn't really expose because they are limited by what C++ looks like when you program it.
- 29:37And you also get that to a certain extent in QT as well or PyQT.
- 29:42Yeah, they're both wrappers.
- 29:43Interesting.
- 29:44So let's talk about some of the peps that make this possible, right?
- 29:48Yeah.
- 29:49There's the foundational, basically adding platforms as a intentionally supported platform
- 29:56to the CPython whole process, right?
- 29:59The core
- 29:59developers working
- 30:00on it from the builds and the deployments and all those kinds
- 30:03of things.
- 30:03And so you've got a couple of peps where you're the author of them, which is awesome.
- 30:08I'm strictly the author of one.
- 30:10Malcolm Smith was the author of the Android one.
- 30:11Oh, okay.
- 30:12Got it.
- 30:13One Android with Malcolm and one iOS with you.
- 30:16Okay.
- 30:16I see which side fence you come down on.
- 30:18I got it.
- 30:18Yep.
- 30:19No, no, no, no.
- 30:20That's all good.
- 30:20I'm with you.
- 30:21I'm with you.
- 30:22All right.
- 30:22Tell us about these peps.
- 30:23What role do they have?
- 30:25And their status is final.
- 30:27That's good.
- 30:29So, yeah.
- 30:29So, the PEP was essentially formalizing the things that Malcolm and I have been maintaining
- 30:36independently, both of us, at the time for like about eight, nine years.
- 30:41We had patches.
- 30:42like I was maintaining a set of patches to make CPython run on iOS,
- 30:46and I was manually maintaining all those patches.
- 30:48And every time a new Python release would come out,
- 30:50I'd have to go and sit down and spend, you know,
- 30:53a couple of months trying to work out, okay,
- 30:54what have they changed this time?
- 30:56And, you know, getting all of those, updating all of the PR,
- 31:00all of the code to make it work on a new version of Python.
- 31:04In the 3.13 timeframe, so it's, what, September of 2023,
- 31:12I went along to the CPython core team summit in the US.
- 31:18Sorry, it was in Bono.
- 31:22And basically with the intention of,
- 31:24I want to upstream all these patches.
- 31:26We've got these patches.
- 31:27They're not huge.
- 31:27They're big, but they're not huge.
- 31:29I'd like to formalize that.
- 31:30And so the outcome of that was what we need is a PEP.
- 31:32We need a formal description of what it is you're going to do,
- 31:35why it's going to change,
- 31:37what impact that has on the rest of the ecosystem for you to do that,
- 31:40and to formalize a couple of the little details
- 31:45that need to be formally specified
- 31:47in order for the rest of the ecosystem
- 31:49to play nice with this.
- 31:50Little details like,
- 31:51what does sys.platform return on an iOS machine?
- 31:54Like it's a really minor detail,
- 31:56but
- 31:56it's a question you've
- 31:57got to answer.
- 31:58And it's like, it's an answer that even Apple Darwin
- 31:59is probably
- 31:59wrong.
- 32:01Well,
- 32:01yeah, that's the thing. Like it's
- 32:02Darwin on macOS for some historical reasons, but like even
- 32:05on iOS, should it be iOS? Should it be
- 32:07iOS capitalized? Should it be
- 32:09iPhone?
- 32:10Should it be iPhone OS?
- 32:12Should it be iPhone OS or iPhone simulator?
- 32:14All of these are answers that Apple itself uses at various points in their API.
- 32:18And what about iPad?
- 32:20Well, an iPad is iPad iOS.
- 32:22Is that a different answer?
- 32:23And so on.
- 32:24And then the one that really matters for that is nailing down what is the platform tag that will be used for packaging purposes?
- 32:32So when a wheel, a binary wheel, eventually lands on PyPI, what's the tag?
- 32:38Like what is it?
- 32:40For macOS, it's a macOS X underscore 11 underscore ARM64.
- 32:44Okay.
- 32:45What is it for iPhone?
- 32:46Yeah, maybe we could elaborate.
- 32:47Maybe you could elaborate just a little bit on like what that even means, right?
- 32:50Because before Wheels, things were different.
- 32:52You would download it.
- 32:53You would build it.
- 32:54You'd have to have Fortran or some random thing.
- 32:56Wheels solved that, but that then created a combinatorial explosion of binary assets,
- 33:00right?
- 33:01Why does that matter?
- 33:02Why does that matter?
- 33:02So the major change with wheels is that it moved from a world where installing a Python package required you to execute code at time of installation.
- 33:15And that's not a good idea from a security perspective because you then need to audit all of the code that's going to execute when you install the package.
- 33:26And you can't find anything out about the package without running that code or at least auditing the code that's going to run.
- 33:34Wheels provides you to say, okay, this is a wheel is basically just a zip file with a bunch of known metadata that describes exactly what is in here.
- 33:44But part of that specification is also a binary specification that says, what version of CPython is it compatible with?
- 33:50What version of the operating system is it compatible with?
- 33:52What CPU architecture is it compatible with?
- 33:55So that if I look at a wheel that is labeled, for example, macOS 11.0 ARM64, I know that this will run on macOS 11 with an ARM64 CPU.
- 34:07There are any number of these tags available.
- 34:09And there's differences like the Universal 2, which will support both x86 and ARM.
- 34:15And on Linux, there's a thing called a mini Linux wheel, which is a specification for specifically what API guarantees does this Linux platform guarantee in terms of what is available in the CPython, in terms of the C library, the GNU C library, et cetera, et cetera.
- 34:34You have to be able to specify that so that I know when I get this wheel, I know where it will work and how it will work.
- 34:39And for the point of view of pip, pip knowing which version should I download?
- 34:44I've got an app here that I'm running on my macOS machine.
- 34:47Which wheel should I download?
- 34:49Go and grab one and resolve it and find out and solve that question.
- 34:52Yeah.
- 34:52So without knowing that answer, you don't know how to install wheels, basically.
- 34:57Correct.
- 34:57Part of the wheel specification is which – if the wheel contains all the pre-compiled components, in order for it to have pre-compiled components, there's an API or an ABI specification there of exactly what symbols am I going to be able to link against?
- 35:12What can I assume exists?
- 35:14Will this run on my machine?
- 35:16Yeah.
- 35:17What's going to happen, right?
- 35:19Is it even compiled from architecture?
- 35:21And we have a similar thing with Python standalone builds that is now part of Astral, which is really great.
- 35:26we can just grab the Python we need because we know the platform tags and all that kind of stuff.
- 35:30Any difference about the Android one?
- 35:33I mean, you obviously need one for each platform, I suppose.
- 35:36We do, yeah, basically.
- 35:38And there will be at some point in the hopefully not too distant future,
- 35:40there will be one for Inscripten as well, just formalizing Inscripten support,
- 35:45which is the Pyodide slash PyScript in the browser version.
- 35:50Yeah, you need to have one for every platform.
- 35:53I guess the one notable difference between iOS and Android as a PEP is that in theory,
- 36:00CPython 12 could compile on Android.
- 36:04There were some patches which had been applied without going through the formal PEP process
- 36:08on the basis of, well, it doesn't cost us anything to add this code in.
- 36:13We're not guaranteeing it's going to work, but it's not breaking anything.
- 36:16So we might as well have it there.
- 36:17And so there's one, like the process of formalizing it did change one notable thing,
- 36:25which is that previously, if you were able to get Sys.platform to compile on Android,
- 36:29and it was possible and realistically it needed some patches, but it could be done,
- 36:33Sys.platform would return Linux.
- 36:37Because technically it is, but not in a way that's even remotely helpful to anyone.
- 36:43And so
- 36:44one of the things that the PEP specified,
- 36:46like, yes, it is a Linux kernel,
- 36:48but Linux doesn't help you there
- 36:49because nothing about an Android machine
- 36:52actually behaves like Linux
- 36:54once you're past like the kernel level.
- 36:57The rest of the thing is what you actually care about.
- 36:59And the rest of the libraries you can guarantee
- 37:01is what you care about.
- 37:02And so one of the things that the PEP had to specify
- 37:06was, okay, we are changing what sys.platform means on Android
- 37:10because you need to be able to differentiate
- 37:13I am on an Android machine, not just a desktop Linux box.
- 37:18And
- 37:18so, yeah,
- 37:18so that was one notable change.
- 37:20It was in that PEP that wasn't in the iOS one.
- 37:23Interesting.
- 37:23You mentioned mScripten.
- 37:25What
- 37:25an interesting project.
- 37:27Yeah, it almost
- 37:28looks like it's
- 37:29not AI because it's LLVM,
- 37:32but it has nothing to do with it.
- 37:33Yeah, yes.
- 37:33It's a different set of LLs altogether.
- 37:37Yeah.
- 37:37So inscription is kind of the tail end, the current manifestation of a long series of
- 37:47developments that started like 15 years ago.
- 37:50Someone worked out that modern web browsers have spent so much time optimizing the JavaScript
- 37:59compilers that there are certain JavaScript constructs that map almost one-to-one to machine
- 38:06code.
- 38:06Like you can say, okay, add these two integers in JavaScript or to these two numbers in JavaScript that if you know the numbers are integers, will map through the JavaScript jits that are running.
- 38:21It will map to a literal, you know, add instruction
- 38:24on your CPU.
- 38:25Like two registers coming together.
- 38:27Yeah, two registers
- 38:27coming together.
- 38:28And so if you restrict yourself to handwriting just that subset of JavaScript, you can essentially write assembler in JavaScript.
- 38:40Now, in practice, nobody can actually do that because it's just way too constraining to know that you actually have to put the brackets around the outside of here or else the jit won't optimize it in just the right way.
- 38:52But that's what compilers are for.
- 38:53Compilers are really good at taking a set of arbitrary input and following a set of arbitrary rules to produce a consistent set of output.
- 38:59And so this thing called ASM.js was born, which is essentially an input format that could be compiled to a JIT-able version of JavaScript that would run as a native platform.
- 39:10And then from that, you can then get to WASM, which is WebAssembly, which is a formal text specification of the sort of things that ASM.js was working on.
- 39:18And then Inscripten is a compiler tool chain that plugs into LLVM.
- 39:23So if you've used a compiler like Clang, it is essentially a wrapper around a set of compiler building tools that produces output.
- 39:34So you are used to calling GCC or Clang on a C program.
- 39:39Clang calls into your C program, compiles it into an LLVM format, and LLVM converts it into actual runnable executables.
- 39:49And so it's an LLVM plugin that instead of spitting out macOS-compatible binary executable assembly, it spits out WASM.
- 39:59It spits out JavaScript-optimized code that can run in the browser.
- 40:03That's all very much high level.
- 40:05There's a lot of very, very complicated details that go on in the internals.
- 40:08But the end point is that Enscripten lets you take any arbitrary C code and compile it to
- 40:14JavaScript that will run in a browser at nearish native speed.
- 40:19Good news is that CPython is written in C.
- 40:22And so you can compile CPython into a JavaScript version or into this JavaScript subset, and
- 40:27it will run in the browser.
- 40:29There's a bunch of other stuff you need to do as well.
- 40:31And Enscripten is providing a bunch of other things like guaranteeing a bunch of Unix system
- 40:35calls are available.
- 40:36But broadly, that's the idea here.
- 40:38So you can take any C code and have it run in the browser.
- 40:41And at that point, Python is just C code.
- 40:44So
- 40:44all of
- 40:45a sudden,
- 40:45yeah, but the best news is because the browser is everywhere, because
- 40:49JavaScript interpreters are everywhere, you've now got cross-platform binaries.
- 40:53You've got a format that you can compile to once, and it will run pretty much everywhere
- 40:59because existentially, every platform that matters has a web browser now, which means
- 41:03it's got the ability to run JavaScript.
- 41:05And so JavaScript becomes this cross-platform format
- 41:09without ever actually being JavaScript the language.
- 41:12It's just kind of exploiting some weird quirks
- 41:14of the
- 41:14way JavaScript
- 41:14works as a language.
- 41:16It's like saying you never write assembly,
- 41:18but kind of still do machine instructions.
- 41:20But you're always writing
- 41:21assembly.
- 41:21Yeah, exactly.
- 41:22There's a really, if you go back, oh gosh, 12, 13 years,
- 41:27Gary Bernhardt gave a talk at PyCon
- 41:29called The Birth and Death of JavaScript.
- 41:32So good.
- 41:33It was so good.
- 41:34It is hilarious.
- 41:36At the time, it was just straight up, oh, this is a funny gag,
- 41:39except that he has accurately predicted the next 15 years
- 41:43of software development in terms of the way everything has gone.
- 41:46And I've never spoken to Gary about it,
- 41:48so I don't know how much of this was just for the giggles
- 41:53and how much of it was accurately like this is where things are going.
- 41:57But as it
- 41:58turns out It
- 41:58was
- 41:59both really, really entertaining
- 42:00and really technically well-presented
- 42:04and predicted, like you said.
- 42:05Yes.
- 42:06It's something.
- 42:07And for people who are not familiar with this stuff,
- 42:09like one of the examples he showed,
- 42:10I don't know if he came up with it
- 42:11or he was just quoting and showing it off,
- 42:13but somebody took Mozilla Firefox, I think,
- 42:16and compiled that into Scriptum,
- 42:18was running inside of Chrome,
- 42:19but then inside the embedded,
- 42:21Firefox was running like Doom compiled,
- 42:23Doom Scriptum or some crazy 3D.
- 42:26I mean, it was wild.
- 42:27Yeah.
- 42:27The list of things you can do once you've got the ability to compile C is truly phenomenal,
- 42:35purely
- 42:35because
- 42:36the C compiler toolchain for all of the flaws of C as a language, C is
- 42:43lingua franca.
- 42:44C
- 42:44is where everything
- 42:45is done.
- 42:46And we're
- 42:47now kind of removing, like the whole thing with LRVM is essentially we're removing
- 42:50C from the front end, letting you put any language you want on the front.
- 42:54But now we can use the same toolchain to target any platform we want.
- 42:57And so you divorce the specific language from the tool chain that is producing platform-specific binaries.
- 43:05Nice.
- 43:05All right, let's talk about some of the projects and get some updates on them.
- 43:08I know it's been a while.
- 43:09And,
- 43:10you know, you've got a lot of support from Anaconda, which, you know, thank you again.
- 43:15Yes,
- 43:15absolutely.
- 43:16That's
- 43:16awesome.
- 43:17So we'll maybe touch on some of the high-level or most important ones.
- 43:20Toga?
- 43:21So
- 43:22Toga, the cross-platform GUI toolkit.
- 43:24So this is the analog of a Kibbe or a QT or a WX Windows.
- 43:30It's the API that lets you say, I want a window that has a button.
- 43:33And when I press the button, the light goes off, whatever
- 43:36you want it to do.
- 43:37Put this text in the label or whatever.
- 43:39Exactly,
- 43:40exactly.
- 43:41So it is cross-platform, pure Python, runs cross-platform.
- 43:47And by cross-platform, I mean all the desktop platforms,
- 43:49so Windows, macOS, Linux with GTK.
- 43:53It runs as a web.
- 43:55There's a web backend and a textual backend.
- 43:56Both of those are very early prototypes,
- 43:58but I can't, like there are demos I can do
- 44:00that I demonstrate that it works.
- 44:02And also iOS and Android.
- 44:04So essentially anywhere that you might want plausibly
- 44:06to have a user interface,
- 44:08I can give you a user interface purely written in Python.
- 44:11We also cover a bunch of hardware services as well.
- 44:15So for example, you can, using a pure Python interface,
- 44:18get a GPS read.
- 44:19You can work out where you are at a GPS
- 44:21and we have a native WAP widget.
- 44:22So you can say, get a GPS read and put it by center of the map of where I am currently standing.
- 44:26And that works on iOS, on Android, on macOS.
- 44:30We've got it working on GTK and we've got a PR in flight to make it work on Windows as well, I think.
- 44:35That, you know, it just, same code just runs everywhere and just, where am I?
- 44:39Give me an answer.
- 44:40Give me a
- 44:41ping every
- 44:41time I move a significant distance.
- 44:43And also for cameras, similar, similar thing for cameras.
- 44:46There is a question out of the audience, which I don't know the answer, but I'll throw that for you.
- 44:50Is there any more love coming for the Beware WebView widget?
- 44:55Having a case, not what they're referring to with Ceph,
- 44:59but
- 44:59is there
- 45:01more love coming?
- 45:03I mean, sure, as soon as somebody wants to pay attention to it.
- 45:05Am I actively intending in the very near future to do anything with it?
- 45:09Probably not.
- 45:10The most likely change that's on the horizon is to close the loop on callbacks.
- 45:15So at the moment, you can, from Python,
- 45:18inject arbitrary JavaScript into a web view,
- 45:21but you can't have something happen in the JavaScript
- 45:24to trigger an action outside in the Python,
- 45:26which is essentially kind of the last piece of the puzzle you need
- 45:29to have a full kind of electron clone.
- 45:33Yeah, I was going to say, that's very electron.
- 45:35Yeah, we
- 45:36actually have a bunch of tooling in place.
- 45:39We call it positron because it's like electron,
- 45:41but positive because it's Python.
- 45:42I love it.
- 45:43I love it.
- 45:43Yeah, so we can take a website and turn it into a native app.
- 45:48The only thing you can't do is then close the loop back out
- 45:50and call native hardware type stuff back into the Python API.
- 45:56Not impossible to do.
- 45:57I know exactly how to do it on iOS and macOS.
- 45:59I think I know how to do it on GTK.
- 46:01I don't know how to do it on Windows.
- 46:03So that might happen at some point in the not too distant future.
- 46:08Beyond that, oh, Seth, are they referring to the Chromium framework?
- 46:12No intention to, but if someone wants to write that up,
- 46:15there's no reason you couldn't be a standalone widget.
- 46:17This is very much from the Django days of if there is no,
- 46:24just because something exists doesn't mean it needs to be in the core.
- 46:27So if someone wants to write a third-party widget
- 46:30that wraps the Chromium embedded framework
- 46:33and turn it into a Toga widget, Toga will support that.
- 46:36And to the extent that if there's something that makes it a little bit crusty,
- 46:39there's probably a couple of areas where it could be a little bit smoother.
- 46:41If there's a way we can make it smoother, I'm totally on board with that.
- 46:44Doesn't mean it needs to be in Toga core itself.
- 46:47Django has a huge ecosystem of Django compatible plugins.
- 46:52Toga very much can be in that same space.
- 46:54Everything doesn't have to be in Toga for it to be useful in Toga.
- 46:58That's awesome.
- 46:58That's good to know.
- 46:59So I guess maybe the big updates here are the textual and the web targets for Toga.
- 47:04Is that right?
- 47:05They've been the biggest changes in the last eight years, I guess, is that those two now
- 47:10exist.
- 47:11And obviously you still need a lot of work, but like proof of concept, you can do it.
- 47:15And it's really
- 47:16just kind of turn the handle and make more widgets come out.
- 47:19The biggest sort of impediment to that at the moment is actually testing.
- 47:22One of the changes that has come on since I've been working at Anaconda full time is we've
- 47:28gone and got test coverage.
- 47:29We've got 100% test coverage of all of the core and all of the desktop and mobile platforms.
- 47:34So we have a very, very solid regression test suite to know that things aren't going to
- 47:39break as a result of this weird little tweak over here that we make.
- 47:42We've actually got validation of all that.
- 47:44We don't have that yet on web and textual,
- 47:47mostly because of quirks of how those platforms actually run.
- 47:50There's a kind of a foundational question we need to answer on the web one
- 47:53in particular.
- 47:55Yeah, I can imagine how the textual one works.
- 47:57What's the runtime look for part of the web?
- 48:00Is that PyScript or is that PyOxid?
- 48:03It is PyScript,
- 48:04yeah.
- 48:05So it's a briefcase, which I guess we'll get to in a moment,
- 48:08But Briefcase has the ability to target a web deployment.
- 48:10It generates a HTML page that injects a load this wheel.
- 48:17And this wheel is your app.
- 48:19But it's a Python wheel that just contains your code for your running app.
- 48:25And, yeah,
- 48:25but it's PyScript
- 48:26that's making that work.
- 48:27Yeah, PyScript is neat.
- 48:28Definitely neat.
- 48:29Just
- 48:30the fact that it's opening up these types of things.
- 48:31So Briefcase, yeah, let's dive a little more into that one.
- 48:34Yeah, so Briefcase is then sort of the other part of the story.
- 48:38you know, I've written this out.
- 48:39It gives you the runtime,
- 48:40but you're still in the terminal to launch it
- 48:41with virtual environments and all that kind of business, right?
- 48:44Yeah, okay.
- 48:44Yeah, so briefcase is,
- 48:46the scary thing is at the end of the day,
- 48:47briefcase is really just kind of three templates
- 48:50in a trench coat.
- 48:51There's not a lot of,
- 48:52like, there's not a lot that it's doing beyond that
- 48:55and also encoding all of the annoying details
- 48:58that are embedded 15 pages deep in Microsoft's
- 49:02how to write an app, you know, documentation
- 49:06around code signing and packaging and building an installer
- 49:10and all of that kind of stuff.
- 49:12So on the theory that 99% of Python users have code
- 49:17that runs as Python minus M, my app, make that be a macOS app.
- 49:21And that's what Briefcase does.
- 49:22It says, okay, how do I turn this into an icon on my desktop
- 49:26that I can double click and the app will just start.
- 49:28And it will include
- 49:29an embedded
- 49:30version of Python.
- 49:32So I don't need to tell my end user how to install Python.
- 49:35it will be signed and notarized in accordance with Apple's latest specifications it might come
- 49:41inside a DMG because I need to be able to distribute it along with a readme or it might
- 49:44come as a.pkg file because I actually need like in the case of non-GUI apps you actually like you
- 49:49want to be able to put something on your path and you have to have like a post install script and
- 49:53pkgs how you do that on macOS similarly on Windows it produces an MSI and it drops a Python
- 49:59embedded and all that kind of stuff make sure your dependencies are there on macOS it makes sure that
- 50:04of you install. If I'm building it on ARM machine, the app will still run on x86 because it'll install
- 50:09both versions of both the x86 and the ARM binaries and merge them where they're necessary and do all
- 50:13that kind of stuff. So it's all the little fiddly details. It is essentially just running a bunch
- 50:18of command line, like everything Briefcase does is just a command line tool or rolling out a template.
- 50:25If you turn up the verbosity, it will tell you in the prompt, like this is what I'm running. I'm
- 50:34notary tool and so on and so on.
- 50:36But you don't have to worry about that.
- 50:37Like it's just going to, this is what will encode.
- 50:39It'll do it all for you and just spit out either a DMG, a.zip, an MSI,
- 50:47IPA files on iOS, APK files or AAB files on Android,
- 50:51whatever the native platform is.
- 50:53And then on Linux, one of the things we've added more recently,
- 50:56we can do flat packs, we can do Debian, RPM, PKG zip,
- 51:03PKG files for Arch and Manjuro,
- 51:05like all of the common packaging formats we try to cover.
- 51:08The only one that I can think of that's notable
- 51:10that we don't cover at the moment.
- 51:12We don't do NCS installers on Windows
- 51:15and we don't do Snap packages on Linux.
- 51:19Not because we can't, just because I've only got two arms
- 51:23and there's a limit to how much I can practically do.
- 51:25If someone wants those, I can point you at the code
- 51:28and show you what you're going to do.
- 51:29And it's a moderately...
- 51:31If you know the commands you need to run to make a thing happen, I can show you how to
- 51:35plug that into Briefcase.
- 51:36And like Briefcase's infrastructure is designed to be pluggable.
- 51:39So it doesn't even need to be in Briefcase.
- 51:41You can, again, do it as an external plugin and have it plug into Briefcase.
- 51:45There are two things I want to ask you about here.
- 51:46One,
- 51:47notarization and signing.
- 51:48I remember how
- 51:50long ago I built C++ desktop apps and.NET desktop apps.
- 51:55And you could just compile them and give them to somebody and let them run it.
- 51:59And those sweet days are long gone.
- 52:01You
- 52:01know, it'll get flagged with big warnings.
- 52:03Like this looks like a virus because it didn't go through our digital signature system.
- 52:08Yep.
- 52:09What a frustrating thing.
- 52:10So this has support for that.
- 52:12It does.
- 52:12Yeah.
- 52:14Yeah.
- 52:14It turns out there are bad people on the internet and they're willing
- 52:18to do bad
- 52:18things.
- 52:19Who knew?
- 52:20So yeah, macOS has a bunch of processes for signing all of the binaries in an application
- 52:26and then stamping what's called a notarization certificate to the installer to say,
- 52:30This is a package in a format that hasn't been modified
- 52:34that I am willing to verify as me as a person.
- 52:37This is what the version of the package looks like
- 52:39when it's correctly installed.
- 52:41And then Sorry,
- 52:43probably in practice, if you
- 52:44want to distribute stuff to Mac and Windows, you probably
- 52:47need to create a developer account and sign
- 52:49these things, unless your
- 52:50users are willing to run with the big scary, this looks
- 52:53unsigned and untrusted. We've
- 52:55moved it to the trash, or you
- 52:56can go in there and run it. You know
- 52:57what I mean? Yeah,
- 52:58like on macOS,
- 52:59It like literally has to be at this point.
- 53:01You actually can't get away
- 53:02with not getting a developer certificate
- 53:04because the secure stuff on the M1 ship
- 53:08literally will not run.
- 53:09You can do cheap and nasty ad hoc signing,
- 53:11which means it will run on my machine.
- 53:14But if you want to give it to anybody else,
- 53:16it is now at the point
- 53:17where you've got to go into the settings,
- 53:19explicitly say,
- 53:20I'm willing to trust content
- 53:21that comes from an unknown provider.
- 53:23Start the app by pressing option and double click,
- 53:26selecting the option of I'm willing to accept this.
- 53:29Like it can be done, but it's like nobody is actually ever going to do that.
- 53:33So you basically, yeah,
- 53:34you've got to
- 53:35sign up for a $99 a year developer account
- 53:38and then go through the signing process.
- 53:40And signing
- 53:40is
- 53:41a non-trivial activity.
- 53:42It is difficult.
- 53:43There are like you've got to do things in the right order.
- 53:46And there is like even you have to submit the app in a zip format.
- 53:50But you can't just use PK zip or your standard command line zip.
- 53:54You've got to use Ditto, which is Mac's version of zip,
- 53:57Because otherwise, file system properties can end up being corrupted because the UTF-18 coding won't go quite reversible in the way.
- 54:04Like, it is a nightmare.
- 54:07Briefcase solves all those problems for you.
- 54:09It should be as straightforward as just package this thing and sign and it works.
- 54:15Similarly,
- 54:16it's not quite as bad on Windows.
- 54:18Like, Windows will let you install an unsigned binary.
- 54:21It just comes up with sort of the, this comes from an unknown developer.
- 54:24Are you sure you want to do this?
- 54:26And you say, okay.
- 54:27But realistically, like people's willingness to click the this looks like it might be insecure is low and decreasing.
- 54:35And so, yeah, you've just got to go get a certificate, sign the app, validate that it's you.
- 54:39It's kind of it's the price of doing app business at this point.
- 54:42Yeah, I guess it's sort of the equivalent of you have to have SSL to run a website.
- 54:46However,
- 54:47exactly.
- 54:47It is exactly that.
- 54:48Yes, but we're missing Let's Encrypt.
- 54:50We're missing Let's Encrypt.
- 54:51Yes.
- 54:51That's that part.
- 54:52Yeah.
- 54:52From the Windows point of view, there is absolutely a window of opportunity to do a Let's Encrypt because Windows doesn't specify who you've got to get your certificate from.
- 55:04It just has to be signed by a root certificate that they honor.
- 55:07So, like, essentially the instructions in briefcase kind of go get a certificate.
- 55:10Where do you get it from?
- 55:12You know,
- 55:12here
- 55:13are some options.
- 55:14Go have fun.
- 55:15So there is absolutely an opportunity for someone to do a Let's Encrypt here for app signing.
- 55:19Unfortunately for Apple, that doesn't apply because Apple does insist that the certificate needs to be issued by them, signed by them, so that they can revoke it.
- 55:28And maybe the EU changes around app distribution will relax that somewhat, but at least for the moment, you've got to go through Apple.
- 55:35Yeah.
- 55:35As salty as I am at the EU about the cookie warnings.
- 55:39Yeah.
- 55:40Yeah.
- 55:40But I do have
- 55:41hope that they can bring some reason to some of the other App Store type behaviors.
- 55:45It would certainly be.
- 55:46I would not.
- 55:47I welcome that development.
- 55:49I am waiting to see what happens.
- 55:51I had a lot of hope that the App Store stuff,
- 55:53I had a lot of hope opening the App Store thing
- 55:55would provide a way to make it easier
- 55:58for Beware to distribute apps.
- 56:00But in practice, it doesn't look like
- 56:02that's actually going to happen.
- 56:03So yeah.
- 56:04It's, yeah.
- 56:05Nice try, but they squeeze through another
- 56:08track,
- 56:10basically.
- 56:11It is what it is.
- 56:12It is what it is.
- 56:14The gatekeeper stuff drives me crazy.
- 56:15I've had so much trouble getting my mobile apps
- 56:18in the app store, not for reasons technical,
- 56:20just for reasons of...
- 56:21Yeah, and I guess that's the
- 56:24thing.
- 56:24It's like, I will, to a limited extent,
- 56:28defend the, not so much the gatekeeping aspect of it,
- 56:33but the fact that there is a process involved
- 56:36to protect against completely arbitrary content.
- 56:40That side of it is useful.
- 56:42But the fact that there's, like, it is that locked down
- 56:45and only from Apple is the part
- 56:46where it becomes a little bit onerous
- 56:48and that
- 56:48there's no competition
- 56:49to make Apple work better,
- 56:50I guess is the real thing.
- 56:51Yeah, yeah.
- 56:52You can't go into a
- 56:53competition.
- 56:54Yeah, and
- 56:54the rent
- 56:54is a, yeah.
- 56:55Yeah, yeah, yeah.
- 56:56From my app there.
- 56:57You don't have in-app purchasing.
- 56:59Well, I don't want to sell anything in my app.
- 57:00I just want to let people view the stuff
- 57:02that we already got online.
- 57:03Well, you're going to have to add it.
- 57:04So weeks and weeks of paying developers
- 57:08and stuff to build it
- 57:09just so they can have their few bucks,
- 57:11you know what I mean?
- 57:12And it's just like,
- 57:12you have no idea how
- 57:14much pain this is.
- 57:15Yeah, and like, I guess,
- 57:16I could almost, I don't like it, but I could almost grant them that, you know, the golden rule of
- 57:22has the gold makes the rules, but it's their store. They get to decide what's in there,
- 57:26but I don't have the option of another store.
- 57:28And in
- 57:30particular, the review process is so
- 57:33inscrutable. Like Google is no better in this regard. If something
- 57:37goes wrong
- 57:37with your Google
- 57:38application, good luck with that. For all the money they're taking, they're not providing good
- 57:46customer service. They're providing no as a customer service.
- 57:50Exactly. Yeah. They're both
- 57:51bad. I'm not saying Google's good. They're both bad. Okay. But for a briefcase here, we have,
- 57:57we have the targets that I would expect Linux, Mac, Windows. Yes. But iPad, iPhone, Android,
- 58:03tell us about that. Even watch.
- 58:06So we, yeah, so we don't, we don't actually have it working for
- 58:09watchOS.
- 58:09I have
- 58:10a proof of,
- 58:11yeah, I have a proof of concept that it can work on Apple TV. I have
- 58:14written a Python application for Apple TV.
- 58:17Web deployment, actually, that's that website's out of date.
- 58:19I should need to update that.
- 58:20We do have web deployments.
- 58:21Put that in the proper bullet list, right?
- 58:23Yes.
- 58:24Yes, it should be on the proper bullet list.
- 58:26So, yeah, but submitting to an app store, there are iOS apps,
- 58:31there are Android apps in the Apple and Google app stores
- 58:34that are written with BWare.
- 58:37So you are producing a binary.
- 58:39It is signed and validated and then sent to Apple,
- 58:41and Apple says, yes, that's fine, and Google says, yes, that's fine,
- 58:44and it's available for purchase.
- 58:45So, yeah.
- 58:46Awesome.
- 58:46So what do you get, like an APK for Android?
- 58:49And what is the AP?
- 58:50It's an IPA.
- 58:51Yeah, it's an IPA, but you don't ever
- 58:53see it.
- 58:54Like you basically have to, for all practical purposes,
- 58:56you have to submit it through Xcode.
- 58:58That might be something we can resolve, but I haven't.
- 59:00They don't
- 59:01make it easy to find out
- 59:02how to not
- 59:02use Xcode
- 59:03to do it.
- 59:04No, I think you're probably committed.
- 59:06Even for my Flutter-based app, I've got to go do a build
- 59:09and an app store submission through Xcode.
- 59:12Yeah, yeah.
- 59:12The tools are
- 59:13there, but yeah.
- 59:15But yeah, you get an AAB for Android.
- 59:17You get effectively an IPA, but an Xcode project you can submit for iPhone.
- 59:23For web, you get a tarball that is basically upload to your web provider of choice,
- 59:29and it would work, and it would end up being similar for Apple TV
- 59:34or WatchOS or WearOS eventually.
- 59:36Awesome.
- 59:37Well, that's really great that you've been making so much progress on this,
- 59:40And is it Steven, the other guy you're working with?
- 59:44Malcolm.
- 59:45I'm sorry,
- 59:46Malcolm.
- 59:47You and Malcolm have been making so much progress.
- 59:48That's really, really great.
- 59:50And I think only good things are going to come from having the backing of Anaconda.
- 59:54So we've got just a couple of minutes left.
- 59:55What do you want to tell people about this project, these projects,
- 59:58how they should adopt them, where
- 1:00:00they're ready for use,
- 1:00:01and so on, things like that?
- 1:00:02I guess the quick thing I'd say is that we're not done yet.
- 1:00:05There's still more to come.
- 1:00:07Just a week and change ago, pip.
- 1:00:10sorry, PyPI officially started accepting iOS and Android wheels.
- 1:00:15So you can upload an iOS and Android wheel.
- 1:00:18There aren't any on there yet that I'm aware of,
- 1:00:20but I'm actively working on that.
- 1:00:22So just so I can prove, hey, look, yes, there's one over there.
- 1:00:24Look at it.
- 1:00:25But part of the reason there's not one there yet
- 1:00:27is that the tooling to build iOS and Android wheels is not quite there.
- 1:00:31And that's what I'm actively working on right now.
- 1:00:33I would be deeply surprised if by the end of this year,
- 1:00:36there aren't multiple high profile projects that have.
- 1:00:39I have the patches for Pillow to literally produce iOS wheels as part of their normal release process.
- 1:00:46They haven't even seen the PRs yet, but I'm
- 1:00:49certainly hoping to
- 1:00:50work with them.
- 1:00:51Yeah, I mean, they know it's coming.
- 1:00:52Hugo knows it's coming.
- 1:00:53So there is a lot of work still to do in terms of getting that patch accepted, but at least I know it can be done.
- 1:01:00And more importantly, things like cibuildwheels, like the infrastructure for putting a build all these wheels as part of CI is something where I have the patch and I'm like this close to being able to submit a pull request to cibuildwheel to say, here's the back end to let you generate iOS wheels.
- 1:01:16Similarly, we've got to do all that work for Android as well.
- 1:01:18So there is still a lot of work to come.
- 1:01:20My hope is that sort of by the end of this year, says he, being very hopeful, we'll be in a position where like anything you can do on a desktop platform, you can basically do on iOS and Android as well.
- 1:01:33With the caveat that there might be, if there's C code involved, you might need to actually like work out how to compile this thing for iOS and Android.
- 1:01:41For a lot of simple projects, literally there's nothing you've got to do.
- 1:01:43You've just cranked the handle and make the compiler do its thing.
- 1:01:46Yeah, especially if you have Python.
- 1:01:48Yeah, exactly.
- 1:01:49The other part that I'm sort of playing around with this year
- 1:01:51as a sort of a background project is doing for Enscripten
- 1:01:55what I did last year or I'm up and I did last year for iOS and Android,
- 1:01:59which is get Enscripten up to tier three support.
- 1:02:01So there will be a PEP and official supported platform.
- 1:02:05Like Enscripten will be an officially supported platform in CPython
- 1:02:10in the same way that iOS and Android are.
- 1:02:13I'm mostly shepherding that as sort of a member of the CPython core team
- 1:02:17and Hood Chatham is actually doing most of the heavy lifting on that.
- 1:02:21He's a PyDyde maintainer and is involved with PyScript as well
- 1:02:24to a lesser extent.
- 1:02:27And, yeah, so he is working on the patches for that
- 1:02:29and I'm kind of shepherding those patches into core.
- 1:02:32We are about to stand up and build bot to actually make the kind of the –
- 1:02:35make sure every pull request is validated to make sure it still works
- 1:02:39on Inscripten essentially, which is one of the big sort of milestones
- 1:02:42for official platform support.
- 1:02:43Yeah, that's super neat.
- 1:02:45What about CI?
- 1:02:46for people.
- 1:02:47Yeah, what about CI
- 1:02:48for people who want to build
- 1:02:49wheels for iOS and Android?
- 1:02:52That's essentially
- 1:02:53where CI build rule
- 1:02:53comes in.
- 1:02:54So you can do it right now.
- 1:02:55So every time we
- 1:02:56make
- 1:02:56a change to Toga,
- 1:02:57we run a full test suite
- 1:02:59on iOS, on Android,
- 1:03:01on macOS
- 1:03:02and all the other
- 1:03:03desktop platforms.
- 1:03:04You can use like GitHub Action CI
- 1:03:06will let you start
- 1:03:07an iPhone simulator
- 1:03:08and run the tests
- 1:03:09on that iPhone simulator.
- 1:03:10You can start an Android simulator
- 1:03:12and it will run a simulator
- 1:03:13on those platforms.
- 1:03:14It's like it takes three minutes
- 1:03:15to start the simulator, but that's just the price of doing business for iPhone, basically.
- 1:03:21Yeah, I guess they probably already have CI for iOS and Android because there's probably
- 1:03:25a ton of mobile projects on there.
- 1:03:27It's kind of unusual to complain it with Python, right?
- 1:03:30Yes, absolutely.
- 1:03:31And so you can do it.
- 1:03:33You can run those tests.
- 1:03:35There are probably some things that could be done at an institutional level at GitHub
- 1:03:38to make those tests run faster.
- 1:03:41But that's a, you know, now I've just got to convince Microsoft to implement an entirely new backend for GitHub Actions.
- 1:03:48And they don't support like Windows on ARM yet.
- 1:03:51So I'm not holding their breath thinking I support iOS.
- 1:03:53Yeah, yeah, I hear
- 1:03:54that.
- 1:03:55One final forward-looking question, I suppose.
- 1:03:57What do you see support for MScript in giving us?
- 1:04:01You know, for example, like having the JavaScript stuff, you'd see like, okay, well, great, I can run it in a browser.
- 1:04:06But well, then Node comes along and now I can run servers on it or I can distribute it or there's tool.
- 1:04:11Like there's these sort of ways in which these environments
- 1:04:14grow unexpectedly, at least for most people, I think.
- 1:04:17And how do you think InScript in my...
- 1:04:19So
- 1:04:19my hope is that what we'll end up seeing
- 1:04:23is the analog of React and Vue, but for Python.
- 1:04:29So you can right now, or you have been able to write
- 1:04:31a Django server-side website,
- 1:04:34pick any other GUI, any other web framework you want.
- 1:04:36You can write your server-side code, excuse me,
- 1:04:38you write your server-side code completely in Python.
- 1:04:40It's great.
- 1:04:41but then you've got to push your code to the front end
- 1:04:44and you have to write JavaScript on the front end.
- 1:04:48And so that's kind of essentially where Node came from
- 1:04:49is realizing that we've got to write this code,
- 1:04:51like we've got validation code,
- 1:04:52you've got to run it around the client
- 1:04:53and run it around the server.
- 1:04:54So I can't put Python in the client,
- 1:04:57so I might as well bring JavaScript back to the server.
- 1:04:59And so having that same language everywhere
- 1:05:01is a real advantage.
- 1:05:03InScripten lets us get Python into the browser,
- 1:05:05but the part that we don't have yet
- 1:05:07is the rich Python-first GUI framework in the browser.
- 1:05:13My hope is that with...
- 1:05:15Oh, you lost me there? I'm not sure.
- 1:05:18My hope is that with inscription in the browser,
- 1:05:24what we'll get is the ability to build that toolkit.
- 1:05:30I don't know what it is.
- 1:05:31I don't know what will stimulate its development,
- 1:05:33but it should hopefully make it, or at least makes it possible.
- 1:05:36And once it's possible, then a bunch of people, you know, project people can start playing around with it and actually making things.
- 1:05:46Oh, we lost Russell.
- 1:05:49Well, that's probably a good place to call it, folks.
- 1:05:52Thanks to Russell for being on the show.
- 1:05:54And thank you all for listening.
- 1:05:55Talk to you all later.
- 1:05:56Bye.
- 1:05:58This has been another episode of Talk Python To Me.
- 1:06:01Thank you to our sponsors.
- 1:06:02Be sure to check out what they're offering.
- 1:06:04It really helps support the show.
- 1:06:06This episode is sponsored by Posit and Posit Workbench.
- 1:06:10Posit Workbench allows data scientists to code in Python within their preferred environment
- 1:06:15without any additional strain on IT.
- 1:06:18It gives data scientists access to all the development environments they love,
- 1:06:21including Jupyter Notebooks, JupyterLab, Positron, and VS Code,
- 1:06:25and helps ensure reproducibility and consistency.
- 1:06:28If you work on a data science team where consistency matters,
- 1:06:31check out Posit Workbench.
- 1:06:33Visit talkpython.fm/workbench for details.
- 1:06:36Want to level up your Python?
- 1:06:38We have one of the largest catalogs of Python video courses over at Talk Python.
- 1:06:42Our content ranges from true beginners to deeply advanced topics like memory and async.
- 1:06:47And best of all, there's not a subscription in sight.
- 1:06:49Check it out for yourself at training.talkpython.fm.
- 1:06:53Be sure to subscribe to the show, open your favorite podcast app, and search for Python.
- 1:06:57We should be right at the top.
- 1:06:58You can also find the iTunes feed at /itunes, the Google Play feed at /play, and the direct RSS feed at /rss on talkpython.fm.
- 1:07:08We're live streaming most of our recordings these days.
- 1:07:11If you want to be part of the show and have your comments featured on the air, be sure to subscribe to our YouTube channel at talkpython.fm/youtube.
- 1:07:19This is your host, Michael Kennedy.
- 1:07:21Thanks so much for listening.
- 1:07:22I really appreciate it.
- 1:07:23Now get out there and write some Python code.