CherryPy is a pythonic, object-oriented HTTP framework.
CherryPy stands on its own, but as an application server, it is often located in shared or complex environments. For this reason, it is not uncommon to run CherryPy behind a reverse proxy or use other servers to host the application.
https://docs.cherrypy.dev/en/latest/deploy.html
__________________________________________________________________________________________________________________
Testing Environment: Ubuntu 24.04.3 LTS Hostname - jitsi.tutorial.com ip Address -
__________________________________________________________________________________________________________________
apt update ; apt install build-essential net-tools curl git software-properties-common python3-venv python3-pip
mkdir environment ; python3 -m venv environment
cd environment/bin ; source activate
pip3 install cherrypy
nano ./my_python_script.py
import cherrypy
class HelloWorld(object):
@cherrypy.expose
def index(self):
return "Hello world!"
if __name__ == '__main__':
cherrypy.quickstart(HelloWorld())
python3 ./my_python_script.py
__________________________________________________________________________________________________________________
Thursday, April 2, 2026
How To run CherryPy Framework Ubuntu 24.04.4 LTS
Subscribe to:
Comments (Atom)