Joseph Solbrig wrote:

> An application - those things that talk to freenetlib - should sit on top
> of the freenet protocol. Freenet should not be telling applications what
> the application's data is, the applications should just figure it out. You
> can encode virtually any protocol treating freenet as just a
> data-dictionary (a set of key-data pairs).

Exactly!  In fact, I just wrote a dictionary-like wrapper around freenetlib
(0.1.0 with crypto support will be released just as soon as the underlying
Twofish library gets fixed).  So using freenet in your Python app will be as
easy as:

    import fndbm, string
    db = fndbm.open()

    # get data from Freenet
    GPL = db['/texts/GNU/GPL']
    print GPL

    # insert data into Freenet
    NPL = string.replace(GPL, 'free', 'Free')
    db['/texts/GNU/FreeGPL'] = NPL

and it shouldn't be that different in any language you choose to use. 
Doesn't get much easier than that.

-- 
Itamar S.T.  itamar at maxnm.com

_______________________________________________
Freenet-dev mailing list
Freenet-dev at lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/freenet-dev

Reply via email to