Search:

Search all manuals
Search this manual
Manual
Membase and Python Development Tutorial
Additional Resources
Community Wiki
Community Forums
Couchbase SDKs
Parent Section
Membase and Python Development Tutorial
Chapter Sections
Chapters

6. VBucketAwareCouchbaseClient

The main object is accessed by importing from its parent objects as follows:

from couchbase.couchbaseclient import VBucketAwareCouchbaseClient

This makes the VBucketAwareCouchbaseClient available for client connections with a variety of settings. The basic syntax can be described as shown in this example:

v = VBucketAwareCouchbaseClient(url, bucket, password, verbose=False)
...
v = VBucketAwareCouchbaseClient("http://localhost:8091/pools/default","default","",False)

For any buckets other than the "default" you will need to also include a password, which is left blank "" in the above example. The "verbose" option will print out more information about your connection when your script runs.