how I can use cherrypy together with sqlalchemy. And how I can guarantee the thread-safety of the cherrypy engine?
Asked
Active
Viewed 93 times
-5
-
Hi @Markus, welcome to **StackOverflow**, you may take a look to ["how to ask"](https://stackoverflow.com/help/how-to-ask) to improve this and future questions. Specially you should provide some ["research effort"](https://meta.stackoverflow.com/questions/261592/how-much-research-effort-is-expected-of-stack-overflow-users) and/or some code, to prove you already tried to solve the problem by yourself. – Luis Miguel Mejía Suárez Nov 22 '18 at 00:22
1 Answers
0
You can use CherryPy SQLAlchemy PyPI link it uses a CherryPy plugin and tool, that wraps over the SQLAlchemy sessions. The thread safety comes by the fact it wrap over the SQLAlchemy scoped_session.

cyraxjoe
- 5,661
- 3
- 28
- 42