Lets say I have a python script that makes an http request and prints the response code to the screen and exits.
# check_app_status.py
import requests
r = requests.get("https://someapp.com")
print r.status_code
Now i can run it by
$ python check_app_status.py
200
What do I need to set up to be able to run it like this
$ check-app
200