Web Server/Site Python [closed] - python

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
So I was wondering if there is any Python package that can allow a pure Python application with a graphic interface to be embedded in a website. I have an application with a Tkinter interface that I want to make available on a website. Any way to do this without converting too much code?
Thanks!

In fact, it's possible: GTK3 has a html5 backend named Broadway.
This backend enable to access to an application through a web browser.
$ GDK_BACKEND=broadway your-application
You can see an exemple with python in this video
Of course, it needs a GTK application...

It's impossible.
Python/Tkinter app is a desktop application, which requires desktop manager, has access to file system etc.
Web application is a different stack of technologies (HTTP, HTML, javascript etc), it is not possible to mix them

Yes, this is possible, but not in way you expect.
There is python - to js translation kit, which supports many, but not all, python operations, functions and types.
So you can write back-end and front-end in python.
But using pure js for front-end will give you more performance.

Related

Python: Creating desktop application with HTML GUI [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
This question is more about methodology.
I want to create a Python desktop application, but I don't want its GUI to be like tkinter or like PyQt. I prefer to have a beautiful and modern client GUI like Bootstrap.
Is there any existing API for creating such applications in Python?
If not: does it sound a sane workround to use some Python server (like Django or like web2py), and to start a new server each time the application is launched by a user, just for enabling the application core to be in Python and the client to be in HTML?
Does anyone work this way?
Use PyQt or PySide 2, Qt WebEngine and Qt's builtin support for hosting HTML applications:
http://doc.qt.io/qt-5/qtwebchannel-index.html
The general architecture is a SPA (Single Page Application) running from local HTML and Javascript content bundled with your app – no need for bundling in a web server.
For anything complicated (like bypassing cross origin issues), use the Qt WebChannel to message to functionality built on the Python side.
This is basically the same architecture that Cordova uses.
Now, whether you should build an application this way (cough QML cough) is a completely different topic.
There is value in having a local server that does your GUI work, whether this applies in your case depends very much on the requirements of the app.
Most apps I write tend to have a habit of ending up to be multi-user and hosted, so for me it makes absolute sense starting of like this.
If you are going down this route also have a look at http://brython.info/, having the same like languages across everything makes brain context switching less of an 'overhead' (pardon the pun).

python web server recommendation [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
Still learning python, and want to build a web project.
I wonder if there is any web server implemented in python that could be used in practice?
I know simplehttpserver, which is too simple.
Apache and Nginx, they might be too complicated, and they're not python.
addition
Sorry if I'm not making it clear. I'm working on a simple http file browser much like ubuntu repository where people download files. simplehttpserver works, but I want to use more features,
like process request before it gets to a file, and customized url routing .
Thanks in advance.
For deploying WSGI applicaitons you may look into Gunicorn, which is written in Python.
Or if you are interested in writing an Asynchronous application, you may look into Tornado which comes with it's own server.
Please update your question in details i.e. your use case, and with particular problems you may face, otherwise it'd be considered not constructive.

Good places to deploy a simple Django website [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I am looking for options on places to host a Django site.
Should I find a service that already has the proper programs and dependencies installed?
Or can I gain access to a server and install them myself?
Webfaction
Heroku
Google App Engine
AWS Elastic Beanstalk
Windows Azure
But, cheaper, do it yourself. VPS's these days are quite cheap (digitalocean.com $5/month). An easy to manage combination: Ubuntu + Nginx + Gunicorn, and follow some tutorials about how to secure and update your VPS.
Hosting yourself can be cheaper, but you will have to spend some time maintaing the system to keep it safe. Choosing a service may be a bit more expansive but you don't have to deal with the system itself.
Choose your best.
If you just need somewhere to play around with I would recommend something like heroku.
It's easy to deploy apps, free for small apps and you don't have to worry about sysadmin side of things if you do not need to.

python-jenkins or jenkinsapi for jenkins remote access API in python [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
There are two python packages exist for jenkins remote access API, I need help to compare those two packages, so I can judge which to use.
python-jenkins http://pythonhosted.org/python-jenkins/
JenkinsAPI: http://pythonhosted.org/jenkinsapi/
So far for my thoughts:
python-jenkins is quite simple interface and is part of new Ubuntu release, which means easy to use, mature enough for general usage.
JenkinsAPI is mentioned in Jenkins official document, it looks new, but it is more connected with jenkins API development as well.
What I needed so far:
https access and simple authentication (token inside jenkins) : document is not clear both
get list of installed plugins (possible for those packages ?)
get list of jobs
get config xml from job
.. may needed for other exposed remote Access API later
I want to stick with python API in high level module, if possible, avoid to use python-requests module
Any more ideas ?
EDIT refine the questions after the comments below
Given that both seem to have more or less the basic features and that JenkinsAPI is
mentioned by the official documentation
more active (jenkins-python history vs jenkinsapi history)
I would go for jenkinsapi.
As for token support, given the documentation, the fact that the code uses token in place of passwords for the API and is backward compatible with basic auth, I would say that any client that supports passwords will support tokens.

Python Web Service Recommendations [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I am looking to create a web service in Python, but none of the libraries/tools I have looked at appear to be actively maintained. I am looking to build a server using SOAP. Don't need to build a client at the moment as I can test using soapUI but will need to write a client at some point.
The ones I have already looked at include
ZSI
SOAPpy
SUDS
rpclib (formerly soaplib)
Can anyone recommend any more that might be maintained a bit more regularly?
Try twisted: http://twistedmatrix.com/trac/
Its heavily used project to various web services. You can build almost anything from it.
Talking about SOAP here is twisted support for SOAP from docs: http://twistedmatrix.com/documents/current/web/howto/xmlrpc.html#auto4
Last change was few hour ago - so it is actively maintained.
You may want to read this:
Python: How can I use Twisted as the transport for SUDS?
What is a good framework for a soap service?
Python SOAP client library using a HTTPS connection with keys

Categories