json - Send Swift data via REST to a server and execute Python code -


first of all, i'm not experienced servers. want know have study make happen. better explanation received.

like said in title, how can that?

what want:

swift ios app(client-side) json -> server -> execute python provided data 

and return:

swift ios app(client-side) json <- server <- return of executed python provided data 

i've read apache involves php(my nightmare) , lot of more things (like php running python commands on terminal). way?

can make server receives json , directly use python decode, process data, create new json (an answer) , send client?

can away php?

what technologies (like server, languages, frameworks) have use on project?

plus: what's best choice database(and framwork access it) small projects? (like simple app)

thanks in advance!

this shouldn't difficult. if i'd ignore ios / swift side @ first , web service , running. see http://www.dreamsyssoft.com/python-scripting-tutorial/create-simple-rest-web-service-with-python.php seems nice tutorial simple rest app.

for small projects, i've used sqlite , been pretty happy it. it's relatively simple , works advertised: https://www.tutorialspoint.com/sqlite/sqlite_python.htm

as part of ios / client side, include python code want executed in payload of request. inside rest app, can execute python code result, store in json object , return client.

this should achievable within python , no need php or anything. see post executing python code python: how execute string containing python code in python?

good luck


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -