Python Forum
Python automation GET/POST/REQUEST - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Python automation GET/POST/REQUEST (/thread-5206.html)



Python automation GET/POST/REQUEST - Raki - Sep-22-2017

Hello All,

I have a Python web based project(UI is designed with Java and it is parsed to use by python) which can load a project as JSON, I can run the calculations and save the output as JSON. Now what I am trying to do is to automatically do this functionality without even using the UI.
I would have a JSON file with all the necessary inputs which I would fire it to my project say the load project part and automatically trigger the calculation module and then return back the result as JSON.

Additional information: My Python project already use the Python web services to POST and GET the specific modules, like
when I run the url in my browser it links up with the server and downloads the required UI for example my login screen then so on.

I can also give more information, plus I am only a beginner in python programming.
Any tips, suggestion and advises are much appreciated.

Thanks in advance.


RE: Python automation GET/POST/REQUEST - Larz60+ - Sep-22-2017

take a look at flask for your web programming.
There are several tutorials available here:

https://python-forum.io/Thread-Flask-Starting-web-development-part-1
https://python-forum.io/Thread-Flask-Ajax-in-Flask
https://python-forum.io/Thread-Flask-Trow-away-JS-function-and-use-a-Python-function
https://python-forum.io/Thread-Flask-Weather-app
https://python-forum.io/Thread-Flask-Bootstrap-node-npm-gulp-bower