XMPP server for Python [closed] - python

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 8 years ago.
Improve this question
I am interested in developing a chat engine using XMPP and I want to use Python for my web development. Although, XMPP will be independent of this Python work but in case I want to write wrapper, then I will have to use that language.
So, I want to know which XMPP server (preferably open source) should I go with?
And which python libraries are good for using XMPP service?

The only (maintained) effort for an XMPP server is wokkel which builds upon Twisted.
That said, wokkel lacks a ton of features that other non-python servers give. Additionally wokkel aims at providing the library to build a server and it would require a non-trivial amount of effort to actually build a fully functional XMPP server providing support for common XEPs.
On the good side: You don't really need a python server. You can use a ejabberd, tigase, openfire (name here your preference). You can write all your custom logic/protocols and components in python and connect them seamlessly to that server. For that particular use wokkel and Twisted are an excellent choice. Another great library is SleekXMPP.

Related

Python and Bluetooth Low Energy: Is there an alternative to pygatt? [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 2 years ago.
Improve this question
I'm trying to communicate with an ESP32 microcontroller and my linux desktop using Bluetooth Low Energy.
Right now I'm using the notification example from https://pypi.org/project/pygatt/ (carefully replacing the MAC address and UUID of course).
The pygatt library runs gatttool under the hood, and is pretty flaky. Sometimes the example reports a single value before the program terminates. Sometimes it reports a spate of values and then hangs.
I was wondering if there were any alternatives to pygatt that were more robust?
gatttool is one of the eight tools that BlueZ deprecated.
BlueZ publishes an API using D-Bus and there are various D-Bus bindings for Python
For a BLE client you will need the following API parts of BlueZ:
https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/doc/adapter-api.txt
https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/doc/device-api.txt
https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/doc/gatt-api.txt
An example of how to do this with pydbus is at:
https://stackoverflow.com/a/63751113/7721752
There are also a number of other BLE Python libraries available on PyPI but not all of them built using the BlueZ supported D-Bus API.

Run Python online but share only the output [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 5 years ago.
Improve this question
I've seen this topic, but it doesn't really answer my question.
The question: Is there any way I can run my Python script (on 2.7) on a server/website (can be free or paid..or course free would be better), but without sharing the source code?
I would like to provide only the output of the script by sharing a link.
I already know some websites, such as www.pythonanywhere.com .
But on this website, I need to share the source code. I would need to protect the source, as it contains sensitive data.
If your Pyhton code contains sensitive data, you should not upload it to a server that you don't own.
So my best advice would be:
Get a server. That could be your desktop via some form of dyndns or an inexpensive virtual host.
Run your script in a Python framework. Common frameworks are Django, Pyramid, Flask. Or execute Python using mod_wsgi directly in apache.

Create standalone text application from Python [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 6 years ago.
Improve this question
I am developing a program to use as a pedagogical tool in my classroom. I'm writing currently writing it in Python, but I'm also open to solutions that would use C. I want to create a standalone application for Mac (.app file) for my program, but I only need text-based interaction with the users (i.e. just STDIN/STDOUT, and not a GUI). The majority of my students do not have python installed and have no experience with Terminal/shell scripting.
I tried using Platypus to create this application, but I get an error, as shown below.
I later realized that Platypus does not support prompts for user-input. Is there anything like Platypus that would also allow me to prompt users for input?
As I say, I'm also open to solutions to my problem which would involve transposing my Python code into C and going from there.
I don't know if you have thinking about make a web app, in Google App Engine for example is very simple to deploy a Python based web app really fast, using webapp2 for example. And all your students could use your app online, this is a good getting started. But if you want maybe you could to build a command line app deployed in some server and your students could connect with ssh to use it.
It depends what kind of systems your students have and it is highly unlikely that they will have similar kind of system. For least dependency i think you can use java to write your application. For java they just need to install jdk and can run your shared jar.

Python & Amazon EC2 -- Recommended Library? [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 7 years ago.
Improve this question
What is the recommended library for python to do everything that is Amazon EC2 related?
I came across boto and libcloud. Which one is easier to use? does libcloud offer the same functionality as boto?
The big advantage of libcloud is that it provides a unified interface to multiple providers, which is a big plus in my mind. You won't have to rewrite everything if you plan to migrate some instances to Rackspace later, or mix and match, etc. I haven't used it extensively but it looks fairly complete as far as EC2 goes. In boto's favor it has support for nearly all of Amazon's web services, so if you plan to be Amazon-centric and use other services you'll probably want to use boto.
That said, try both packages and see which you prefer.

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