From couchdb-user-return-1154-apmail-incubator-couchdb-user-archive=incubator.apache.org@incubator.apache.org Wed Aug 27 21:10:57 2008 Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 67765 invoked from network); 27 Aug 2008 21:10:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Aug 2008 21:10:57 -0000 Received: (qmail 89826 invoked by uid 500); 27 Aug 2008 21:10:55 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 89495 invoked by uid 500); 27 Aug 2008 21:10:54 -0000 Mailing-List: contact couchdb-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-user@incubator.apache.org Delivered-To: mailing list couchdb-user@incubator.apache.org Received: (qmail 89483 invoked by uid 99); 27 Aug 2008 21:10:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Aug 2008 14:10:54 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of misterpib@gmail.com designates 64.233.184.239 as permitted sender) Received: from [64.233.184.239] (HELO wr-out-0506.google.com) (64.233.184.239) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Aug 2008 21:09:57 +0000 Received: by wr-out-0506.google.com with SMTP id c53so45903wra.20 for ; Wed, 27 Aug 2008 14:10:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=Dsp1fp6wdT4eDBK4DyLWZTNN3K9vC8U2U/WvAb92OYw=; b=StyWImrim2zHhR+rGPKxtU3XTbx+7K1Dx5ns43GYnAAKk6eK8c41d7NEsI7pWtEbOJ jyrxTfA0ggqi0B7OJv8WleJ7irG3glvDUjdavEh699HsDo4aDnX+EOtFbcvGHzdmL3a2 QcavjeRaYqrcVQMck3CPwzxaxRhquLHsbEgyQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=fNLYb8i6YYHr71ZILvnt/iEKEsUzTDrqOM2hebLI5HP6UIQRzbj9rdtHX0HBntvk7F QpTm30eHjg3xbZhxsn+JFvPXmcPa15JgQd4CpYRHSR+JPrPV8aEFUVpF/1Ot8QKt994H cj9K0WEU7MfBCz15dx7WgjJWMqXzNArgzE4BM= Received: by 10.90.114.19 with SMTP id m19mr507140agc.61.1219871426642; Wed, 27 Aug 2008 14:10:26 -0700 (PDT) Received: by 10.90.87.20 with HTTP; Wed, 27 Aug 2008 14:10:26 -0700 (PDT) Message-ID: Date: Wed, 27 Aug 2008 16:10:26 -0500 From: "Paul Bonser" To: couchdb-user@incubator.apache.org Subject: Re: Python CouchDB example In-Reply-To: <622cacf50808261503w27a652e1na60bece508fba20f@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <622cacf50808261503w27a652e1na60bece508fba20f@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org On Tue, Aug 26, 2008 at 5:03 PM, Simon Kapeniak wrote: > Sorry for stupid question. I used to see an example of using Python module > for CouchDB somewhere on the net (possible on Christopher Lenz website or in > the module's docs) but I can't find it now. The one present in Wiki is using > CouchDB without that module. Can anyone remind me a place I can find these > docs and examples? I have some example code in a blog post about storing hierarchical data in CouchDB. There are links from the wiki page about it, as well. http://wiki.apache.org/couchdb/HierarchicalData http://blog.paulbonser.com/2008/07/04/storing-hierarchical-data-in-couchdb/ If you look at the mentioned git repository there, you'll find two python files. create_tree_data.py is an example of building views and inserting documents from Python, and tree.py has some examples of pulling data from a view. I couldn't find many examples of usage of the Python library either, so I ended up just reading through the code to figure it out. -- Paul Bonser http://blog.paulbonser.com