GEvent Couchbase SupportΒΆ

The gcouchbase module offers a complete API which is fully compatible with the couchbase.connection.Connection API, but is fully aware and optimized for the gevent Hub.

Currently, this has been tested with gevent version 0.13 and 1.0.0.

As the gcouchbase implementation relies on gevent internal APIs itself there may be incompatibilities between minor gevent releases, although this is not expected.

Example usage:

from couchbase import experimental

from gcouchbase import GConnection
cb = GConnection(bucket='default')

# Like the normal Connection API
res = cb.set("foo", "bar")
res = cb.get("foo")

viewiter = cb.query("beer", "brewery_beers", limit=4)
for row in viewiter:
    print("Have row {0}".format(row))

Previous topic

Twisted Couchbase Library

This Page