> But, I see they say its an interface for cloudant or couchDB

Absolutely, see my last email about passing the uri to Account.

>
>
> https://pypi.python.org/pypi/cloudant/0.5.6
>
>
>
>
>
> -----Original Message-----
> From: Mike Marino [mailto:[email protected]]
> Sent: Thursday, March 20, 2014 12:58 PM
> To: [email protected]
> Subject: Re: using python-cloudant to connect to couchDB
>
>
>
>>> Am 20.03.2014 um 17:41 schrieb Robert Samuel Newson 
>>> <[email protected]<mailto:[email protected]>>:
>>
>
>> The library exists to connect you to cloudant, which is a remote
>
>> service. :)
>
>
>
> While this is true, it also works plenty well to connect to any couchdb 
> instance. We've switched to using it and I've found the interface somewhat 
> better (cleaner?) in comparison to other similar modules.
>
>
>
> Of course a matter of taste.
>
>
>
> mgm
>
>
>
>> B.
>
>
>>> On 20 Mar 2014, at 16:31, Ramanadham, Radhika 
>>> <[email protected]<mailto:[email protected]>> wrote:
>
>
>>> Hi guys,
>
>>> I have a dumb question.
>
>
>>> Now with  cloudant, how do I connect to my couchDB server 
>>> (http://localhost:5984)  with no username and password?
>
>
>>> All the examples I see connect to cloudant and not couchDB. How do I
>
>>> connect to http://127.0.0.1:5984/
>
>
>>> import cloudant
>
>
>>> # connect to your account
>
>>> # in this case, https://garbados.cloudant.com USERNAME = 'garbados'
>
>>> account = cloudant.Account(USERNAME, async=True)
>
>
>>> # login, so we can make changes
>
>>> future = account.login(USERNAME, PASSWORD) # block until we get the
>
>>> response body login = future.result() assert login.status_code == 200
>
>
>>> Thanks,
>
>>> Radhika
>
>
>

Reply via email to