r/Python • • Dec 18 '22

Discussion App development (iOS and andoid) using python?

Looking to get some of my app ideas into reality and have some python code to do certain things but wasn't sure where to begin.

Some people suggest i try " flutter" or "react" but i've seen a few other alternatives

https://beeware.org/

Says you can take python code and release it on iOS and more, but maybe i'm not understanding what's happening.

Any suggestions or tips for coding using python or do i need to learn /use a different language for what i'm looking to do?

51 Upvotes

35 comments sorted by

View all comments

11

u/gman1230321 Dec 19 '22

I personally would not recommend doing this. Python is great at a lot of things, but this isn’t one of them. IMO one of the reasons Python gets some (arguable deserved) flack is because people try to use it for everything, then wonder why using Python for game development was a bad idea. Being a good programmer is not about knowing how to use a couple tools for any job, but knowing what jobs are right for the tools you have. I know that was a bit of negativity so let’s talk about what j would recommend instead. First, yes you can use Python for this project, but I wouldn’t recommend it for the whole thing. If you have a need for a backend (database management, large scale data processing, etc) use Python for that 100%. I recommend flask as it’s pretty easy to setup a REST API with. For the actual app itself, I don’t have much experience personally, but somethings I have used were react native and flutter and you mentioned above. Flutter is a really cool technology but it uses a completely different language called dart. Dart is fine, absolutely no complaints about the language itself, but it’s a bit smaller since it’s only use is pretty much just flutter. This could make it ever so slightly to find support but it’s not that bad. I haven’t noticed much of a problem w it. React I have less experience with but still a good experience. Support is a bit better and experience is about equal I’d say. Although, morally, I don’t like it simply bc I have my own problems w Meta, but there’s not much wrong w the product itself. It has a bit of an advantage over flutter simply bc it’s in JS which means you can use TypeScript which has recently become one of my favorite languages. One more thing to add to this list that I’ve had my eye on but haven’t gotten to try yet is svelte-native. I love svelte for web and have been curious what the mobile experience was.

1

u/infinitysexbot Dec 19 '22

i think i'm going to go with flutter for the app development and interface, but would like to definitely use some python on the back end / database part. Could you explain or link on how to properly do that?

1

u/gman1230321 Dec 19 '22

Great choices. There’s not really one proper way to do it. The flask docs are a great place to start though. The official docs are pretty thorough but also have great examples and guides you through the basics pretty damn well. This is a pretty good guide on using flask more specifically to make a rest API. For general specifications for a REST API, check out this great guide. If there’s anything you’re not sure how to implement in flask, a quick google search or a search through the flask docs should get you some answers.