Ok,<div>I came up with a generic csv loader for Redis datatypes.</div><div>it is plugged into the [puredis] object with the csv method, it receives a filepath and a datatype.</div><div>Making it possible to build Strings, Lists, Hashes, Sets ans SortedSets from csv files.</div>
<div><br></div><div>I updates the pd-help files to match a well as the docs (the Readme).</div><div><a href="https://github.com/lp/puredis#readme">https://github.com/lp/puredis#readme</a></div><div><br></div><div><br><div class="gmail_quote">
2011/7/26 Hans-Christoph Steiner <span dir="ltr">&lt;<a href="mailto:hans@at.or.at">hans@at.or.at</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>

Where I could see it used it with large data sets like I did in this project:<br>
<a href="http://at.or.at/hans/terrenatale/" target="_blank">http://at.or.at/hans/<u></u>terrenatale/</a><br>
<br>
The data is used to generate the large scale events like the dropping of coins for each country, the layout of static representing population, etc.  I suppose that I would need to convert the data to a specific format for redis anyway, so just supporting CSV would be fine.  I ended up using scripts and Pd to process a lot of the data.  What would make puredis more interesting is if it meant that it would be easy to process large sets of data into something useful for generating sound and video.<br>

<br>
.hc<div><div></div><div class="h5"><br>
<br>
On Jul 26, 2011, at 2:54 PM, Louis-Philippe wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
before jumping on the puredis-loader implementation, here is how I see the specs, please tell me if I get what you think:<br>
______________________________<u></u>_____<br>
Strings:<br>
<br>
string.csv:<br>
KEY, VALUE<br>
key1, value1<br>
key2, value2<br>
<br>
[lpuredis string string.csv]<br>
<br>
-&gt; creates a String for each line<br>
______________________________<u></u>_____<br>
List and Sets:<br>
<br>
list.csv:<br>
KEY, VALUE1, VALUE2, ...<br>
key1, item1, item2, item3<br>
key2, item1, item2, item3<br>
<br>
[lpuredis list list.csv]<br>
<br>
-&gt; creates a List for each line<br>
<br>
[lpuredis set list.csv]<br>
<br>
-&gt; creates a Set for each line<br>
______________________________<u></u>_____<br>
Sorted Sets:<br>
<br>
zset.csv:<br>
KEY, VALUE1, SCORE1, VALUE2, SCORE2<br>
key1, item1, 1, item2, 2, item3, 3<br>
key2, item1, 4, item2, 5, item3, 6<br>
<br>
[lpuredis zset zset.csv]<br>
<br>
-&gt; creates a Sorted Set for each line<br>
______________________________<u></u>______<br>
Hashes<br>
<br>
hash.csv:<br>
KEY, KEY1, VALUE1, KEY2, VALUE2, KEY3, VALUE3<br>
key1, hkey1, value1, hkey2, value2, hkey3, value3<br>
key2, hkey1, value1, hkey2, value2, hkey3, value3<br>
<br>
or even:<br>
KEY, FIELD1, FIELD2, FIELD3<br>
key1, item1, item2, item3<br>
key2, item1, item2, item3<br>
<br>
[lpuredis hash hash.csv]<br>
<br>
-&gt; creates a Hash for each line<br>
______________________________<u></u>_________________________<br>
<br>
<br>
For SQL file I am clueless, but I guess it will be similar...<br>
JSON would be the easiest to translate but would it be of any use to pd users?<br>
<br>
L-P<br>
</blockquote>
<br>
<br>
<br></div></div>
------------------------------<u></u>------------------------------<u></u>----------------<br>
<br>
If you are not part of the solution, you are part of the problem.<br>
<br>
<br>
</blockquote></div><br></div>