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 8B4A11077A for ; Wed, 2 Apr 2014 14:23:03 +0000 (UTC) Received: (qmail 4172 invoked by uid 500); 2 Apr 2014 14:23:01 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 4142 invoked by uid 500); 2 Apr 2014 14:23:00 -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 Received: (qmail 4131 invoked by uid 99); 2 Apr 2014 14:23:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Apr 2014 14:23:00 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of simon@cloudant.com designates 74.125.82.174 as permitted sender) Received: from [74.125.82.174] (HELO mail-we0-f174.google.com) (74.125.82.174) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Apr 2014 14:22:55 +0000 Received: by mail-we0-f174.google.com with SMTP id t60so308872wes.5 for ; Wed, 02 Apr 2014 07:22:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:message-id:in-reply-to:references :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=T1ThbRZluPLrgjUoJXGOpi5dPO8/0IywDaS9nsgUs0I=; b=CL3ZyUujk/xMsApuc425kpfTiXSAxNCBrNIHYqyxjke4WBEqzqlMBonNSuqvfNRd/s DGcleI4MMwDrvboRnkP64LU3i9+Gm9vr0X5gHcrjCC2YSmzZo22Iwvu2jxxtCmx8z7e2 UjtsnuhIrM8ojFuHmO2Zv3b01KhKNyPsiySqOs+i8NkdUqrYzKj33aMbFU//kqZcdw7D KtylGXyYZao9Oz3EKc+jYEwAuB1GxFelHnMf8dJBx76I9fM+MarwfLtHLDpHyMG2DJHx EonkOzmn/kStpI66P0e0mL/v0gc8hO6EGeqRoKFx6IteoYHX5Zi39nhy8RDrnpagd+vH Vklg== X-Gm-Message-State: ALoCoQncHWtDiPMStPLOx+guixga3o2dme6vkRylLZyJdtwO+lWU+mBYDU9aeYLpGpSbVYV05y0P X-Received: by 10.180.73.141 with SMTP id l13mr2505643wiv.60.1396448552617; Wed, 02 Apr 2014 07:22:32 -0700 (PDT) Received: from [192.168.1.74] (109-69.82-183.hns.net. [109.69.82.183]) by mx.google.com with ESMTPSA id fo6sm4999830wib.7.2014.04.02.07.22.30 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 02 Apr 2014 07:22:31 -0700 (PDT) Date: Wed, 2 Apr 2014 15:22:29 +0100 From: Simon Metson To: user@couchdb.apache.org Message-ID: In-Reply-To: <14256C9E890B874D989F0828DDB264F2AD56EFC7@MX45A.corp.emc.com> References: <14256C9E890B874D989F0828DDB264F2AD56EF26@MX45A.corp.emc.com> <14256C9E890B874D989F0828DDB264F2AD56EF7C@MX45A.corp.emc.com> <9CA6B01C445547518678FCC5B8F9210C@cloudant.com> <14256C9E890B874D989F0828DDB264F2AD56EFC7@MX45A.corp.emc.com> Subject: Re: import csv data into couchdb document using python-cloudant module X-Mailer: sparrow 1.6.4 (build 1178) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org An example is a doc that contained metadata about an image and had the im= age itself as an attachment. On Wednesday, 2 April 2014 at 15:11, Ramanadham, Radhika wrote: > Have a single doc with list of rows. > =20 > Also, if I may ask, what is the use of attaching the files in a doc=3F = When do people want to attach a file to a document=3F > =20 > -----Original Message----- > =46rom: Simon Metson =5Bmailto:simon=40cloudant.com=5D =20 > Sent: Wednesday, April 02, 2014 2:15 AM > To: user=40couchdb.apache.org (mailto:user=40couchdb.apache.org) > Subject: Re: import csv data into couchdb document using python-cloudan= t module > =20 > Do you just want to attach the csv to a single doc (as a file) or have = a single doc with a list of rows=3F =20 > =20 > =20 > On Wednesday, 2 April 2014 at 02:21, Ramanadham, Radhika wrote: > =20 > > I tried this before and it creates a unique document for each row in = the csv file. > > =20 > > -----Original Message----- > > =46rom: Dave Cottlehuber =5Bmailto:dch=40jsonified.com=5D > > Sent: Tuesday, April 01, 2014 5:11 PM > > To: user=40couchdb.apache.org (mailto:user=40couchdb.apache.org) > > Subject: Re: import csv data into couchdb document using =20 > > python-cloudant module > > =20 > > > On Tue, Apr 1, 2014 at 9:37 PM, Ramanadham, Radhika < =20 > > > radhika.ramanadham=40emc.com (mailto:radhika.ramanadham=40emc.com)>= wrote: > > > =20 > > > > Does anyone have a code snippet to import csv data into couchdb =20 > > > > document leveraging python-cloudant module=3F > > > > I want to check out what's available before trying to figure it o= ut myself. > > > > =20 > > > > Thanks for the help in advance=21 > > > > -Radhika > > > =20 > > =20 > > =20 > > =20 > > =20 > > Radhika, > > =20 > > https://bitbucket.org/jagan/misc/src/84cefb61c86a/csv2couch.py might = be sufficient for your needs, although a bit dated. There=E2=80=99s enoug= h info in https://cloudant.com/blog/using-python-with-cloudant/ and the n= ewer https://github.com/cloudant-labs/cloudant-python/ to get up to speed= if not. BTW I=E2=80=99m not a pythoneer (pythonista=3F pythonian=3F) so = that=E2=80=99s as far as I can help you. > > =20 > > On 01. April 2014 at 22:08:32, Benoit Chesneau (bchesneau=40gmail.com= (mailto:bchesneau=40gmail.com)) wrote: > > > https://github.com/refuge-incubator/rc=5Fcsv is a direct rcouch ext= ension. > > =20 > > =20 > > =20 > > =20 > > BTW Beno=C3=AEt, you might want to elaborate how this apparently unre= lated code might help the OP; as far as I can tell it doesn=E2=80=99t=3F > > =20 > > -- > > Dave Cottlehuber > > Sent from my PDP11 > =20