Skip to main content

PasteGevent

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

Configuration

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

[server:main]
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:

[server:main]
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:

[server:main]
use = egg:pastegevent#gevent

and patch DNS yourself in application factory:

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

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

Metadata

Release files for pastegevent 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pastegevent 0.1
File Size Uploaded Provenance Actions
pastegevent-0.1.tar.gz 1.8 kB Without provenance Details for pastegevent-0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pastegevent 0.1
File Interpreter ABI Platform Actions
pastegevent-0.1-py2.6.egg Legacy Egg format - - Details for pastegevent-0.1-py2.6.egg

Total release size: 4.8 kB

Release files / pastegevent-0.1.tar.gz

Download URL pastegevent-0.1.tar.gz
Size 1.8 kB
Tags Source
SHA-256 checksum
How to use checksums
bbcfa32358e44d21607260073f8aa577978decc53e01c35558e384721fd2e76b
BLAKE2b-256 checksum
How to use checksums
e6b8e742b553f167ddfa0b05a04c6fbb18052e499560dab46fb3096ff9513133
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pastegevent-0.1-py2.6.egg

Download URL pastegevent-0.1-py2.6.egg
Size 3.0 kB
Tags Egg
SHA-256 checksum
How to use checksums
01c74da9a662151bb3b9aae9482566cbe540db4991762f1d7209774cf788126e
BLAKE2b-256 checksum
How to use checksums
10edb1bdb56081fa9966f270adde00be7a5370a106096a6a1819a1b57175c4f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pastegevent 0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page