a library provided by cloudant for python users to access the Cloudant DB as a Service API
Questions tagged [python-cloudant]
27 questions
3
votes
1 answer
CouchDB write/read only (no edit) user
Toolchain/frameworks
I'm using django==2.1.3 and python-cloudant==2.1.3 and running CouchDB ver. 2.2.0, and pretty much doing all of my setup/configuration through Fauxton. I like to think that I know my way around python/django in general, and I'm…

robotHamster
- 609
- 1
- 7
- 24
3
votes
0 answers
python-cloudant document update error handling
i've just started using the python-cloudant library for my couchdb related database queries. I implemented a module for database connection. However i'm not sure how to use the python-cloudant errors documentation to help me tell when an operation…

Isaac Obella
- 2,613
- 2
- 16
- 29
2
votes
1 answer
Cloudant database listener in python
I'm trying to create a listener in python that automatically retrieve changes on a Cloudant database as they occur. When a change occurs I want to call a specific function.
I have read through the documentation and the API-specifications but…

Johan
- 55
- 5
2
votes
1 answer
how to make cloudant pick a .pac file?
In my python (2.7) application I make use of a Cloudant database as follows:
from cloudant.client import Cloudant
client = Cloudant('XXX', 'YYY', account='ZZZ')
client.connect()
my_db = client['my_database']
for doc in my_db: print doc
The…

Bill Bridge
- 821
- 1
- 9
- 30
2
votes
2 answers
Using a document context manager, what is the behaviour if a document doesn't exist?
The python-cloudant library has a context manager to simplify working with documents:
# Upon entry into the document context, fetches the document from the
# remote database, if it exists. Upon exit from the context, saves the
# document to the…

Chris Snow
- 23,813
- 35
- 144
- 309
1
vote
1 answer
python cloudant couchDB SSL verification Failed
I'm trying to connect to a remote couchDB server through python-cloudant, this server uses an SSL certificate.
I can't get access to the server as I think it fails to capture the certificate on my macOS.
from cloudant.client import Cloudant
from…

Othmane Chentouf
- 21
- 4
1
vote
0 answers
How to upload data to the IBM IoT Platform and Cloudant Database using HTTP APIs?
I am trying to upload my sensor data to the IBM IoT Platform and Cloudant database using https API.
The command I use is
curl -X POST…

Aileen
- 11
- 3
1
vote
1 answer
How do I make a query in cloudant-python selecting an specific field?
I'm trying to make a query that selects only one of the fields/attributes. The query should result in something like an array of a nameField or a numberField, or even a single variable, what I want is to separate the values so I can manipulate it in…

Nattelar
- 13
- 4
1
vote
3 answers
ImportError: No module named 'cloudant.client'; 'cloudant' is not a package
I use Python 3.5 and I have installed cloudant package by an execute command:
sudo -H pip3 install cloudant
I try to connect with python database. According to the documentation -…

Tomasz
- 21
- 4
1
vote
2 answers
How to do unauthenticated access using python-cloudant
I am getting used to using python-cloudant for authenticated access to Cloudant databases but want to do unauthenticated access from a Python script. I set up unauthenticated read access to one of the databases for my account and can read documents…

John
- 309
- 2
- 11
1
vote
1 answer
Cloudant Custom Sort
I have my data as follows
{
"key":"adasd",
"col1"::23,
"col2":3
}
I want to see the results sorted in descending order of the ratio of col1/sum(col2)
where sum(col2) refers to the sum of all values of col2. I am a bit new to cloudant…

AbtPst
- 7,778
- 17
- 91
- 172
0
votes
0 answers
Authenticating with IBM Cloudant DB with API Key fails
I've got a database set up on IBM Cloudant. I'm trying to access it with serverless actions elsewhere on IBM Cloud. Cloudant is configured with an API Key and password combo to give the user read/write/replicate access. The docs here say to…

Isaac
- 334
- 1
- 4
- 12
0
votes
0 answers
Cloudant Change Feed missing documents
We are trying to replicate data from IBM cloudant instance and it appears that it is missing some documents. The python code is fairly simple
feed = changes(feed='continuous', include_docs=True, since=<<>>,filter=filter,)
The size of the database…

postgresuser
- 33
- 5
0
votes
1 answer
Bulk upload data to cloudant or any efficient way of uploading data to cloudant using python?
I have been using the below script for uploading the data to do load testing of my module:
import json
import ast
import pandas as pd
import sys
import cloudant_connection as cloud
df = pd.read_csv("./deviceId_data/device_starts_"+ sys.argv[1] +…

tblaze
- 138
- 10
0
votes
1 answer
Python cloudant query "_id" by regex
I am new to ibm cloudant and I am using the python API for cloudant for my web application.
Is there any way I can retrieve documents from my couch database hosted on IBM cloudant instance using regex on "_id"?
I've read the python-cloudant…

Jor_El
- 187
- 8