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'm basically looking for something like picloud.com (shut down last year) but that is able to run on my own cluster of servers.
I'd imagine some kind of server running on each of the grunt work servers and when a python code is run on my main server, it should send the job to a work server that is not "filled".
The load balancing should come at a later stage, right now what I need is a way to run local python code on the remote server I define.
Try RPyC.
From the site:
RPyC (pronounced as are-pie-see), or Remote Python Call, is a transparent python library for symmetrical remote procedure calls, clustering and distributed-computing. RPyC makes use of object-proxying, a technique that employs python’s dynamic nature, to overcome the physical boundaries between processes and computers, so that remote objects can be manipulated as if they were local.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
The community reviewed whether to reopen this question last year and left it closed:
Original close reason(s) were not resolved
Improve this question
I am running a Server hosting my iPhone messaging app. To control this Server, I have coded a python script which controls the Server through the Localhost IP and Port 80. Now, I wish to control the Server remotely, for which I have to create an access mechanism where either by hosting Python script on Cloud, which may be directly connected to the Messaging Server on my Computer, or let both Server and Script reside on my computer while I can access the script remotely.
I have temporarily hosted a FB app on pythonanywhere for free and it worked like a charm.
In case you plan to use Django, the version they offer usually lags behind.
In that case, I'd higly recommend using Openshift, by RedHat.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I may be too ambitious and what I am trying to accomplish May not even be possible using twisted, but I would like to develop an application using Twisted that does all of the following.
Run an SFTP server
Run an FTPS server
Run an HTTPS server (web UI for transferring files)
All of these protocols will share a single database for user authentication.
I would also like to create a scheduler that can trigger files transfers on some time interval.
This framework seems limitless when reading through the docs on the site, but it's hard for me to dive in and figure out if Twisted is capable of doing all of the above without knowing it inside and out.
I am still going through the examples on their site and it seems like there is a steep learning curve to really grasping how to do these things.
I would appreciate any feedback or pointers on how to accomplish this, if it's possible.
Yes, it absolutely can.
From a Twisted perspective, there is a support for pretty much everything you ask for - SFTP, FTPS, HTTPS and scheduling.
When it comes to database integration, I would use standard Python db libraries. I don't think you need anything special from Twisted for that.
Scheduled tasks could be accomplished through either Python scheduler libraries or using Twisted's reactor framework.
Regarding the SFTP, FTPS and HTTPS:
SFTP server can be implemented using Twisted Conch. Documentation is little bit skimpy, but yes you can do it.
Take a look at this source code and look for the implementation of class SFTPServerForUnixConchUser.
FTPS is, to the best of my knowledge, a matter of using a third party package.
HTTPS is a mainstream.
Here is an officially documented setup.
(I suspect that my answer will become obsolete in a year when all these features get incorporated into a main release.)
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a book, tool, software library, tutorial or other 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 want my Python code to connect to my SQL server. Everything I find on Google is for Python 3.2 or older. Is there any possibility that I can connect to a MySQL server without installing anything? And if not, is there something compatible with Python 3.4?
You can use mysql connector python or you can install it from pip from pypi
See the reference here
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 looked up myne and mc3p, but those didn't even work with my old copy of Minecraft 1.8. If there is some module that allows me to communicate with a minecraft server as if my program was the Minecraft client. If it is available, I could settle for a module that allows you to simulate a Minecraft server and have minecraft client connect to it. I tried to implement my own using the socket module and the struct module, but I am bad at both. I have Python 2.5 with Windows XP. Thanks!
This site has a list of client implementations. From that, I saw the following clients that were implemented in Python:
Twisted Bot
pyCraft
esbot
mcclient
Keep in mind that the Minecraft server is not designed for 3rd party clients to connect to it: the client/server protocols are not an open spec that Mojang freely supports others to use. It just so happens that the Mojang doesn't typically come down hard on 3rd party mods (in fact, they hired some 3rd party modders). Mojang is still in development of their official modding APIs, and so any library created now that interfaces with Minecraft can only be supported as well as the library author can reverse-engineer the Minecraft system, and keep up to date with changes in Minecraft.
Because of this, expect the libraries you find to be error-prone or have difficulties working on different versions of Minecraft.
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 need to create a simple server/daemon which just waits for commands, (maybe queues them up), and executes other commands based on the received input. Here are more detailed requirements:
Should be in Python since I need to use some other Python code I wrote for it.
Needs to work on at least Linux and Windows (Will be running as an init.d service on Linux and
as a Windows Service on Windows)
Communication medium should be as simple as possible and hopefully commands can be sent to the server from a batch script
Commands come from the same machine. Performance isn't important.
Installation on Windows (including all the libraries needed to send a command to the server from a script) should be simple. If everything can be wrapped into a single .exe all the better.
What's the best stack to use for this? I have only a few vague ideas:
CherryPy (Windows doesn't have cURL though, ugh...)
dbus and windbus (never used these before...)
In my experience (and I've implemented three or four applications similar to what you've described), all things created equal, and I've found it simplest to go with a subclass of SocketServer.TCPServer and implement my own, simple, command system. This gives you full control over the details (need streaming? No problem; need stateful connections? No problem), and isn't all that tricky given some basic knowledge of how sockets work.
On Windows, I understand that py2exe does a good job.
A couple alternatives/tools you might want to consider:
SimpleXMLRPCServer and xmlrpclib — if you can live with the constraints imposed by HTTP + XMLRPC (stateless, streaming is tricky) this will get you up and running in about 5 minutes. Also note that the SimpleXMLRPCServer is single-threaded. It's possible to make it multi-threaded (or multi-process, or whatever), but that will take a little bit of work.
On Linux, python-daemon is a possibility for daemonizing, but I've usually found start-stop-daemon to be simpler (if it's available on your platform)
Is it possible to run a Python script as a service in Windows? If possible, how? should help you running the script as a service.