~oubiwann/django-riak-engine/master

« back to all changes in this revision

Viewing changes to examples/django_riak_mapreduce/riak_mapreduce/tools.py

  • Committer: Duncan M. McGreggor
  • Date: 2011-08-31 06:22:03 UTC
  • Revision ID: git-v1:4a652068276c34c07554452f49803a98dce3f954
* Added google stock ticker data to example (with a plan to use map-reduce
 functionality in Django with Riak; see
 http://wiki.basho.com/Loading-Data-and-Running-MapReduce-Queries.html).
* Stubbed out a Python script for importing the csv data into Riak.
* Added a make target that performs the import.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import csv
 
2
 
 
3
import riak
 
4
 
 
5
 
 
6
def import_csv_google_data():
 
7
    # set up client
 
8
 
 
9
    # set up bucket
 
10
 
 
11
    # read in CSV data
 
12
 
 
13
    # iterate through the rows and put them in the bucket
 
14
    pass