How do I connect to a password protected bucket?


#1

I’ve been writing a small app (in this case, a utility tool) that uses the Python client library version 1.0.0-beta on Windows. One thing I’m wondering is how to connect to a password protected bucket.


#2

The answer lies in the Connection object returned by the Couchbase class.

connect(bucket=‘mybucket’, password=‘mypassword’)