Закрыт

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

Навыки: Python, Linux, Ubuntu, PHP, Shell Script

О клиенте:
( 3 отзыв(-а, -ов) ) casablanca, Morocco

ID проекта: #34350806

11 фрилансеров(-а) готовы выполнить эту работу в среднем за $25

udayarpandey2022

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

$50 USD за 7 дней(-я)
(526 отзывов(-а))
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 за 1 день
(109 отзывов(-а))
6.5
(83 отзывов(-а))
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 за 1 день
(38 отзывов(-а))
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 Больше

$30 USD за 7 дней(-я)
(28 отзывов(-а))
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. Больше

$30 USD за 1 день
(17 отзывов(-а))
4.4
(10 отзывов(-а))
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 Больше

$15 USD за 1 день
(5 отзывов(-а))
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 Больше

$20 USD за 15 дней(-я)
(1 отзыв)
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 Больше

$20 USD за 7 дней(-я)
(0 отзывов(-а))
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 Больше

$30 USD за 3 дней(-я)
(0 отзывов(-а))
0.0