Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Client in python for CouchDB

Project Description

Simple Python API for CouchDB

Python library for easily manage CouchDB.

Compared to ordinarily available libraries on web, works with the latest version CouchDB - 1.2.1


> Create a new database on the server

> Deleting a database from the server

> Listing databases on the server

> Database information

> Database compression

> Create map view

> Map view

> Listing documents in DB

> Get document from DB

> Save document to DB

> Delete document from DB

> Editing of a document

example of use

from spycouch import *

couch = Couch(‘localhost’)


print couch.list_of_dbs()

print couch.info_db(“test-db”)


document = ‘{“code” : “null”}’

couch.save_doc(“test-db”, document, “foo”)

couch.save_doc(“test-db”, document, “bar”)

print couch.list_of_docs(“test-db”)

couch.save_doc(“test-db”, document)

print couch.list_of_docs(“test-db”,”limit=1”)

print couch.open_doc(“test-db”, “foo”)

couch.delete_doc(“test-db”, “foo”)

document = {“code”:”err”}

couch.update_doc(“test-db”, document, “bar”)

map_funcs = {}

map_funcs[“err”] = “function(doc) {if (doc.code == ‘err’) emit(doc._id, null)}”

map_funcs[“code”] = “function(doc) {if (doc.code == ‘null’) emit(doc._id, null)}”

couch.create_view(“test-db”, “javascript”, “test-db-view”, map_funcs)

print“test-db”, “test-db-view”, “err”, 5)


> name: Simple Python API for CouchDB

> autor: Černý Jan

> version: 0.1

> license: viz. LICENSE

Release History

This version
History Node


Download Files

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

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(4.3 kB) Copy SHA256 Hash SHA256
Source None Apr 11, 2013

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Kabu Creative Kabu Creative UX & Design Google Google Cloud Servers Fastly Fastly CDN StatusPage StatusPage Statuspage DigiCert DigiCert EV Certificate