Latest / Talk Python To Me / #434: Building Mobile Apps Backed with Python
Transcript
- 0:00Are you building a mobile app and wondering where Python fits in in the mix?
- 0:03Are you supporting others building these apps with back-end APIs written in Python?
- 0:08Can you write your entire app end-to-end in Python?
- 0:11Well, I have a great panel put together to discuss exactly this,
- 0:15and they all have a different and unique take on the options.
- 0:18Welcome to Lauren Augie, Harut Wojcijcijan, Andreas Kuhn, Jeffren, and Joshua.
- 0:25This is Talk Python To Me, episode 434, recorded September 9th, 2023.
- 0:30Welcome to Talk Python To Me, a weekly podcast on Python.
- 0:47This is your host, Michael Kennedy.
- 0:49Follow me on Mastodon, where I'm @mkennedy,
- 0:52and follow the podcast using @talkpython.
- 0:55Both on fosstodon.org.
- 0:57Keep up with the show and listen to over 7 years of past episodes at talkpython.fm.
- 1:02We've started streaming most of our episodes live on YouTube.
- 1:05Subscribe to our YouTube channel over at talkpython.fm/youtube
- 1:09to get notified about upcoming shows and be part of that episode.
- 1:13This episode is sponsored by Sentry.
- 1:16Don't let those errors go unnoticed.
- 1:18Use Sentry.
- 1:18Get started at talkpython.fm/sentry.
- 1:22And it's also brought to you by us over at Talk Python Training.
- 1:26Did you know that we have over 250 hours of Python courses?
- 1:31Yeah, that's right.
- 1:32Check them out at talkpython.fm/courses.
- 1:36Hey, everyone.
- 1:37Andreas, Harut, Lauren, Jeffren, and Joshua.
- 1:40All of you, welcome to the show.
- 1:41It's so exciting to have you here.
- 1:43Thank you so much.
- 1:44I'm really happy to be here.
- 1:45Yeah, great to be here.
- 1:46Same, yeah.
- 1:46It's great to be here.
- 1:47This is going to be a really fun topic.
- 1:49And I think it's one that puts Python into an interesting space.
- 1:54Python's really popular, as everyone listening knows.
- 1:57Its growth has been super, super high since 2012.
- 2:01And yet it really doesn't play a huge part in mobile apps.
- 2:05Although we do have some folks representing Kivi here via their app, which is pretty awesome.
- 2:11So I'm very excited about that.
- 2:12But it's not the first language you might pick for writing mobile apps.
- 2:17If you just say, all I care about is mobile apps.
- 2:19I just want to get started.
- 2:20But I think there's a lot of things that Python plays a part in, right?
- 2:24Back-end services.
- 2:25And I'm really excited to hear about the Kivi experience as well.
- 2:29So there's a ton of Python people out there who either are building or want to build some kind of mobile app.
- 2:34It's obviously one of the most important computing platforms.
- 2:36So I think everyone's going to learn from everyone's experience here.
- 2:40So I think let's just, I guess I'll go around by app.
- 2:45That's the best way I can kind of know to do this.
- 2:48And have you all introduce yourself.
- 2:50And then, actually, let's just have you introduce yourself.
- 2:52Then we'll talk about the app.
- 2:53So Andreas, we'll go around the Brady Bunch circle of pictures we got on the screen here.
- 2:58Andreas, go first.
- 2:59Yeah, my name is Andreas.
- 3:00I live and work in Stockholm, Sweden.
- 3:03And I've been working with Python for about 10 years now.
- 3:07And have been working with, I used to work for an online tailor-made suit company where we developed the platform ourselves.
- 3:16And now I'm working with a membership management company, which is a Django app that we are running in the background.
- 3:23Nice.
- 3:24Very exciting.
- 3:25Looking forward to hearing about it.
- 3:26Harut.
- 3:26Hey, guys.
- 3:27My name is Harut.
- 3:27I have been working in Python for, like, I'd say a decade on and off.
- 3:32My background is in applied and computational math.
- 3:36So I did a lot of MATLAB in college and then found my way kind of over into Python.
- 3:41Did some data analytics, some data science.
- 3:44And then for the past few years, found that building tools for people is actually what I really enjoy.
- 3:47So I do a lot of work with data visualization, a lot of JavaScript.
- 3:51But if there's one thing that's been consistent in the past 10 years, it's been my Python usage overall.
- 3:56Awesome.
- 3:56That's kind of how I started as well, building scientific tools and stuff.
- 3:59Lauren.
- 4:00Hi, everyone.
- 4:00Yeah, my name is Lauren.
- 4:01I've been programming since 2020.
- 4:03Prior to that, it was basically a direct result of COVID.
- 4:06Prior to that, I was a live sound engineer.
- 4:07So setting up for concerts and corporate events, all that.
- 4:09All that went away pretty much overnight in March 2020.
- 4:11So, yeah, I started learning programming, landed on Flutter.
- 4:15That's my main thing.
- 4:16Fast forward a couple of years, I had to finish up a contract with a company called T-Vision Insights.
- 4:20Likely for me, most of their services are written in Python.
- 4:22One of the lead engineers there is a fan of both your podcasts, Michael, and gave me a tip that you're looking for a Flutter developer, which brings me here.
- 4:30So I was involved in building the Python mobile app.
- 4:32Yeah, now I'm on the Flutter team for an insurance company.
- 4:35I did not write any Python until I had finished the mobile app.
- 4:38But I had sat through a lot of those courses throughout the development process.
- 4:41Kind of landed on FastAPI for my backend services.
- 4:44Really like it.
- 4:45Was really impressed with how easy it was to get started and all that.
- 4:47So, yeah, that's where I'm at.
- 4:48Yeah, awesome.
- 4:49I'm really looking forward to talking to you.
- 4:51Sort of the interplay of how we work together to build that mobile app.
- 4:54And it's just so well received.
- 4:55It's such a solid app.
- 4:56The only people who don't seem to receive it well is the App Store people.
- 4:59We'll save that for later.
- 5:02If anyone wants to see me cry, there's a good chance at the end of this episode, I will just be in tears.
- 5:08But we'll save that for later.
- 5:09But I do want to ask.
- 5:10I mean, I think that's a really interesting background.
- 5:12And people, a lot of people listen to this show and they feel like they hear from guests who are like, yeah, I got my computer science degree.
- 5:19I was like an accelerated student, so I got it when I was 16.
- 5:22And then, you know, like they're like, well, I admire this person and they're doing awesome stuff.
- 5:26But I didn't get my computer science degree at 16.
- 5:29Like I was still in high school and I didn't start programming until I was 30 or, you know.
- 5:33And is there still a place for me?
- 5:35And I think you've super excelled at that.
- 5:38And honestly, with Flutter and Dart, which is not one of the simpler, beginner, more beginner friendly language.
- 5:43Like it's a pretty seriously structured language.
- 5:47So maybe just, you know, give people your thoughts of your three-year journey, I guess, at this point.
- 5:52First of all, thank you for saying that.
- 5:53And yeah, I listened to your podcast.
- 5:54You have some very impressive people on your show.
- 5:56My first line of code till 36, right?
- 5:59Yeah.
- 5:59It was weird, a weird time, 2020, obviously.
- 6:02But to be fair, I did have a lot of time on my hands, like many of us did, you know, very abruptly.
- 6:06So I kind of went all in, you know, that's just, I got hooked fast and I had a lot of fun.
- 6:13You know, it's kind of thing.
- 6:14Not everybody gravitates towards programming.
- 6:15They try it.
- 6:16They don't like it.
- 6:16It's not for everybody, to be fair.
- 6:18But all it is, is consistency and putting in the time.
- 6:20If you don't have a degree, it's fine.
- 6:22I even chose, Flutter is not like, if you're looking for a job, there are better technologies
- 6:26to choose if you're just trying to, you know, land a job, right?
- 6:30Python, obviously way more ubiquitous in terms of finding a job.
- 6:33Even on the front end, learning something like React, way more jobs.
- 6:36But all that to say, it's still possible.
- 6:38I didn't go to college for audio or programming.
- 6:41But again, putting the time, consistency, the job hunting process was not particularly fun.
- 6:46It was pretty grueling.
- 6:46But sooner or later, you just keep at it and you can get there.
- 6:49So it's never too late to get started.
- 6:51Yeah.
- 6:51Awesome.
- 6:52Yeah.
- 6:52I know you're doing good stuff these days.
- 6:54That's great.
- 6:54Thanks.
- 6:54Jeffrey and Joshua.
- 6:55Oh, first of all, my name is Joshua.
- 6:57His name is Jeffrey.
- 6:58And Jeffrey Julian.
- 7:00He is not, we are from Colombia and he is an Spanish speaker.
- 7:04So he doesn't know to speak English.
- 7:07So I'm here to help.
- 7:08Sure, sure.
- 7:09Yes.
- 7:09Oh, wonderful.
- 7:10Well, welcome to both of you.
- 7:11Okay.
- 7:12Thank you.
- 7:12Tell us a bit about yourselves.
- 7:13Okay.
- 7:14Julián, who is the main programmer or designer of his hub.
- 7:19And started like 15 years ago when he was playing some video games and he wanted to know how did they work.
- 7:28So he started to look for it and started programming.
- 7:33You know, like and so stalked people.
- 7:35And that's it.
- 7:36He started a career, a university career.
- 7:39And he's a very talented designer.
- 7:42And as I know, as a friend.
- 7:44So he is very close friend of mine.
- 7:47And I can say you, I can say, I can tell you that.
- 7:50I think maybe the right place to start our conversation now everybody knows all of you is just a quick introduction to your apps.
- 7:58And then we'll dive into maybe the first thing is everyone here has chosen a different framework, a different language.
- 8:05I think that is in and of itself is pretty interesting that we're all here as fans of Python or some kind of Python roots or interest.
- 8:12And yet that is not, you know, it's not necessarily what we chose to write the apps in.
- 8:18So I think that's going to be a real interesting conversation.
- 8:20But let's jump over and maybe start with this one.
- 8:24So PinPlanet, I forgot which app goes with which person or group.
- 8:28So we'll have to just jump in.
- 8:30Who's PinPlanet?
- 8:31I'm the creator of PinPlanet.
- 8:32The idea started from, actually started from my girlfriend in December 2020 or October 2021.
- 8:39I'm sorry.
- 8:39She's a big traveler.
- 8:40She's always wanted a way to kind of curate all of her travels, kind of keep them in one place.
- 8:44And the thing that she told me at the time that really sold me was, I want to be able to show all my friends, like my place I've traveled to with pins on a 3D globe that spins, which is actually the second screenshot on the screen for, I guess, for people who are watching the live stream.
- 8:59And then from there, I was sold.
- 9:01So I started building this.
- 9:03I will say that the original version of this was actually a web app, a progressive web app.
- 9:07And I was a huge proponent of it at the time.
- 9:10But for anybody who's used PWAs, they know the experience on both Apple and Google.
- 9:14Somehow, both of them are just not that great.
- 9:17It just cannot seem to win.
- 9:19And we've trained users for, what, like a decade to look for apps in the app store.
- 9:24So that's also kind of a pain.
- 9:26Yeah, and you can't really list your progressive web app in the app store, right?
- 9:29I think actually progressive web apps might be passable because there's a lot of bad frameworks out there that they would compete with.
- 9:34But the discoverability is the killer, right?
- 9:37It's quite tough.
- 9:38So I ended up building this app about three or four months into it.
- 9:42I brought my friend Andrew as well.
- 9:44I'm actually sitting in his office right now.
- 9:45He does quite a lot of Python as well.
- 9:47More Python than I do.
- 9:48He's the person that I kind of look up to when it comes to writing.
- 9:51I can't forget.
- 9:53I forgot the word for it now.
- 9:54Not Pythonista, but it'll come to me.
- 9:57Oh, writing more Pythonic.
- 9:58Yes.
- 10:00And then from there, I think somewhere around the summer, I decided, okay, you know what?
- 10:04The app is gaining a lot of traction, but people want a native experience.
- 10:08So I kind of took the plunge, learned Swift and SwiftUI, which is a really awesome framework released by Apple.
- 10:14And then we released the native version, which focuses on like, you can pin all your places.
- 10:18You can add your spots, your reviews, your photos.
- 10:21You can add travel buddies.
- 10:22You guys can collaborate on trips together.
- 10:24There's a really cool explore page where you can see kind of the best pins that other people have put up.
- 10:29And we're just, you know, adding more features over time.
- 10:31It's getting traction.
- 10:32It's a lot of fun.
- 10:33It's really exciting.
- 10:34Awesome.
- 10:34Congratulations.
- 10:35Thank you.
- 10:36I see that it's, well, first of all, it has five star review out of a bunch of ratings, which is pretty ridiculous.
- 10:42That's awesome.
- 10:43Also that it's free though.
- 10:44Is it just free, free?
- 10:45Is there in-app purchases or what's the story?
- 10:48It's completely free.
- 10:49Just looking for growth and traction and you'll figure it out.
- 10:51Yeah.
- 10:51Oh, actually, since you're on the screenshots, Michael, I do want to say thank you for the tip, the screenshots pro website or web app.
- 10:58Oh yeah.
- 10:58That helped out quite a bit.
- 10:59Yeah.
- 10:59Yeah.
- 11:00Really appreciate it.
- 11:01Well, it's a pay it forward because Lauren suggested that to me from his app.
- 11:06So it goes.
- 11:08And on, on it goes.
- 11:09Yeah.
- 11:09It says we use screenshot, I believe it was screenshots pro.
- 11:14Let me, screenshots.pro is the app that I use.
- 11:17Yeah.
- 11:18And you can come up with really fantastic looking screenshots.
- 11:20I'm super happy with how that came out.
- 11:22All right.
- 11:22My club.
- 11:23That's mine.
- 11:23Yeah.
- 11:24And my club is, like I said previously, is a membership management program.
- 11:29We've previously been working with progressive web apps as well, but we had a Ruby on Rails developer who did those.
- 11:36And we are a Django backend in where most of the information was.
- 11:40So we had a lot of different servers connecting to our backend and doing all of these strange things instead of just having one.
- 11:48And exactly like Karut talked about, you need to have your app on the app store because there's a lot of people asking where is your app, even though we did have like progressive web apps and you were able to see everything.
- 11:58But what we have now is we've developed so that all of our users can handle the members with their invoices, their memberships in various groups and so on to handle if they're going to certain trainings or going to certain meetups and just answer to that in the app.
- 12:19And we also have like push notifications and all of that as well.
- 12:23Yeah.
- 12:23I think one of the main reasons people might want to create an app as a business is for the notifications because that's an interesting way to reach out for sure.
- 12:31It really has helped a lot as well.
- 12:33I mean, just being on the app store, regardless if you're on Android or on iOS, just being there actually means that things start to happen with the usage and so on.
- 12:44We have about, I think in total about 8,000 installs on these apps, which from going from nothing about half a year ago is rather good for us.
- 12:54We're a rather small company.
- 12:56So it's.
- 12:57Yeah, that's really good.
- 12:57I'm sorry.
- 12:58Everything's in Swedish.
- 12:59We are a Swedish company and we don't have anything translated into English yet.
- 13:04The screenshots are awesome.
- 13:05And I think it's, it makes perfect sense, right?
- 13:08Like not everything needs to be in English, even though it does seem like it some of the times, I suppose.
- 13:13All right.
- 13:14V3D.
- 13:15Let's talk about that, guys.
- 13:17Jeffrey is going to talk in Spanish and I'm going to translate.
- 13:20Yeah.
- 13:21Thanks.
- 13:22V3D es una aplicación que inició el desarrollo en el año 2020.
- 13:27V3D es an app that he started designing in the pandemic in 2020.
- 13:36Inicialmente era para mostrar gráficos 3D, ya que como hobby soy modelador 3D en el software de Blender.
- 13:45It was initially just to show graphics on 3D because he is a developer for this.
- 13:53Poco a poco vinieron más ideas y quise seguir la programación llevándolas al punto en el que está hoy, donde soporta texturizado, creación de materiales.
- 14:07También soporta mando de control Xbox y tiene un módulo de realidad virtual.
- 14:12Step by step, I came up with some ideas to implement to the app, like featuring and modeling.
- 14:21We can use an Xbox controller.
- 14:24Yes, it has a lot of featureings.
- 14:27That's pretty cool to use the Xbox controller with the mobile devices.
- 14:30Yeah.
- 14:30Actualmente estoy trabajando en una actualización que involucra texturizado con imágenes de movimiento.
- 14:37Sigo trabajando en ella y próximamente será lanzada.
- 14:41Hey, I'm currently working on animated textures, features.
- 14:46Yes, and I'm working on it and very soon it's going to be ready.
- 14:50Yeah, this looks like an amazing app.
- 14:51And this is built in Kivi, yeah?
- 14:53I see.
- 14:53Awesome.
- 14:54This portion of Talk Python To Me is brought to you by Sentry.
- 14:59Is your Python application fast?
- 15:02Or does it sometimes suffer from slowdowns and unexpected latency?
- 15:06Does this usually only happen in production?
- 15:09It's really tough to track down the problems at that point, isn't it?
- 15:12If you've looked at APM, Application Performance Monitoring products before,
- 15:16they may have felt out of place for software teams.
- 15:19Many of them are more focused on legacy problems made for ops and infrastructure teams to keep their infrastructure and services up and running.
- 15:27Sentry has just launched their new APM service.
- 15:31And Sentry's approach to application monitoring is focused on being actionable, affordable, and actually built for developers.
- 15:38Whether it's a slow-running query or latent payment endpoint that's at risk of timing out and causing sales to tank,
- 15:44Sentry removes the complexity and does the analysis for you,
- 15:47surfacing the most critical performance issues so you can address them immediately.
- 15:52Sentry has just been a little bit of a slowdown.
- 15:55Sentry has just been a slowdown.
- 15:56Sentry has just been a slowdown.
- 15:57Sentry has just been a slowdown.
- 15:58Sentry has just been a slowdown.
- 15:59Sentry has just been a slowdown.
- 16:00Sentry has just been a slowdown.
- 16:01Sentry has just been a slowdown.
- 16:02Sentry has just been a slowdown.
- 16:03Sentry has just been a slowdown.
- 16:04Sentry has just been a slowdown.
- 16:05Sentry has just been a slowdown.
- 16:05Sentry has just been a slowdown.
- 16:06Sentry has just been a slowdown.
- 16:07Sentry has just been a slowdown.
- 16:07Sentry has just been a slowdown.
- 16:08Sentry has just been a slowdown.
- 16:09Sentry has just been a slowdown.
- 16:10Sentry has just been a slowdown.
- 16:11Sentry has just been a slowdown.
- 16:13Sentry has just been a slowdown.
- 16:14Sentry has just been a slowdown.
- 16:16Sentry has just been a slowdown.
- 16:17Sentry has just been a slowdown.
- 16:19Sentry has just been a slowdown.
- 16:20Sentry has just been a slowdown.
- 16:21Sentry has just been a slowdown.
- 16:22Sentry has just been a slowdown.
- 16:23Sentry has just been a slowdown.
- 16:24Sentry has just been a slowdown.
- 16:25Sentry has just been a slowdown.
- 16:26Sentry has just been a slowdown.
- 16:27Sentry has just been a slowdown.
- 16:28Sentry has just been a slowdown.
- 16:29Sentry has just been a slowdown.
- 16:30Sentry has just been a slowdown.
- 16:31Sentry has just been a slowdown.
- 16:32Sentry has just been a slowdown.
- 16:33Sentry has just been a slowdown.
- 16:34Sentry has just been a slowdown.
- 16:36Now, Lauren, I was going to pull up--
- 16:38I know we'll pull up the Talk Python app
- 16:40that we built together, the mobile app that you built
- 16:42and the backend stuff that I built.
- 16:44You also have an app that you recently built
- 16:46just straight in Flutter.
- 16:47Let's maybe just pull that up real quick as well.
- 16:49I have it installed and I like it,
- 16:51but I don't remember exactly what to search for.
- 16:53LAURENCE MORONEY: Oh, thanks.
- 16:54Yeah, it's called Epic Skies.
- 16:55It's just a weather app.
- 16:55LAURENCE MORONEY: Epic Skies.
- 16:56That's right.
- 16:56LAURENCE MORONEY: Yeah.
- 16:57LAURENCE MORONEY: That's a beautiful app as well.
- 16:58So you've got a couple apps out in the App Store now, right?
- 17:01LAURENCE MORONEY: Well, yeah, this and as far as apps that I built myself,
- 17:03yeah, this one, which was released maybe a month ago,
- 17:05and your app, Talk Python app.
- 17:07LAURENCE MORONEY: So this one is straight Flutter,
- 17:09not too many backends, right?
- 17:11Probably consumes some public weather API data somewhere.
- 17:15LAURENCE MORONEY: Yeah, but that being said,
- 17:16having taken your async Mongo Python course, FastAPI,
- 17:20as I go to implement push notifications,
- 17:22the backend logic will be in Python
- 17:24and determining who gets what local weather alerts.
- 17:27All that will be-- the app is already deployed.
- 17:29I just don't have the features.
- 17:31I don't have all that functionality built yet.
- 17:32But yeah, backend for this,
- 17:34handling the notifications will be Python.
- 17:35LAURENCE MORONEY: That's really cool.
- 17:36LAURENCE MORONEY: Yeah.
- 17:37LAURENCE MORONEY: Yeah.
- 17:37LAURENCE MORONEY: You had a couple of releases this year so far.
- 17:40And so then also, I'll let you talk about it,
- 17:42since you built most of the front end stuff,
- 17:44the Talk Python app.
- 17:45LAURENCE MORONEY: Sure, yeah.
- 17:46I imagine most of the listeners are also students.
- 17:48So maybe a lot of people listening have used it.
- 17:50But basically, it's a mobile app that allows students
- 17:53of Talk Python training to consume their video courses,
- 17:56right?
- 17:56And similar to Udemy, something like that.
- 17:58LAURENCE MORONEY: Yeah.
- 17:59LAURENCE MORONEY: It talks to your very fast backend written
- 18:01in Python, pulls in the user info, what courses they have access to.
- 18:05We track what lectures the users have watched,
- 18:09so that it's in sync.
- 18:10If they go to the web app, all that stays nicely in sync.
- 18:14Yeah, written completely in Flutter.
- 18:15There were no--
- 18:17it relies very heavily on video player, obviously.
- 18:20But all these libraries that we rely very heavily on are just
- 18:24as Dart libraries.
- 18:26So I didn't have to write not a single line of native code
- 18:28as far as that goes.
- 18:29Even when Apple made us do in-app purchases or, for example,
- 18:33showing the progress in the notification bar,
- 18:35there's libraries for all of that.
- 18:37I'm grateful you chose Flutter as this,
- 18:39because I got to be involved.
- 18:40But I also think it was an excellent choice that you could have made.
- 18:43LAURENCE MORONEY: I think it was an excellent choice as well.
- 18:45And let's go and talk about that, because I can see some good questions
- 18:48out in the audience.
- 18:49And I know this-- and I also open the show like this, right?
- 18:52Like, there are many ways in which you can build these apps.
- 18:56And Lauren was just touching on it.
- 18:58How close do you need to be to native and use the exact API
- 19:02delivered by Apple or Google?
- 19:05Or how much do you care about cross-platform?
- 19:07Because on this one, for example, you can get it on Google Play,
- 19:10you can get it on the App Store.
- 19:12The only real change is there's different rules.
- 19:14So for example, you can't talk about prices,
- 19:17or you've got to do in-app purchases on Apple.
- 19:20Or there's little variations that they force from their policies onto you.
- 19:24But otherwise, it's just the same code.
- 19:26Same code for iPad and tablet as it is for mobile.
- 19:29As opposed to Haru, who has the Swift project,
- 19:32which is awesome, but you're really tied to Apple.
- 19:34But you also get to take advantage of the closest changes.
- 19:39The build-publish stuff doesn't keep running into weird issues
- 19:42when there's some mismatch.
- 19:44I mean, you want to strike beer into your heart.
- 19:46Just mention new release of Xcode and then...
- 19:48That literally just happened this week.
- 19:51I was building something on Xcode 15 Beta 8
- 19:54and it was a huge pain to install.
- 19:57Didn't build for no reason.
- 19:59It's completely unclear.
- 20:00No documentation whatsoever.
- 20:01It's not great.
- 20:02So let's talk about choosing the framework.
- 20:05And I'll just go through the...
- 20:06I got a bunch of tabs pulled up so we can talk about them.
- 20:08Andreas, you chose Ionic.
- 20:11Tell people what Ionic is and then why you chose it.
- 20:13Ionic is a way to create applications that can be delivered both to you,
- 20:18to like normal website, to Android and to iOS.
- 20:23So we get all of the functionality and only need to write the code once.
- 20:28What it really is, in our case, we chose to write everything in Angular.
- 20:31Angular.
- 20:31It's a web view running on the mobile phones.
- 20:35So you actually get just a simple server running on the mobile phone and also on iPads, of course.
- 20:42We also get connectors to the phone for doing things like push notifications.
- 20:47So you can connect to the photo and photo library and also to the web camera and so on.
- 20:55So you can get all of that functionality into your app as well.
- 20:58The only difference being is that you only have to implement it once and it works on all of these three platforms.
- 21:03You can even get web functionality or sorry, camera functionality on the web application as well.
- 21:09That is running in an Angular in a normal Angular platform.
- 21:12So, yeah, that's and the reason we chose Ionic was that we are a very small team.
- 21:17We're only three developers.
- 21:18I and one of the me and the other one of the other developers had some experience of Angular.
- 21:25I've released other applications in Angular and we decided that that would be the way to go.
- 21:31So, yeah, that's really why we chose Ionic.
- 21:34And what it does have it has like style sheets for each type of application.
- 21:39So you have one style sheet for the web.
- 21:40You have one style sheet for iOS and your one style sheet for Android.
- 21:45So each button gets styled.
- 21:47So it looks like an Android button or an iOS button and so on in the system as well.
- 21:52Are you all using the Ionic framework for your web app as well?
- 21:55Yes.
- 21:56OK, now that's interesting.
- 21:57That's that's a different level of integration there that are a reuse.
- 22:01That's pretty interesting.
- 22:02The thing is for us just this specific application, because what we did have previously, we had a progressive web app
- 22:08that was written on Ruby on Rails and the Ruby on Rails developer decided to go elsewhere, which meant that me and another Python guy, Ruby on Rails application that we had to take care of.
- 22:19I have read some Ruby on Rails.
- 22:20I've also written some Ruby on Rails previously, but it's like that 15 years ago, I think.
- 22:26So that's not something that we wanted to keep up with.
- 22:28And what we do need to do, we need the deep linking, which means that if you get an URL in an email, because we send out notifications for invoices.
- 22:36For example, you get an URL in your email, you click on that, you either go to the web application if you don't have the app installed on your mobile phone, but you can get into the application directly if you have it installed on your phone.
- 22:48So that type of integration is very important for us as well.
- 22:51It's worth pointing out.
- 22:52Ionic is cross platform, not just web to mobile as I'm learning, but also so you can publish in the Google Play Store.
- 23:00You can publish in the Apple App Store.
- 23:02We publish it in all app stores and then we have also, we also have it on the web on its own URL as well with certain, it needs certain documents in the web application to actually make sure that deep linking works in the mobile space as well so that we can get to the right mobile phone application and so on as well.
- 23:23Did you look at other frameworks?
- 23:25Were you thinking of maybe going through native and writing in Swift or other things?
- 23:31The main thing is like, like I said, we're a small team and we needed to do something that was rather simple, that things that we knew something about.
- 23:38The other main developer, he is Python, Django developer.
- 23:42I worked with him also on that online tailored suit company that we had previously.
- 23:47And we've been working with Django for a very long time and just changing to like writing something in Swift or writing then needing to also do it in Java for a an Android application would be too much hassle for us.
- 24:00And therefore we chose, we chose something that we sort of thought that we would be more or less comfortable with.
- 24:06With it's still just HTML, that's CSS and it's some TypeScript, which is like a better version of JavaScript.
- 24:11What is your framework?
- 24:12I mean, you kind of mentioned this a little bit.
- 24:14Why, why did you choose this?
- 24:15And like, you know, did you look at others?
- 24:17And yeah, I think this is actually the biggest choice people have to make when they're building an app.
- 24:21It's like, what do I even, which direction do I even go?
- 24:24Even if I'm sure I'm doing Python in the back end, then still that doesn't solve this problem necessarily.
- 24:29Maybe the story will make a little bit more sense.
- 24:31I mentioned earlier that the initial version was a PWA.
- 24:34That's mostly because my background is web development.
- 24:37I write a lot of view as well.
- 24:39However, the PWA was difficult for discoverability.
- 24:43And then I had to make the really tough choice of, okay, what's kind of the next thing to do?
- 24:47I really did look kind of all around the landscape.
- 24:50But the one thing that always kind of scared me was that if, or I guess the thing that really pushed me into going native was like, if I wanted really native functionality, which, you know, having like been building apps for quite a few years now, sometimes the things that you want to do or the things that people ask for veers off into like the, all right, this is actually pretty custom.
- 25:11There's no library for this.
- 25:12Like we gotta, we gotta just like roll up our sleeves and do it.
- 25:15And I knew that if I had gone cross platform that all my experience, let's say for example, would have been in Flutter or React Native, which are like the two really, really popular options.
- 25:23And if I now needed to write something custom, the one year of Swift experience that I have now, I wouldn't have had.
- 25:28So it's like, not only am I using a really difficult and probably not well-documented API, it's like on top of that, I also don't even understand the language.
- 25:35So I think for me, that was kind of the big, the big thing.
- 25:38And one of the reasons was I always thought maybe like, we haven't done this yet, but maybe we could like amp up the camera or do something with video players,
- 25:44or maybe like be a little bit more custom with, with the way that we pull, pull our images in and take more advantage of caching and stuff.
- 25:50So that was where, kind of, that was, that was the reason why I ended up, ended up going with Swift.
- 25:55I think it was, it was a pretty cool choice.
- 25:57Yeah. And it sounds like SwiftUI makes it a little bit easier than, you know, a bunch of storyboards and all that.
- 26:01Let me say a little bit about, about SwiftUI.
- 26:03It has been quite helpful.
- 26:05I don't know if it's because I've come from the web.
- 26:07I've heard online that the people at Apple or the people who developed SwiftUI were influenced by React.
- 26:13I could, I could see that a little bit having, having used a little bit of React, but it is, it is quite a bit more.
- 26:18It is a lot more expressive.
- 26:20It's a lot easier to write.
- 26:21But let me also say that, you're not going to get away with only writing SwiftUI.
- 26:26Like you could do maybe 80 to 90%, but there's that additional 10% you have to dip down UI kit and, and kind of put some extra stuff together.
- 26:33It's still a little rough around the edges.
- 26:34That's kind of the case.
- 26:35I'm always thinking of new apps and new ideas and that I have no time to work on them.
- 26:39But the one that I have no time to work on right now that I'm thinking of is something to do with the Apple watch.
- 26:43And, there's no flutter for Apple watch right now.
- 26:47So I'm like, well, maybe I'm going to have to learn Swift after all.
- 26:51We'll see.
- 26:52We'll see if I, first I got to find time and then we'll come to that.
- 26:55We'll solve that problem later.
- 26:56Awesome.
- 26:57All right.
- 26:58Jeffren, Kivy, why'd you choose Kivy?
- 27:00My framework favorito, in this case, is Kivy.
- 27:04Kivy, I know it in 2011.
- 27:06Okay.
- 27:07My favorite framework is Kivy.
- 27:10I knew it in 2011 and I use it because it's very stable.
- 27:16It's steady.
- 27:17And because it's a, it has a very active community and it allows, and develop applications for many platforms.
- 27:27And with one, just one code.
- 27:30So that's why he chose Kivy.
- 27:33Sorry.
- 27:34It seems like Kivy is a good fit for the type of application that Jeffren built.
- 27:40So it was a good match.
- 27:41Yes.
- 27:42It fits completely with what I've been looking for.
- 27:43It fits completely with what I've been looking for.
- 27:44In fact, for me it's gratifying to confuse it with a game.
- 27:49Because I've always wanted to have that level of realism that they offer in video games, like Unity 3D.
- 27:57Okay.
- 27:58It's grateful for me that Kivy really much with I look for because it's, I found it nice that people confuse it like a game.
- 28:11Because games are realistic in some ways to control what do you want, what do you, how do you want to, and custom your car, for example.
- 28:22And this application gives you lots of features to implement to what you want.
- 28:29Okay.
- 28:30Lauren.
- 28:31I don't remember if I mentioned it.
- 28:32I actually started briefly with Kotlin and native Android programming in 2020.
- 28:37But once I tried Flutter, I just found the developer experience to be exponentially better.
- 28:42Right.
- 28:43And with the added benefit of being cross-platform.
- 28:45So Kotlin as a language, I think is great.
- 28:47It's not, that's not the issue, but just the overall process of building an app and native Android versus Flutter.
- 28:51I imagine I would probably like Swift better if I tried that.
- 28:55I haven't really had a need to dive too deep into it so far.
- 28:58But I think Haru made some interesting points in terms of if you need something really custom.
- 29:02Yeah.
- 29:03Had he chose a cross-platform framework, he then would have had to learn Swift and then do all that.
- 29:07But I do want to make the point that you do still have access to any native APIs that you need.
- 29:13Right.
- 29:14Even if there's not a library for it.
- 29:15In Flutter, it's something called a method channel.
- 29:17And then you can just, it's just a message you send back to the native platform.
- 29:20Whatever you got to do on the native side, you can do.
- 29:22That being said, in terms of what really struck me in Flutter was building UI was so much nicer than doing it in Android.
- 29:28With the hot reload, you know, you make a change, hit save, immediately updates.
- 29:32The widget.
- 29:33So in Flutter, all your UI components are called widgets.
- 29:36If you ever look at some Flutter UI code, I didn't really like it at first.
- 29:40Like it looks a little bit weird if you're not used to it.
- 29:42But as soon as you wrap your head around the widget tree and how it all works and get used to using snippets in your preferred IDE, you just say wrap this widget in another widget.
- 29:51That saves a bunch of time.
- 29:52It's really not fun if you're doing that stuff manually without snippets.
- 29:55But all that being said, I was just so much more productive building UIs.
- 29:59And again, having the added benefit of being cross platform.
- 30:03So for me, that's, I mean, it's unlikely I'll ever have a need to go native or choose a different framework for that matter because Flutter suits all my needs.
- 30:13So there's some code.
- 30:14If somebody has never seen that, that might look a little bit weird, right?
- 30:17It looks normal to me.
- 30:18What's interesting about it is like, it's really, you build these like hierarchies of code, but they exactly match the UI hierarchy.
- 30:25Like this panel contains these three things and they're kind of indented in code.
- 30:29But boy, do you need a smart plugin in your IDE or your editor to like manage the backend of those curly closing things.
- 30:39Yeah, it was especially starting out, you're missing one, one parentheses or one curly bracket and your page is full of red squiggly lines.
- 30:46And if you don't know how to sort that out, it's not, once you get used to it, it's fine.
- 30:50But especially in the early days, sorting out those closing brackets are pretty annoying.
- 30:54But yeah, all that being said, I found myself way more productive with Flutter.
- 30:57Really easy to build nice UIs.
- 30:59The performance is always getting better.
- 31:01Animations, all that stuff is really nice.
- 31:03And you still have access to the full native APIs if you need to use it.
- 31:07Talk Python To Me is partially supported by our training courses.
- 31:11Python's async and parallel programming support is highly underrated.
- 31:17Have you shied away from the amazing new async and await keywords because you've heard it's way too complicated or that it's just not worth the effort?
- 31:24For the right workloads, a hundred times speed up is totally possible with minor changes to your code.
- 31:30But you do need to understand the internals.
- 31:32And that's why our course, async techniques and examples in Python, show you how to write async code successfully as well as how it works.
- 31:40Get started with async and await today with our course at talkpython.fm/async.
- 31:48One of my concerns with all of these frameworks, these non-Cotlin, non-Swift frameworks is like, well, how supported are they?
- 31:56Like, am I excited about something that 10 people are using?
- 31:59You know what I mean?
- 32:00But it's so I can pull up Ionic and Ionic's got 50,000 stars.
- 32:06And then, you know, one of the other ones I definitely considered and chose is Flutter and it's got 157,000 stars.
- 32:14By way of comparison, Flask has around, I think 50,000, 60,000.
- 32:18CPython itself has 50,000, right?
- 32:20So like, oh, okay.
- 32:22Well, that seems like a good enough number that people are using it.
- 32:25These are all really interesting choices.
- 32:27And I think just making this choice, it's where you got to start, but it's a challenge.
- 32:31You got to think about what you're building and whatnot, right?
- 32:33I'd like to also add to that.
- 32:35I mean, one of the main things that, like you said, one of the things that we had a bit of a worry about was,
- 32:40will like, for example, iOS, the app store, will they accept something that's coming from Ionic framework?
- 32:47Because you are literally just running a web application in a web view in your app is really a small component.
- 32:55And we even had in the previous versions, we had the ability to update the underlying HTML code and the application code from a server that is on the internet.
- 33:06So it was really a really strange thing.
- 33:08But Apple has never had any issues with our application.
- 33:12Yeah, it's fantastic.
- 33:13Congratulations also.
- 33:14No, I don't think it's the Ionic framework.
- 33:17I think there's always a weird issue.
- 33:20There's just a weird review processes there.
- 33:22But I think Ionic seems to be pretty solid and that people have apps out in the app store.
- 33:28Flutter, absolutely.
- 33:29Absolutely. Like you can see a bunch of things like the BMW app and stuff.
- 33:33Kivi also.
- 33:34I think that's really good.
- 33:35I think what there's, I think one of the rules of thumbs that people should really have is you're going to use a framework.
- 33:42Just look to see that there are apps in the app store based on that framework, right?
- 33:47Not proof of concept, not theoretical things, but like here are apps in the app store based on this, this app.
- 33:54And not necessarily because it's only a good thing if the app is in the app store, but there's all these little edges, right?
- 34:02Like I said, in-app purchasing, for example, right?
- 34:04That's something you could, you could build a cool mobile framework and never add that because you haven't gotten around to it.
- 34:09But if, even if you don't want it, if the people at the app store require you to have it, your app doesn't go in the app store until you put it in, regardless of whether you even want to.
- 34:18Right. Which is Lauren and I spent, how long did we spend like a week and a half full time adding in-app purchasing and we didn't even want it.
- 34:25Yeah. Right. And they're like, Nope, Nope.
- 34:27You have to have it and rejected, rejected, rejected.
- 34:29You know, here's the way you can, what is it?
- 34:32You can like protest this rejection to a higher authority protest it, rejected.
- 34:37You know, it's like, it wasn't good. It wasn't good. So you got to think about those kinds of things. Like when you choose a framework, right?
- 34:44And good job on that in the end, Lauren, we're not done as, as, we'll see, but yeah, nonetheless, we're, we're pretty much there.
- 34:51Again, I had a blast working on this. It's really, really nice working with you directly.
- 34:55I'm really grateful to have been a part of that.
- 34:57There is a question in the audience. I kind of want to get, I guess this is for you, Lauren. This is Alan asks looking into Flutter. I want to know the best way to integrate with AWS.
- 35:06For example, is Cognito an option for a signup flow? So I don't know what Cognito is. I guess it's an authentication platform from AWS. I'm guessing.
- 35:15But yeah, I mean, just maybe talk about that real quick. If, if you've got any experience.
- 35:19I don't personally have a lot of AWS experience and I know they have like a million separate services.
- 35:24So I do know that there is an AWS library for Flutter. Again, I don't know what exactly that entails in terms of which one of their services it provides a Dart wrapper for.
- 35:34But either way, it's certainly possible to integrate with any, any other services.
- 35:38Even if you have to, you know, do it from scratch, it's obviously possible. It's all just APIs at the end of the day.
- 35:43So I would say that like every one of these frameworks we just talked about, to my knowledge, has something like pip and PyPI, right?
- 35:50We're all used to pip install our projects. Like that's just the lifeblood of how Python works.
- 35:55But for example, Flutter has pub.dev and you can, you know, pub get stuff and it's an equivalent type thing, right?
- 36:03Compared to like React Native, which is a little bit older, you know, you, you see a lot about how they're, they have a more robust package system.
- 36:09But in my experience, I've yet to run across a scenario where I did not find the library that I needed.
- 36:15Like weather app uses location. It's plenty of location libraries, you know?
- 36:19Yeah. Yeah. And Ionic has npm obviously, right?
- 36:23Yeah. And they, they also have their own package. They have the Cordova packages or Cordova.
- 36:29Okay. Yeah.
- 36:30Which are, are what they use for connecting to, the telephone itself. So everything that you need to do with that, you, you go through the Cordova store.
- 36:41There are a lot of various packages on the Ionic website themselves. So.
- 36:45So, yep. And to varying degrees of success, we have CocoaPods for you, Harut, right?
- 36:51Now it's actually Swift package manager. So it's, it's a little bit better.
- 36:54Oh really?
- 36:55It goes by SPM or I dunno.
- 36:56Yeah.
- 36:56A little bit easier to install less configuration hassle overall.
- 36:59Because like I said, the CocoaPods are kind of a little bit janky, right? They're based on like Ruby gems and then they compile. It's a lot of Rube Goldbergian stuff happening there. And then for packages in Kivi, you just use Pip. Yes.
- 37:13Utilicé la librería Pigenius. I use the Pigenius library. Y también utilicé para monetizar la aplicación en la Play Store. Con publicidad, utilicé KeepMob.
- 37:27And for Play Store, I use for purchasing, KeepMob. Cool. So there's third party packages that you can do in-app purchases with. That's great.
- 37:36Para utilizar gráficos 3D, calculo rápido, NumPy.
- 37:41And for 3D calculation, I use NumPy, NumPy.
- 37:46NumPy.
- 37:47That's really cool. That's one of the most popular ones for general science, but I guess it's, it's neat that it applies right there on mobile apps. There definitely are some advantages to having Kivi.
- 37:55This is a question for you, Andreas, I guess, but we can maybe all talk about this real quick. What are the limitations of Ionic regarding to being connected to the internet versus Ionics?
- 38:06being offline. I'm guessing that that question has comes from the fact that it, it sounds like a web app framework.
- 38:12It is a web app framework, but it is self-contained. So when you install the app, you get all of the JavaScript, all of the HTML, all of the CSS that's required to make your app look like it should look on the mobile phone.
- 38:26It's more of how you design your application yourself. If you want to, for example, our application doesn't work without internet access because we have all of the information on the back end and there's really nothing that we can do without internet access.
- 38:40You could, of course, design it that you download stuff and you use it with, there's a lot of plugins to get like in, what is it that, that Apple likes, they like to use the default database that we get on all of our,
- 38:52uh, SQL light maybe. Yeah. SQL light. Thank you. They, they use a lot of SQL light on, on the apps and you can get, SQL light connectors and use that locally on the mobile phone itself. So you can store everything.
- 39:04You can store everything if you want to and do a complete offline experience as well.
- 39:08And you use block, but did you use block for offline capabilities?
- 39:12For anyone not familiar block is one of the many available state management libraries for Flutter. That's the one I choose. I prefer generally. It's what I use at work as well.
- 39:20They also have a library called hydrated block, which makes it really, really easy. It just persists any state change within your application without having to write manually write your code.
- 39:30Like basically it's, it's a to Jason and from Jason situation. You have like a state class. And as long as your state can be serialized in the Jason, it just does all that in the background, which is really nice.
- 39:42So there's, there's like that kind of state's persistence between app sessions, but then there's also actually downloading the files, like for when the, you know, you were offline was very important to you. Right. As far as the functionality.
- 39:54So yeah. Yeah. That's one of the reasons the app existed. One of the two or three, right?
- 39:58Sure. Yeah. So that was, that wasn't really hydrated block was not actually it saved the file path, but the actual bytes, you know, streaming of the bytes and saving the file itself.
- 40:07That was just basically just the HTTP library, writing that directly to the, to the device. And then hydrated block saves the file path for the next time the user needs to watch that offline.
- 40:18A route. What's your offline story. We don't really have, have an offline story. I think it's kind of similar to like other platforms. So some like Instagram, if you don't have internet connection, you don't really see photos and it's kind of similar for us right now.
- 40:30Keep it simple. Right. And Jeffrey, does your app use online features or is it just offline?
- 40:36What the least. So I'm the third imagine is offline. Okay. In V3D we use offline images.
- 40:43Okay. Yeah. So no real internet. Excellent. All right. Let's do talk a little bit about some Python about what's going on here. Since, you know, we're just a little ways into the show. I guess we could talk some Python at this point.
- 40:55Yeah, it's been a great conversation. Let's just go kind of top to bottom. And Andreas, it sounds like yours is very much an online application and has back in services. You already talked about the Ruby on Rails app and getting away from that. Tell us your story. Give us a little sense of like, what is your back in architecture? And just, you know, what do you got going on with Python? Where some of the technologies and things there are back in architecture is actually just changed.
- 41:19We're really proud of it now because we've moved from our own installed servers that have been installed with via very long scripts that you've written down exactly what you need to do and everything and running our own MySQL servers and so on. And we've moved everything into AWS and we're currently running in a Kubernetes setup. So we are really proud of how that's running currently. But we are a Django shop. We've been running Django. The first version was written in 2013.
- 41:48And we've just iterated since then. And we're now currently on the latest versions of all of the dependencies that we have in PyPI as of last week, because we did a major upgrade. We need to update our Redis connections for certain reasons.
- 42:03But yeah, we've been running Django and just doing a regular Django application, really. And that's the main part of the admin for our customers. They use the Django app to do their administration for the memberships, sending out invoices, creating activities that they need their members to join and so on. All of that is done more or less currently in the Django app.
- 42:26And then we have the mobile application is for the members to go in and check which activities are we going to go to, which invoices do we need to pay, connect to other members in the teams or in the clubs that they're members of.
- 42:42So primarily, you've got this Django app. And I was imagining that people can log into the Django app as well.
- 42:47Yeah. And previously, we had like a lot of Ruby on Rails servers that did certain parts of the application. For example, we have a lot of different payment solutions for the invoices you can pay via Swish, which is a comparison with I think it's called Venmo or Cash App in the States.
- 43:04What you do is you send money via your mobile phone number in Sweden. And so we have a backend for handling that that used to be written in Ruby. We've moved that into Django as well.
- 43:14We also have credit card payments, which was in Ruby on Rails, moved into Django. And so we were trying to consolidate a lot in the backend and try to move everything back into the Django application and just have the mobile apps out for the members to use to talk to the backend.
- 43:30That's excellent. Yeah, there's a bit of a trend away from all that stuff, right? There's a great article, give me back my monolith.
- 43:36Yeah, exactly.
- 43:37Yeah, exactly.
- 43:38Instead of all the microservices and different technologies that were just like, just give me a thing, just let me put it to the app. And it sounds like kind of like you embrace that with Django.
- 43:48We've got a lot of experience with Django. Me and the other main developer, we've been working with Django for, I've been working with about 10 years now. He has been working with about 15. And it's our preferred go-to solution for everything in the backend.
- 44:03You must have APIs and stuff, right? What do you use for the API side of things? Is it still just straight Django or do you have some REST framework?
- 44:12We use Django with Django REST framework. So it's really a simple solution for that as well.
- 44:17Yeah.
- 44:17And we really enjoy working with that. We have another guy who's come in now who is a developer I've worked with a lot from the Ukraine. And he's been working with us now from Poland instead, just doing development with Django REST framework. And he's really good at those things.
- 44:32Yeah, it seems like a nice one. Have you considered Django Ninja?
- 44:35I've just read about it. I haven't actually done anything with it. I read about it the other week.
- 44:40If you like FastAPI, but you also like Django, then maybe Django Ninja is what you're looking for.
- 44:45Yeah, exactly. But that being said, I mean, the new releases with Django, with version 5, with all of the now async views, everything that we're getting with that, I think Django is one of these things that you know that your code will always work.
- 44:59But you also get that you're starting to get all of these new features as well to get the systems working as well, which is really amazing.
- 45:07I think they're doing a great job with the Django community now.
- 45:10Excellent.
- 45:10So similar to Andres, we also use Django. So I'm just going to be basically talking, building on top of a lot of the stuff that he said.
- 45:16Big fan of the framework. I've been using it for years.
- 45:19I'm trying to think. We mostly use Django REST framework.
- 45:24A lot of the stuff, a lot of the views are kind of custom built. The ORM is very helpful. Migrations are really helpful.
- 45:30We do write some raw SQL for some of the more trickier parts of the app, like the explore page, where the queries need to be more performant.
- 45:36We use HTTPX to send notifications to APNS, which is Apple's push notification server.
- 45:43We are big fans of type hints. I have some of this I've written down here, just to kind of point out.
- 45:49PostGIS for some of our geospatial calculations. And most of it runs on, I don't know why I'm saying most of it, all of it runs on AWS, on pretty bare bones EC2 servers.
- 45:59I kind of like the simpler monolith approach where you kind of just like you have a bare bones server, you set up everything.
- 46:04And then, you know, you can use something like Ansible to help you bring it up and bring it back down.
- 46:09But it's just a lot easier to keep in mind.
- 46:12And deploy and version and all those things.
- 46:15Hey, while you're on, I think I had a question on the audience.
- 46:18I'll go ahead and ask.
- 46:19And Sid, in your pin app, is it difficult to write code so that changes are saved?
- 46:24You know, Lauren talked about the block thing.
- 46:26You kind of just make the changes to the state and they just stay.
- 46:29But what's the story for yours?
- 46:31I don't know if I fully understand the question, but I think there are two ways, two things that I could say to answer it.
- 46:37One is we use user defaults in Swift to take advantage of like saving stuff directly on the device.
- 46:42But actually, the main thing that we do is we push a lot of logic to the server.
- 46:47And this is like my favorite way to kind of get around the app store nonsense.
- 46:52Just, I guess, is the nice way to say it.
- 46:54But the more and more logic that you push to the server means that whenever you need, you find a bug or you have a feature or fix that you want to push out.
- 47:01You know, you can just change it on your server, redeploy, and then boom, like it's available.
- 47:06So sometimes like when people on the app complain about issues with like, oh, this is not displaying correctly.
- 47:11And then I'm like, oh, just refresh the app.
- 47:12And they're like, oh, that's crazy.
- 47:14I can't believe that just worked.
- 47:15And other times, certain things that I have to do on the device, I'm like, oh, well, here's a, now I got to submit this to the app store or wait a day for it to get approved.
- 47:23Wait two weeks for everybody's phone to update.
- 47:25Yeah, absolutely.
- 47:26If you can do it on the server, it's just have so much more control.
- 47:29And I mean, Lauren, that's how you and I worked a lot, right?
- 47:32A lot of the things were like, well, if we want something to be visible in this collection or not visible in that collection or, you know, like, for example, if you want, say, the free courses to appear in a different section but not in the main one, you could just not return them in the API rather than changing the app potentially.
- 47:48Right.
- 47:48Exactly.
- 47:49Yeah.
- 47:49I was actually, I recall being impressed by how easy it was, excuse me, for you to make these changes, you know, as these requirements kind of popped up throughout the process.
- 47:57You'd be back in 10 minutes.
- 47:58Okay, it's ready.
- 47:59You know, and it was, I guess, Mongo is maybe partially a factor in that and how flexible it is.
- 48:05I made zero database schema changes explicitly on this.
- 48:09I just wrote code and it just, it just started doing what it needed.
- 48:12The whole, the whole thing through the app.
- 48:14Yeah.
- 48:14The whole app dev process.
- 48:15Yeah, it was fast.
- 48:16I remember telling you when I started my job, it was noticeably not as fast as your backend.
- 48:21And that's a big company with lots of money.
- 48:24That should be super fast.
- 48:25Well, yeah, to be fair, I think it's reasonable to assume an insurance company has a larger and more complex backend.
- 48:29I think the complexity is also crazy, right?
- 48:32Like probably you've got to, we got to apply a bunch of rules to this question, not just return the data.
- 48:37Yeah.
- 48:38Sure.
- 48:38Nonetheless, I'll say it again, your backend is crazy fast.
- 48:41And you kind of got me hooked on the FastAPI Mongo situation.
- 48:45Yeah.
- 48:46Really impressed with all that.
- 48:47I know you're not using FastAPI for your backend for that.
- 48:49I would if I got a choice actually, but I mean, no, no, no, no, no.
- 48:51I'll go ahead and say a little bit about what we're doing on our backend just to kind of be fair to round it out.
- 48:56So the Talk Python web app is written in Pyramid.
- 48:58I love the Pyramid framework.
- 49:00It has a lot of cool features.
- 49:02It's really, really fast.
- 49:04It was one of the very first ones to support Python 3, like intentionally a lot.
- 49:08Like it might run, but we embrace Python 3.
- 49:10And that was a huge reason that I chose it.
- 49:13I also love the Chameleon framework for writing templates.
- 49:16It's really nice.
- 49:18It's been great.
- 49:18I like the projects with ambitions.
- 49:20Start small, but finish big and stay finished.
- 49:23Stay finished.
- 49:25So that's really good.
- 49:26And then it talks to MongoDB using Beanie and that combination is just great.
- 49:31And like Haru, it runs on DigitalOcean, not on, not on AWS, but it's just a couple of servers,
- 49:38right?
- 49:38One for the front end web server, one for the database and it's golden.
- 49:42It goes great.
- 49:42So yeah, that's, that's pretty much what we got going on there as well.
- 49:46Yeah.
- 49:46I probably would choose FastAPI if I were to start over, but rewriting the web app,
- 49:52it's like 20 or 30,000 lines of Python.
- 49:55You know, it's, it would be cool if it was FastAPI, but I'm not sure that the benefits
- 49:59of making all those changes are really there.
- 50:02It's, it's like, I already liked the framework as it is.
- 50:04I also came across Litestar recently.
- 50:07I just interviewed those guys here on the show, but not yet published.
- 50:09So in the past, but also in the future in a sense.
- 50:12And this is a really interesting thing.
- 50:14Also built on Starlette that I'm really, really interested in and checking out more as well.
- 50:19So there's a lot of, there's so many good back end frameworks to choose from, but you know,
- 50:24you got to pick one and go with it.
- 50:25And then Jefferyn, I guess maybe it's worth pointing out that Kivi is, while you don't have
- 50:30online capabilities for your app, Kivi itself is Python.
- 50:34So yours is the only mobile app that is all Python.
- 50:38Whereas everybody else's mobile app is something else.
- 50:41Yeah.
- 50:41Yeah.
- 50:42Kivi is building Python.
- 50:47With services on the cloud and Flask.
- 50:56Okay.
- 50:57Flask.
- 50:57And I also use Dropbox to save data in the cloud with the same Python.
- 51:14What does your app use the Flask online service for?
- 51:18We use Flask to upload everything in the cloud and in order to be downloaded in any part of
- 51:36the world.
- 51:36I said we would talk about the app store, but I also want to finish this on a positive note.
- 51:41So I think I'm going to not try to make it the focus of app store horror stories.
- 51:45Although I just don't get why they make it so hard to build apps for these frameworks,
- 51:50especially Google, not, I mean, especially Apple, but also, also Google in their own special way.
- 51:56So instead let's just round this out with maybe like a piece of advice or your thoughts on going
- 52:03from having your app to get it in the app store.
- 52:05Andreas, you want to go first?
- 52:07From our point of view, the main thing that has been a bit of a hassle was if you want to publish
- 52:13an iOS app, you need to have a Macintosh.
- 52:16So we need to go out and buy a Mac.
- 52:18That was one of the things.
- 52:20But that being said, what we have done a lot now is we try to automate these things.
- 52:25We try to automate pushing the app into the various app stores from GitHub, which we use
- 52:31as a repository for it.
- 52:33I've successfully done that now for the Google Play, but I can't get the iOS app to build,
- 52:39unfortunately.
- 52:40Yeah.
- 52:41That does not surprise me.
- 52:42On GitHub Actions.
- 52:43But that's one of the things I think you should invest some time in.
- 52:46Because if you do get it working, you can get a lot of these hassle things out of the way.
- 52:52And building it on a Mac, it's four or five clicks that I need to do to build it.
- 52:58But I need to make sure that I have the right versions everywhere.
- 53:01And I make sure that I have set the new version of the application in all places I need to update
- 53:08that in both on Android and on iOS.
- 53:12various config files I need to update.
- 53:14So really looking into automating all of that, I think, would be a good thing to try and do
- 53:18as much as possible.
- 53:19Yeah.
- 53:20That sounds fantastic, actually.
- 53:21Even having one of the app stores automated is really nice.
- 53:24Yeah.
- 53:24Harut, you mentioned builds, Xcode, good times.
- 53:28We're going to try to end on a positive note.
- 53:29I don't want to talk.
- 53:30I don't want to rag on Xcode too much.
- 53:32Let's not talk about it.
- 53:33But you do need Xcode to build your app to get it in that store.
- 53:37That's for sure.
- 53:38And if you're like right now, we're what, like four days?
- 53:42September 12th is the launch of iPhone 15.
- 53:44And iOS 17 will come out a few days after that.
- 53:47If you want to try to build something for iOS 17, you do need Xcode 15, which is still in
- 53:53beta, beta 8.
- 53:54And that can sometimes be tricky to build for, not everything.
- 53:57Because like the videos that Apple puts out in June for WWDC, the API has actually changed
- 54:02since then.
- 54:03And it's, again, not clear sometimes.
- 54:05Yeah.
- 54:05We're a little spoiled in the Python world about how it, if something once worked, it generally
- 54:09continues to work.
- 54:10Yeah.
- 54:11This next question here from Alan, maybe perfectly lines up your part, Lauren.
- 54:17I've not yet published a Flutter app.
- 54:20So I really want to learn how this works in the automation available.
- 54:22Yeah.
- 54:23Maybe just App Store advice and chime in on that potentially.
- 54:27Short answer is yes.
- 54:27There are a few different CI/CD platforms available for that.
- 54:30Like, for example, GitHub Actions.
- 54:32You can get that set up where you push a command from a terminal and it does all this stuff in
- 54:37the back end and pushes to the store.
- 54:38I personally have not.
- 54:40That's on my to-do list.
- 54:40I have not actually done that yet.
- 54:42There's also CircleCI.
- 54:43There's CodeMagic.
- 54:44There's a few different services available.
- 54:46It's probably a little time consuming to set up.
- 54:48Let's say you don't want to get into that, which you should.
- 54:51It's definitely worth it in the long run.
- 54:52But let's just say like we're not, for Talk Python, we're doing it quote unquote manually.
- 54:56It's still not that bad.
- 54:57Like basically, in Xcode, you create the archive, upload it within Xcode, go on the web app,
- 55:02submit.
- 55:02Right.
- 55:02And it's more or less, you know, on the Android side.
- 55:05You're basically, as far as Flutter is concerned, it's when it comes to publish, you're publishing
- 55:09a native app.
- 55:10Right.
- 55:10So you just got to go through both those processes.
- 55:12Android Studio, you build the APK and then upload, you know, and submit.
- 55:17Right.
- 55:17Via their respective web app.
- 55:18So even if you don't go there.
- 55:19Yeah.
- 55:20It's worth pointing out, like there's, I think, zero difference from the way you publish a
- 55:24native app and the way you publish these.
- 55:26From what I do, like I'll open up Android Studio and go through the steps or I'll go through
- 55:30Xcode and do this.
- 55:31It just happens to be what's running or compiling behind the scenes had some Flutter component
- 55:36at some point, but it's they're identical.
- 55:38People should probably keep that in mind.
- 55:39Right.
- 55:40Yeah.
- 55:40It does compile to native code.
- 55:42So as far as like the app stores are concerned and as far, you know, it is a native app just with
- 55:46the UI being painted over top.
- 55:48Right.
- 55:48But so.
- 55:49But yeah, lots of options out there if you want to go that route.
- 55:52Awesome.
- 55:52And cross your fingers.
- 55:53Yeah.
- 55:54Yeah.
- 55:54Jeffron, is your app in the App Store?
- 55:58I know.
- 55:59It's in the Google Play Store, right?
- 56:01Google Play Store.
- 56:02Yes.
- 56:02Yes.
- 56:03Yeah.
- 56:04We have launched it in App Store.
- 56:06Just only in Play Store.
- 56:08And do you have advice for people getting their apps into Google Play?
- 56:11Follow the guidelines of privacy.
- 56:19Más que todo en la exploración de archivos.
- 56:24Overall, archives exploration.
- 56:26Eso me ha dado dolores de cabeza en Android a partir de la SDK 30.
- 56:32Yes.
- 56:32And that have given headaches for me since the updating of SDK 30.
- 56:39Excellent.
- 56:40Well, everyone, this has been really fun.
- 56:43And I said we're not going to share App Store horror stories.
- 56:46Horror stories.
- 56:47So we're going to pin this on a positive note.
- 56:50I think in general, there's just so much possibility in mobile app development these days.
- 56:56I don't know about you all, but when I first saw an iPhone or a smartphone, my head was full
- 57:01of ideas of like, oh my gosh, you could do this.
- 57:03You could do that.
- 57:04It's just such an open world for interesting things.
- 57:07And it's really cool to hear how you're all building your different apps and putting them
- 57:11together.
- 57:11So thank you for being here.
- 57:13And it's been great.
- 57:14Thanks for sharing your experiences.
- 57:16Thanks a lot.
- 57:17This was great.
- 57:17Thanks, Michael.
- 57:18This was a lot of fun.
- 57:19Thank you.
- 57:19This has been another episode of Talk Python To Me.
- 57:23Thank you to our sponsors.
- 57:25Be sure to check out what they're offering.
- 57:27It really helps support the show.
- 57:28Take some stress out of your life.
- 57:30Get notified immediately about errors and performance issues in your web or mobile applications with
- 57:36Sentry.
- 57:36Just visit talkpython.fm/sentry and get started for free.
- 57:41And be sure to use the promo code talkpython, all one word.
- 57:45Want to level up your Python?
- 57:47We have one of the largest catalogs of Python video courses over at Talk Python.
- 57:50Our content ranges from true beginners to deeply advanced topics like memory and async.
- 57:56And best of all, there's not a subscription in sight.
- 57:58Check it out for yourself at training.talkpython.fm.
- 58:01Be sure to subscribe to the show.
- 58:03Open your favorite podcast app and search for Python.
- 58:06We should be right at the top.
- 58:07You can also find the iTunes feed at /itunes, the Google Play feed at /play,
- 58:13and the direct RSS feed at /rss on talkpython.fm.
- 58:17We're live streaming most of our recordings these days.
- 58:20If you want to be part of the show and have your comments featured on the air,
- 58:23be sure to subscribe to our YouTube channel at talkpython.fm/youtube.
- 58:28This is your host, Michael Kennedy.
- 58:30Thanks so much for listening.
- 58:31I really appreciate it.
- 58:32Now get out there and write some Python code.
- 58:34I'll see you next time.
- 58:55Thank you.