Javatpoint Logo
Javatpoint Logo

Python CouchDB Connectivity

To connect with CouchDB by using the Python. We must have the following packages installed.

  • Python interpreter
  • CouchDB database
  • python-couchdb driver

We are executing this example in Linux (Ubuntu 16.04). this example includes the following steps.

1) Install python-couchdb driver

CouchDB Phython couchdb connectivity 1

2) Start MongoDB Service

CouchDB Phython couchdb connectivity 2

3) Create a Python Script

CouchDB Phython couchdb connectivity 3

// python-couch-connectivity.py

4) Access CouchDB

Follow this URL http://localhost:5984/_utils to access the database on localhost.

CouchDB Phython couchdb connectivity 4

5) Execute Python Script

CouchDB Phython couchdb connectivity 5

6) Access Created Database

CouchDB Phython couchdb connectivity 6

See, the stored value.

CouchDB Phython couchdb connectivity 7
Next TopicNode.js CouchDB




Help Others, Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA