Can you develop web apps with pyQT? if not what is best for python web development?

Heads up! You've already completed this tutorial.

David_Faith | 2021-05-26 14:40:51 UTC | #1

if not what is best for python3 web development? Flask? I have to make a restful web service on an embedded device.

martin | 2021-05-26 16:10:22 UTC | #2

Hi @David_Faith welcome to the forum!

PyQt is designed for desktop application development e.g. using your desktops GUI elements, rather than in a browser.

For web development with Python the two most common are Flask or Django. Flask is generally simpler/more lightweight but depends on what you need.

What sort of embedded device are you developing on? A Pi or something more limited?

amohgyebigodwin10691 | 2021-05-28 10:51:38 UTC | #3

You can't use PyQt on mobile. But Qt itself can be used on mobile. It's sad but python won't be on mobile anytime soon according to Guido.

David_Faith | 2021-05-28 18:39:27 UTC | #4

Hi, I'm developing on a MultiTech MTCAP AEP conduit. which is like a router, but for IoT. This model contains a linux offshoot called mLinux which was built using yocto for embedded systems. We are making custom applications in python to run on these boxes to provide network edge intellegence and handle various processes for routing messages in different protocols. We were using nodejs for some stuff, but moving to python. I think we are going to use Flask for the inbound api and should we need a GUI, we would want it to be responsive and mobile friendly as well as have good integration with Flask. So it looks like we will be using jinja templates, or stratight html/css when we need GUI access. It seems that pyQT is more for stand alone apps like control panels and such for stand alone machines or desktop applications.

stelaldridge11281 | 2021-06-04 11:19:58 UTC | #5

Hey David,

I upvote for Django if we are talking about web development in Python. Flask is great as well for that purpose but I prefer Django. Whatever you opt for you should pay attention to your needs.

Over 10,000 developers have bought Create GUI Applications with Python & Qt!
Create GUI Applications with Python & Qt6
Take a look

Downloadable ebook (PDF, ePub) & Complete Source code

Also available from Payhip , Gumroad , Leanpub and Amazon Paperback

[[ discount.discount_pc ]]% OFF for the next [[ discount.duration ]] [[discount.description ]] with the code [[ discount.coupon_code ]]

Purchasing Power Parity

Developers in [[ country ]] get [[ discount.discount_pc ]]% OFF on all books & courses with code [[ discount.coupon_code ]]
Well done, you've finished this tutorial! Mark As Complete
[[ user.completed.length ]] completed [[ user.streak+1 ]] day streak

Can you develop web apps with pyQT? if not what is best for python web development? was written by Martin Fitzpatrick .

Martin Fitzpatrick has been developing Python/Qt apps for 8 years. Building desktop applications to make data-analysis tools more user-friendly, Python was the obvious choice. Starting with Tk, later moving to wxWidgets and finally adopting PyQt.