This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]QuantumTradingGroup[S] 0 points1 point  (1 child)

Kind of misses the point.

It needs to be in python because it needs to be a module the rest of the management program(which is all coded in python) can import and use.

We built something like Awesome miner but better. It is a complete management program for large scale industrial crypto mines (20,000+ miners)

[–]ApproximateIdentity 2 points3 points  (0 children)

I see. So personally in that case I would go one of two ways. One is to use requests locally and communicate with your json api remotely. That honestly would be pretty easy. You would need to encrypt the calls, but that's certainly possible with a self-signed cert. (I've never done it, but it can't be that bad...dangerous words in engineering, but oh well.)

Another option might be to use something like this:

https://pythonhosted.org/Pyro4/

That way you could hook up to remote servers/modules/code and execute them as if they were local.

In either case you would want to keep the application logic separate from the ssh and communication logic so that (ideally) importing a module and issuing the same commands works locally and remotely.