Can i create a couchbase cluster with python client?

I know that i can create a bucket with the python client, like this:

from couchbase.admin import Admin
adm = Admin(‘user’, ‘password’, host=‘couchbase’, port=8091)
adm.bucket_create(‘new-bucket-name’, bucket_type = ‘couchbase’, ram_quota=994)
adm.wait_ready(‘new-bucket-name’, timeout=30)
adm.bucket_remove(‘new-bucket-name’)

my question is, can i create a couchbase cluster with python client? something like the bucket creation?

Thanks…

Hi,

It’s currently not possible to programmatically set up a cluster using the Python client. I will bring this up with the SDK team as a potential feature for version 3, but in the meantime, you can use the REST API or the CLI tools mentioned here: https://docs.couchbase.com/server/6.0/install/init-setup.html

Hope that helps,

Ellis

1 Like