Questions tagged [couchdb-python]

couchdb-python is a Python library for interfacing with the document-oriented, CouchDB NoSQL database.

couchdb-python consists of four main modules:

  1. couchdb.client, which contains code for interfacing with the CouchDB server
  2. couchdb.design, which enables creation and modification of design documents
  3. couchdb.mapping, a helper module that maps between CouchDB and Python objects and
  4. couchdb.view, a view server that allows one to write view functions in Python rather than the standard JavaScript.

You can find more information from the couchdb-python website or browse the documentation.

79 questions
0
votes
1 answer

Why does CouchDb-python (or do I) confuse strings and dictionaries?

I'm trying to use the Python wrapper for CouchDB to update a database. The file is structured as a nested dictionary as follows. doc = { ..., 'RLSoo': {'RT_freq': 2, 'tweet': "They're going to play monopoly now. This makes me feel like an…
mac389
  • 3,004
  • 5
  • 38
  • 62
0
votes
2 answers

Uniqueness of a tuple in couchdb query

I am trying to make a query which I haven't been able to yet. My permanent view function is following: function(doc) { if('llweb_result' in doc){ for(i in doc.llweb_result){ emit(doc.llweb_result[i].llweb_result, doc); …
Shnkc
  • 2,108
  • 1
  • 27
  • 35
0
votes
1 answer

couchdb-python: the rev attribute of couchdb.mapping.Document class is read-only

I'd like to know why the rev property of the couchdb.mapping.Document class is read-only attribute. Even id attribute can be set, and I need in my project to create a new Document with rev, which I obtain from CouchDB view. I know that rev is…
ady
  • 1,108
  • 13
  • 19
-1
votes
1 answer

How should I use CouchDBs views in Flask proper

I'm using Flask and CouchDB. I've mapped a file document to a file object. class File(Document): name = TextField() conten = TextField() In my Flask Blueprint I want to return all files. How do I do that. I know that I've to write a view…
OrangeTux
  • 11,142
  • 7
  • 48
  • 73
1 2 3 4 5
6