O'Reilly logo

OpenShift Cookbook by Shekhar Gulati

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using Gevent with Python applications

So far in this chapter, you have used Apache with mod_wsgi to run your Python applications. It is also possible to run other standalone WSGI servers, such as Gevent and Gunicorn, with OpenShift. In this recipe, you will learn how to use Gevent to run your Python applications. Gevent is a coroutine-based Python networking library that uses greenlet to provide a high-level, synchronous API on top of the libevent event loop. The source code for this repository is on GitHub at https://github.com/OpenShift-Cookbook/chapter8-gevent-recipe.

Getting ready

This recipe is based on the assumption that you have read the previous recipes in this chapter. To step through this recipe, you will need the rhc command-line client ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required