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
9
votes
2 answers

Pyramid resource: In plain English

I've been reading on the ways to implement authorization (and authentication) to my newly created Pyramid application. I keep bumping into the concept called "Resource". I am using python-couchdb in my application and not using RDBMS at all, hence…
Mark
  • 2,137
  • 4
  • 27
  • 42
9
votes
2 answers

couchdb-python change notifications

I'm trying to use couchdb.py to create and update databases. I'd like to implement notification changes, preferably in continuous mode. Running the test code posted below, I don't see how the changes scheme works within python. class…
radpotato
  • 1,332
  • 1
  • 12
  • 20
4
votes
1 answer

How could I determine all possible keys of a CouchDB database?

I am creating one application where for every product I have one database and I will create different document based on date. The keys in documents could be different and depend upon user, what he provides. Assumption is user will keep giving same…
Gagandeep Singh
  • 5,755
  • 4
  • 41
  • 60
4
votes
0 answers

Access Futon via IP address of the remote instance

I've managed to install CouchDB onto a remote instance running Ubuntu, and can see that the DB is responding to my calls using curl (via the command line). Now, if I wish to access futon, I have to make calls by typing the command: ssh -i…
Michael Westen
  • 169
  • 2
  • 10
4
votes
2 answers

How to check if database already exists

I am writing a small Python program that loads some documents into couchdb. It would be very convenient to check whether a database with a certain name already exists, so I can either create a new one or open the existing one. What I want to do is…
arne.z
  • 3,242
  • 3
  • 24
  • 46
3
votes
1 answer

Managing users in _users with couchdb-python

I'm trying to store and retrieve user from the database _users using couchdb-python. I'm a beginner here with couchdb. I mapped the python class User with couchdb Document couchdb.mapping.Document like this: import couchdb.mapping as cmap class…
rdbisme
  • 850
  • 1
  • 13
  • 39
3
votes
1 answer

Is flush method missing in couchbase python client?

I did not find the flush button for bucket in couchbase admin UI at port 8091 .May be because of this http://www.couchbase.com/issues/browse/MB-5351 . Then I saw this How to delete all items in the bucket? so I wanted to do flush in python client…
Harish Kayarohanam
  • 3,886
  • 4
  • 31
  • 55
2
votes
1 answer

Rapidly decreasing insert speed in CouchDB

I am processing some input files and inserting the obtained records as CouchDB documents. I have noticed that the insert speed is decreasing in pace with database size increase. What I do is: Read data from input file Process the data to obtain the…
blueFast
  • 41,341
  • 63
  • 198
  • 344
2
votes
2 answers

Is there a way to get the time in milliseconds for an ad-hoc query against CouchDB using couchdb-python?

I'm using ad-hoc JavaScript map functions in couchdb-python through its query() function. Is there a way of getting the time the query takes to process? I've tried timing the script, but it's pretty obvious to me that the time I'm getting is not…
Robin
  • 193
  • 2
  • 9
2
votes
2 answers

Deleting all documents in CouchDB

I have a database and I want to truncate all records, I know it is possible to just add a _deleted key to every document or call db.delete() on CouchDB-python library. I am using the delete of couchdb-python but it does not seem to work when I fetch…
ellaRT
  • 1,346
  • 2
  • 16
  • 39
2
votes
2 answers

Couchdb, return number of Docs

How do I do this simple thing, I just want the number of documents in a database. So far I am using a loop function in python to do this, but it seems an incredible inefficient way of doing this. Fauton tells you at the bottom of the page how many…
iFunction
  • 1,208
  • 5
  • 21
  • 35
2
votes
1 answer

retrieving selected documents in couchdb

For example I have documents in couchdb which have the following Ids (1,2,3,4,...,n) and I want just to retrieve e.g. three Ids (2,4,7). Do I have to query each of them or can I pass anyhow an array with the ids ([2,4,7]) to the view?
user977828
  • 7,259
  • 16
  • 66
  • 117
2
votes
1 answer

CouchDB-Python retrieving documents

The following document is a small example and is stored in CouchDB. { "_id": "Test4", "referenceName": "refA", "positions": { "A": 422, "B": 5442 }, "details": { ... "infoA": "AQQ811P0", ... }, ... } Now…
user977828
  • 7,259
  • 16
  • 66
  • 117
2
votes
2 answers

Encoding curl-ready URL for CouchDB, with query options

I am using couchdb-python to access my CouchDB backend. Sometimes I want to know the URL that the library is accessing, in order to use curl or any other tool to access exactly the same URL. That is, I want to be able to copy/paste the encoded URL…
blueFast
  • 41,341
  • 63
  • 198
  • 344
1
vote
0 answers

Issue with Twitter API and streaming tweets using Tweepy and CouchDB

I've been trying to use Tweepy to stream tweets using the Twitter API and save them into a CouchDB database. However, the database remains empty, and no tweets are being saved. I've checked my Twitter API keys, access permissions, and the filter…
1
2 3 4 5 6