4
Good afternoon to you all! I am a student of Computer Science, but I haven’t had the opportunity to have a deeper experience with programming, involving the necessary integrations in applications and systems, and I would love to have a notion on top of what I will need.
Briefly, I have a project in which I intend to develop an Android application, which will act almost only as a front, sending the data to my server in Python, which will store them in the respective database, will perform Machine Learning algorithms on this data, and return it to my application, bringing it to the front (displaying on screen). Basically it will be an application of questions and answers, as quizzes.
My question is: how do I access my application in Python (or make the calls), return them and the like? For the integration Python<->DB already analyzed some possibilities and I will probably use the lib pymysql, but I could not find something like this for the side of Android<->Python (for example, the user got 3 questions right, I send this whole to my Python application and in it are called the respective functions for the calculations).
I read a little about "web services", is it necessary something like this for what I wish? Any recommendation of materials or sites where I can study this further is very welcome!
Thank you in advance.
Edit 1: Initially, I would just like to create a basic connection, with the good old login screen, that is, I want to create an authentication performed by my server-side (Python + DB). From this, I wish to explore the parties jointly and individually.
I request, if possible, some specific example of this procedure, something like "Android - tool X - server - tool Y - database", ie, the way it all connects, quoting tools, so that from this example I can look for similar tools and find the one that best suits me. I believe that a graphic example would clarify my doubts.
Actually I didn’t understand no hahahaha The way I saw it was to use a computer in my home as a server, not in the cloud. I really have no idea of either, and I don’t know what the simplest alternative is. That being said, what is the best alternative (in terms of ease) of server? Host my server-side on a cloud service or use my own computer?
– Lucas Antunes
use your switch to develop, and put in the cloud for when it’s for your friends/end users to use. There are some free options for low usage - look for "pythonanywhere" and "Heroku", for example.
– jsbueno
Got it! In my case, it’s a college project, so I don’t have any plans to make it available to anyone, so I could just use the computer for now, right? I believe I have already had contact with the "Heroku", I will give a studied, thank you!
– Lucas Antunes
One cool thing, and if you succeed is a "case" for online is to create an Android Html5 application with Electron or other, using "Brython"; Brython is a Python implementation made whole in Javascript, to run right in the Browser. Technically it’s a javascript project that lets you program direct front-end in Python. But no one has yet documented the steps to create a Python app using it directly. (hence in this case, there is the "Internal)
– jsbueno