Skip to content

Sample running Gevent green Psycopg2 with a green connection pool over pypy.

Notifications You must be signed in to change notification settings

lvella/pypy-gevent-psycopg2-pool-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

You must install pypy 2.0+ (by yourself), then install psycopg2cffi:

    $ pip install psycopg2cffi

then install gevent by following instructions in here:

    https://github.com/gevent-on-pypy/pypycore/

then run (don't forget the GEVENT_LOOP environment variable):

    $ GEVENT_LOOP=pypycore.loop pypy sample.py dbname

where dbname is the name of local PostgreSQL database which you have
direct trust access.

Everything is easier done with virtualenv. Also, you may need the development packages of the dependencies:

    * libev-dev
    * libpq-dev

About

Sample running Gevent green Psycopg2 with a green connection pool over pypy.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages