How to move my Python application to the web? [closed] - python

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
This month, I learnt Python. I compiled the code and am able to run it on my laptop. A simple code that asks the user yes/no responses to questions that helps them traverse through a flowchart and end up with a final choice/result.
How do I turn this into a Python Web Application that can be accessed by others over a URL and not be dependent on my laptop to run it?

You need to separate the parts of your app that have its logic from the ones which react to and update window content.
Then you need to rewrite the window management part for the web. From the scratch. Also other parts if they rely on things that are not available in a browser (usually local filesystem access).
It is doable, but not that trivial as web apps have different architecture from desktop apps, there are issues with concurrency, preserving app state, and browser limitations, to name few.
Anything more detailed requires you to describe what it is that your app does and how.

Related

Web development for smart switches IoT [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I have many jinvoo light switches in my house. I control them from the app in my cell or using alexa echo gen 3 and everything works perfect.
Now I am trying to create a local web page that allows me to know the status and to interact with the switches.
I have been looking an api and found nothing. I also thought about creating an Alexa skill to interact with my page or to use and arduino ESP8266.
Any suggestion will be appreciated.
If you know how to control them from a skill, you can create custom tasks for different operations within a skill, then trigger them using Quick Links for Alexa.
Custom tasks: https://developer.amazon.com/en-US/docs/alexa/custom-skills/implement-custom-tasks-in-your-skill.html
Link to custom tasks from a web page: https://developer.amazon.com/en-US/docs/alexa/custom-skills/create-a-quick-link-for-your-custom-task.html#

How to use Python to Interface with z/OS Services to Automate Manual Processes [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I'm trying to automate some manual process on Mainframe, for that I want to use Python. I'm aware of some interfaces using FTP via ftplib. My immediate task is to
Query existing job status/ log in spool...
Any documentation or help is appreciated.
Have you considered using the z/OSMF jobs REST APIs?
https://www.ibm.com/support/knowledgecenter/SSLTBW_2.4.0/com.ibm.zos.v2r4.izua700/IZUHPINFO_API_RESTJOBS.htm
You can use python to issue REST calls to get what you need.
Since you're interested in using python, you should also be aware of the Z Open Automation Utilities (no charge!)
This is a set of utilities that help manage mvs through shell commands in Unix System Services, Java, python, Ansible...
Here is an introductory link - be sure to use the side-bar on the left and expand the code examples, there are examples using the utilities on datasets and jobs.
https://www.ibm.com/support/knowledgecenter/SSKFYE_1.0.2/zoautil_purpose.html

How to build a simple mobile app based on a simple python program? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I recently participated in the company's internal Hackathon, using Python and Azure's image processing API to make a simple program to scan products. The basic idea is to place a specific product in front of the camera and the program will redirect to the product page with more details.
Our product manager is quite interested in this project, asking if I can make a mobile app. I am a data engineer and has almost zero experience on the mobile side. Just wondering if there is an easy way to migrate / re-do the project I just described and make it preferably an app compatible with both Android and IOS. What tech stack do I need to learn to achieve this? Thanks in advance!
you can try it with https://kivy.org/#home - this should work with python.
If you do not want to stick to python, there are lots of frameworks, that might fit your needs:
Flutter https://flutter.dev/
Kotlin https://kotlin.org/
Xamarin https://dotnet.microsoft.com/apps/xamarin
React Native https://www.reactnative.com/
this list is growing fast...

nodejs python or twisted [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I'm new to web development and going to make a website which responses with data received from request to web-service(facebook for e.g.) and how to choose what is more useful here:
nodejs has an callback model which allows not to wait while gathering data for user from other services (but i've broken my fingers and my brain after trying to make a kind of class in javascript with inheritance and the whole server drops after unhandled error in script)
python is very convinient in working with diff. kinds of data, it's more convinient for me, former C++ developer
yesterday i've read about twisted python that also uses callbacks
Help me please to choose what to use, better - performance, simple code
The callback model might make your code more verbose but WAIT! there is a solution! Check out
waitfor.
Anyway, if it's a personal project then no one is forcing you to use node.js for webapp development.You should go with what makes you more comfortable. If you like developing in python then go for it! :)
why don't you try django; it uses python (which you said is more convenient) and is also very commonly used for web development.

Converting a python script to a web application [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I have a python script written up and the output of this script is a list . Right now I need to get it online and make it accesible to others. I looked at Django , but then I realised that it may be kind of hard to create the UI. Is there any simple way to create a UI in Django and map it to an existing python script. Right now I am not using sql and things like that. Or is there a simpler way by which I can proceed?
I'd go with Flask or web.py.
Django pays off if you develop a large app; yours is not.
Probably all you need is two pages: one with an input form, and another with results. As long as your input is text, you should have little trouble taking input from a POST handler and passing it as is to your script.
Both microframeworks have tutorials: here's web.py's, and Flask's is right on the home page. Should get you started very quickly.

Categories

Resources