couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ramanadham, Radhika" <radhika.ramanad...@emc.com>
Subject RE: import csv data into couchdb document using python-cloudant module
Date Wed, 02 Apr 2014 01:21:59 GMT
I tried this before and it creates a unique document for each row in the csv file.

-----Original Message-----
From: Dave Cottlehuber [mailto:dch@jsonified.com] 
Sent: Tuesday, April 01, 2014 5:11 PM
To: user@couchdb.apache.org
Subject: Re: import csv data into couchdb document using python-cloudant module

> On Tue, Apr 1, 2014 at 9:37 PM, Ramanadham, Radhika < 
> radhika.ramanadham@emc.com> wrote:
> 
> > Does anyone have a code snippet to import csv data into couchdb 
> > document leveraging python-cloudant module?
> > I want to check out what's available before trying to figure it out myself.
> >
> > Thanks for the help in advance!
> > -Radhika

Radhika,

https://bitbucket.org/jagan/misc/src/84cefb61c86a/csv2couch.py might be sufficient for your
needs, although a bit dated. There’s enough info in https://cloudant.com/blog/using-python-with-cloudant/
and the newer https://github.com/cloudant-labs/cloudant-python/ to get up to speed if not.
BTW I’m not a pythoneer (pythonista? pythonian?) so that’s as far as I can help you.

On 01. April 2014 at 22:08:32, Benoit Chesneau (bchesneau@gmail.com) wrote:
> https://github.com/refuge-incubator/rc_csv is a direct rcouch extension.

BTW Benoît, you might want to elaborate how this apparently unrelated code might help the
OP; as far as I can tell it doesn’t?

--
Dave Cottlehuber
Sent from my PDP11




Mime
View raw message