I am using Jackson for csv import in appengine and strongly recommend it.

https://github.com/FasterXML/jackson-dataformat-csv

On Thursday, 3 April 2014 09:09:09 UTC+1, Vinny P wrote:
>
>
> On Wed, Apr 2, 2014 at 10:43 PM, Ludwig Precious 
> <[email protected]<javascript:>
> > wrote:
>
>> Hi. I hope someone can help me with this. I have one CSV file with 
>> approximately 100 rows of data. Something like this:
>>
>> Individuals.csv:
>>
>> description,key,name,lastname
>> aaaaa aaaaa,1,Aname,Alastname
>> bbbbb bbbbb,2,Bname,Blastname
>> ...
>> ...
>>
>> Inside my datastore I have an Entity Individual which I need to populate 
>> with that data from Individuals.csv.
>>
>> I saw a couple of solutions but it doesn't work for me. Maybe they 
>> changed something how it's done. Any advice would be greatly appreciated. I 
>> am trying to do this whole day.
>>
>
>
> You can configure the App Engine bulkloader to automatically upload the 
> file and create the relevant entities: 
> https://developers.google.com/appengine/docs/python/tools/uploadingdata#Python_Configuring_the_bulk_loader.
>  The only issue is that you'll have to create a YAML file to describe what 
> the entity will look like (the process is outlined in the above link).
>
> If you don't want to use the bulkloader, another option is to write an 
> application to parse the CSV file and create the entities. Reading CSV 
> files is fairly straightforward, there are libraries available for it 
> within most languages. For example, here's the Go CSV parser: 
> http://golang.org/pkg/encoding/csv/ and one for Python: 
> https://docs.python.org/2/library/csv.html . This is a better route to go 
> if you frequently have to upload new or updated CSV files.
>
>  
>  
> -----------------
> -Vinny P
> Technology & Media Advisor
> Chicago, IL
>
> App Engine Code Samples: http://www.learntogoogleit.com
>  
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.

Reply via email to