Encerrado

Create API request for my vps script

Hello everyone

I have a python script located on my VPS

and in order to run it I use the following code on my python script :

import paramiko

cmd = ("/home/dist/dist/mysoftware")

ssh=[login to view URL]()

ssh.set_missing_host_key_policy([login to view URL]())

[login to view URL]("myvpsip",22,'root','mypassword')

stdin,stdout,stderr=ssh.exec_command(cmd)

outlines=[login to view URL]()

print(outlines)

Is it possible to create an API or something like that, so instead of doing all this, I just want a "link" or request, so I could run the software like this :

import requests

url2 = "myip (or domain name)/apikey/home/mysoftware"

r = [login to view URL](url=url2)

print(r)

Thanks

Habilidades: Python, Linux, Ubuntu, PHP, Shell Script

Sobre o Cliente:
( 3 comentários ) casablanca, Morocco

ID do Projeto: #34350806

11 freelancers estão ofertando em média $25 nesse trabalho

udayarpandey2022

Greetings! I can help you with the python script. Thank you

$50 USD in 7 dias
(526 Comentários)
7.2
websolupro

Hi I will configure a simple HTTP server within Python and you can invoke it from outside with a public URL http://yourip On couple of hours required to set this up for you Lets get this done

$25 USD em 1 dia
(109 Comentários)
6.5
(83 Comentários)
6.0
gattes

Hi there, I have over 10 years work experience with linux and python and can deifnitely create this route for you so I can definitely help you out with this. Ping me I have immediate availability. Cheers!

$30 USD em 1 dia
(38 Comentários)
5.2
mankit121

Hi there I have read your requirement , and this is doable. All we need an root access to your vps and this will be done by making a simple php script or simple cgi script. Ping me to discuss this further. Regards A Mais

$30 USD in 7 dias
(28 Comentários)
4.8
parthjaviya098

Hello, I have gone through your requirements. I can build API with python to execute your script through GET request. I can deliver it within few hours. So let us discuss more details about task in chat. Mais

$30 USD em 1 dia
(17 Comentários)
4.4
(10 Comentários)
3.7
taimourhadi

Hi, I have experienced python developer with multiple year of experience in developing APIs in python flask and Django. I also have worked with paramiko module and can help design your API immediately. More detailed di Mais

$15 USD em 1 dia
(5 Comentários)
3.8
hnutovkyryll

Hi, there. Looking through the job description, it seems that you're looking for a savvy senior web developer. I have expertise in the tech stacks that your project requires, so I am pretty much intereste Mais

$20 USD in 15 dias
(1 Comentário)
1.4
Intileo360

Hi, I'd be happy to help you with your requirement Create API request for my vps script, I have a good amount of knowledge, with 5+ years of experience in the same field. I can start ASAP. I will provide you with top-n Mais

$20 USD in 7 dias
(0 Comentários)
0.0
topgradeclubltd

Hi, Greetings and hoping you are doing well, i welcome you to my profile where quality and client satisfaction is the Priority. I am Expert DOMINIC and i hope to cooperate with you on your project. CERTIFIED EXPERT IN Mais

$30 USD in 3 dias
(0 Comentários)
0.0