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

CouchDB permanent authentication key

We're moving and updating our database because it's due for it, but we have an issue concerning authentication. We'd like to connect to the database only with an authentication key. Our old CouchDB were not using any user and all the databases were…
0
votes
1 answer

exporting data in couchdb when using view

so I am new in CouchDB and I was trying to write some python program that will upload a JSON file, upload a VIEW, and return me the values in an array. I wrote the view as if(doc['city.berlin']) emit(doc['city.berlin'], doc['city.berlin']) So…
WestCoast
  • 39
  • 1
  • 8
0
votes
2 answers

couchdb primary key workaround

I am looking for a workaround for primary key feature in couchdb. I am saving doc in json format to couchdb externally. Is there any simple way to check if value of a particular field exists?
user4497207
0
votes
2 answers

Slow down when trying to copy database to new database

I am trying to transfer all the documents out of my large couchdb db, and appear to hit a serious slow down shortly after starting. The request being used to get the documents is: url =…
nicholas.reichel
  • 2,260
  • 7
  • 20
  • 28
0
votes
1 answer

How to disable read permission on couchdb database

The problem is I have multiple couchdb local clients databases say A_db, B_db, C_db which is replicating to a couchdb server master database says server_db. Now each client is creating a document say A_doc, B_doc, C_doc in their local db which…
0
votes
2 answers

Is there good way to backup and delete and backout the document from couchdb?

I have some couchdb document need to be removed, Is there good way/steps to backup and delete and backout those document from couchdb?
Jamesjin
  • 371
  • 2
  • 6
  • 15
0
votes
1 answer

CouchDB Returning None for Row Key (reduce function)

I have a map function and reduce function to count all the occurrences of a key. The code is below for CouchDB 2.0 design document: Map Function function(doc) { emit(doc.domainID, 1); } Reduce Function _sum Here is a snapshot of what the browser…
Brian
  • 421
  • 3
  • 20
0
votes
1 answer

Error: not found - missing when clicking on DB (Couchdb)

I am trying to view a Couchdb database in the browser named event_db. However, when I navigate to the following url: http://localhost:5984/_utils/database.html?event_db I get the an Error: not found missing and my url automatically redirects to…
Brian
  • 421
  • 3
  • 20
0
votes
0 answers

Will CouchDB accept the largest possible file that could reside in a FAT32 fs?

https://stackoverflow.com/a/24222187/4240261 Will I be able to upload as an attachment the largest possible file (¿ ~4GB) that could fit in the FAT32 limit to my CouchDB database, or for such files I will have to use, for example, a single-node…
Mika Feiler
  • 474
  • 3
  • 17
0
votes
0 answers

Resource Conflict after syncing with PouchDB

I am new to CouchDB / PouchDB and until now I somehow could manage the start of it all. I am using the couchdb-python library to send initial values to my CouchDB before I start the development of the actual application. Here I have one database…
0
votes
1 answer

is there a way to clear duplication record from results?

I have a view but did have duplicated documents from the results of view as like following, how can I get the duplicate results and get the unique? thank you in advance { "total_rows": 9, "offset": 0, "rows": [ { "id": "xxxx", …
Jamesjin
  • 371
  • 2
  • 6
  • 15
0
votes
1 answer

Couchdb-python: How can I call functions in map_reduce function?

I want to call some functions but I don't know how to import the package. I tried like follows but it failed. How can I do? (I want to use some third-party package to analyzing each doc, the code below is just a test) Please, if you know the…
Jo Yang
  • 1
  • 2
0
votes
1 answer

Not able to store tweets in CouchDB

I retrieved user information using api.followers in tweepy and am trying to store them in couchDB, but I keep getting this error message "u'doc validation, u'Bad Special document member" _json". def save_user(self, u): temp =…
0
votes
2 answers

Map and reduce functions in CouchDB-Python

How is it possible to use map and reduce functions in CouchDB-Python, because the below code does not return anything? Is it also possible to disable reduce function if it is not needed? import couchdb # $ sudo systemctl start couchdb #…
user977828
  • 7,259
  • 16
  • 66
  • 117
0
votes
1 answer

Is it necessary to create all combination a separately view in CouchDB

I have the following documents in CouchDB stored: { "_id":"1", "_rev":"1-e3ff3eb51ccf90e0446ef086fcc6a06c", "sub_name":"A01", "type":"Test", "name":"A", "pos":828288 }{ "_id":"2", "_rev":"1-e3ff3eb51ccf90e0446ef086fcc6a06c", …
user977828
  • 7,259
  • 16
  • 66
  • 117