This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

With pastegevent package you can run your WSGI applications on top of gevent’s high performace HTTP server.


Just use egg:pastegevent#gevent as use directive value of your server configuration section:

use = egg:pastegevent#gevent

If you need to pastegevent to monkey patch stdlib modules for you, use egg:pastegevent#gevent_patched. This will monkey patch all, except DNS subsystem:

use = egg:pastegevent#gevent_patched

But no DNS patching is performed due to inability to reinitialize libevent’s DNS subsystem after forking.

Using of asynchronous DNS resolving with evdns

If your application relies heavy on asyncronous DNS resolving, you probably still need to patch stdlib to use evdns to resolve domain names. Fortunately there are few steps to workaround issue with evdns initialization.

First thing to do is to be sure not not make any network interactions before server startup, so libevent (and its DNS subsystem in particular) will be not be initialized before daemonization. That means no network code in WSGI application factory.

Then you should configure server to use non-patched version of gevent server factory:

use = egg:pastegevent#gevent

and patch DNS yourself in application factory:

def app(global_config, **settings):
    from gevent.monkey import patch_all
    return wsgi_app

Now your application can take the advantages of asyncronous DNS resolving.

Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pastegevent-0.1-py2.6.egg (3.0 kB) Copy SHA256 Checksum SHA256 2.6 Egg Feb 14, 2010
pastegevent-0.1.tar.gz (1.8 kB) Copy SHA256 Checksum SHA256 Source Feb 14, 2010

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting