Đã Đóng

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

Kĩ năng: Python, Linux, Ubuntu, PHP, Shell Script

Về khách hàng:
( 3 nhận xét ) casablanca, Morocco

ID dự án: #34350806

11 freelancer chào giá trung bình$25 cho công việc này

udayarpandey2022

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

$50 USD trong 7 ngày
(526 Nhận xét)
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 trong 1 ngày
(109 Nhận xét)
6.5
(83 Nhận xét)
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 trong 1 ngày
(38 Nhận xét)
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 Thêm

$30 USD trong 7 ngày
(28 Nhận xét)
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. Thêm

$30 USD trong 1 ngày
(17 Nhận xét)
4.4
(10 Nhận xét)
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 Thêm

$15 USD trong 1 ngày
(5 Nhận xét)
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 Thêm

$20 USD trong 15 ngày
(1 Nhận xét)
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 Thêm

$20 USD trong 7 ngày
(0 Nhận xét)
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 Thêm

$30 USD trong 3 ngày
(0 Nhận xét)
0.0