This repository has been archived by the owner on Aug 7, 2023. It is now read-only.
Cherrypy support #748
Unanswered
Andrewxx93
asked this question in
General
Replies: 1 comment 1 reply
-
if it is wsgi complient, then probably. try to get the wsgi object and call it # file: main.py
import cherrypy
# Our CherryPy application
class Root(object):
@cherrypy.expose
def index(self):
return "hello world"
cherrypy.config.update({'engine.autoreload.on': False})
cherrypy.server.unsubscribe()
cherrypy.engine.start()
app = cherrypy.tree.mount(Root()) I did not test this code but give it a try yourself. if you're starting a new project, I recommend using a modern framework like Starlette or FastAPI. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi to all, is Cherrypy framework supported in deta.sh ? Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions