Skip to main content

Couchbase Connect Base

Project description

Couchbase Quick Connect for Python 1.0.0

Couchbase connection manager. Simplifies connecting to a Couchbase cluster and performing data and management operations.

Installing

$ pip install cbcbase

API Usage

Connecting to a Couchbase collection, creating the bucket, scope, and collection if they do not exist.

session = (CBSession(hostname, username, password)
                   .session()
                   .connect_bucket(bucket, ram_quota=256, replicas=1, create=True)
                   .connect_scope(scope, create=True)
                   .connect_collection(collection, create=True))

Connecting to an existing Couchbase collection.

session = (CBSession(hostname, username, password)
                   .session()
                   .connect_bucket(bucket)
                   .connect_scope(scope)
                   .connect_collection(collection))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cbcbase-1.0.0.tar.gz (6.3 kB view hashes)

Uploaded Source

Built Distribution

cbcbase-1.0.0-py3-none-any.whl (7.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page