Book Image

Couchbase Essentials

Book Image

Couchbase Essentials

Overview of this book

Table of Contents (15 chapters)
Couchbase Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Couchbase Python SDK


The Couchbase Python SDK is a Python library wrapping the Couchbase C SDK. Before installing this library, the C library must be installed.

Current version

Currently, the latest version is 1.2. This SDK should be used for all development against Couchbase Server versions from 2.5 to 3.x.

How to obtain it

Python users can obtain the Couchbase Python SDK through the pip package manager as follows:

$ pip install couchbase

The SDK team publishes binaries, which may be found at https://pypi.python.org/pypi/couchbase#downloads. The source code for the library is available on GitHub at https://github.com/couchbase/couchbase-python-client.

The basics

The following snippet demonstrates the basics of using the Couchbase PHP SDK:

client = Couchbase.connect(bucket='default', host='localhost')