Search:

Search all manuals
Search this manual
Manual
Couchbase Client Library: Python 1.0
Community Wiki and Resources
Download Client Library
Python Client Library
SDK Forum
Additional Resources
Community Wiki
Community Forums
Couchbase SDKs
Parent Section
2 Tutorial
Chapter Sections
Chapters

2.5. 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.