Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BE5F610881 for ; Thu, 20 Mar 2014 19:26:10 +0000 (UTC) Received: (qmail 2653 invoked by uid 500); 20 Mar 2014 19:26:07 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 2618 invoked by uid 500); 20 Mar 2014 19:26:07 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Delivered-To: moderator for user@couchdb.apache.org Received: (qmail 43598 invoked by uid 99); 20 Mar 2014 18:26:19 -0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,NORMAL_HTTP_TO_IP,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=DIXDpzBKUYTYO2Q+JmHa1vkzEuBwMQjO/0/y+NlLV1Q=; b=jPdoTAjtqXSEEyobixYKIEzG7c8wyLfUJsdRIYbQAnllUhxM9daKLBSt9qFhcQISjA /GUmOv/a4+GTR0gRs3dWyflHS4dSpN3TrYEDBhs+Nd63LkJQ9du/hedRSuZjA7eOyT75 v5s1mewWU8OV9UWnbBdIoxP1wYXSERTijtN5P9Tp8K0kuLGCaKQg4iRCDvftspY6AuVY TkALoBZBs8Omw/UW4HzM3OWonZaGFtyyE9q0tflr5rdh4O7sWKjGZP9inzt+WrO1yrh5 In18QAV2c5N6ctZ2U7RuIVraA2PGKnI7jCP+uUx1hJixZWVsFk/YMmLpHWLJcNiRts6D iNlQ== X-Received: by 10.224.53.198 with SMTP id n6mr51858659qag.41.1395339949145; Thu, 20 Mar 2014 11:25:49 -0700 (PDT) MIME-Version: 1.0 Reply-To: andy@nms.de In-Reply-To: <14256C9E890B874D989F0828DDB264F2AD56E53B@MX45A.corp.emc.com> References: <14256C9E890B874D989F0828DDB264F2AD56E4F1@MX45A.corp.emc.com> <5A02AEF9-1DE6-4B3D-B2B8-6577396EE6F8@apache.org> <-6343847178960061055@unknownmsgid> <14256C9E890B874D989F0828DDB264F2AD56E53B@MX45A.corp.emc.com> From: Andy Wenk Date: Thu, 20 Mar 2014 19:25:14 +0100 Message-ID: Subject: Re: using python-cloudant to connect to couchDB To: "user@couchdb.apache.org" Content-Type: multipart/alternative; boundary=001a1132f03c028b6904f50de694 X-Virus-Checked: Checked by ClamAV on apache.org --001a1132f03c028b6904f50de694 Content-Type: text/plain; charset=UTF-8 Radhika, On 20 March 2014 19:08, Ramanadham, Radhika wrote: > But, I see they say its an interface for cloudant or couchDB > > > > https://pypi.python.org/pypi/cloudant/0.5.6 The statement says that this is interface for Cloudant who are using CouchDB. So you can query CouchDB databases hosted at Cloudant. You can't use this interface for a local CouchDB database. Please have a look at http://couchdbkit.org/ and https://code.google.com/p/couchdb-python Cheers Andy > > > > -----Original Message----- > From: Mike Marino [mailto:mmarino@gmail.com] > Sent: Thursday, March 20, 2014 12:58 PM > To: user@couchdb.apache.org > Subject: Re: using python-cloudant to connect to couchDB > > > > > Am 20.03.2014 um 17:41 schrieb Robert Samuel Newson >: > > > > > > 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 < > radhika.ramanadham@emc.com> 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 > > > > > > -- Andy Wenk Hamburg - Germany RockIt! http://www.couchdb-buch.de http://www.pg-praxisbuch.de GPG fingerprint: C044 8322 9E12 1483 4FEC 9452 B65D 6BE3 9ED3 9588 https://people.apache.org/keys/committer/andywenk.asc --001a1132f03c028b6904f50de694--