This article assumes that you have a working Python installation and a running Couchbase server. The Couchbase server can be local or remote but a local example will be used in the tutorial. The Couchbase Python module must also be installed, as described below. You will also need the python-nmap module for giving access to the network monitoring tools you will use.
In order to follow along in this tutorial you need the following items to be installed and functional:
Python 2.6 or higher
Python Couchbase SDK, or module
python-nmap module installed, from http://xael.org/norman/python/python-nmap/
This section assumes that you have installed Couchbase Python SDK and you have installed the Couchbase server on your development machine. We assume you have at least one instance of Couchbase Server and one data bucket established. If you need to set up these items in Couchbase Server, you can do with the Couchbase Administrative Console, or Couchbase Command-Line Interface (CLI), or the Couchbase REST-API. For information and instructions, see:
After you have your Couchbase Server set up and you have installed the Couchbase SDK, you can compile and run the following basic program.