logo       

[Flickr APIs] Python FlickrClient: msg#00044

web.flickr.api

Subject: [Flickr APIs] Python FlickrClient

Hello,
this is a first simple Python implementation of a Flickr client. It
is basically the same as Fredrik Lundh's Technorati client[1] and
leverages other libraries also by Fredrik.

There is no documentation yet, just a little example in
FlickrClient.py itself. Basically you have to create a FlickrClient
instance with your key as a parameter and then call Flickr's methods
on the instance, with underscores in place of dots in the names.

client = FlickrClient(API_KEY)
user = client.flickr_people_getInfo(user_id=USER_ID)

The plan is to wrap the entire API and provide nice return values
(just like Derek is doing for Flickr.Net), this is mainly to get
started and have a play with the APIs, I may end up trashing it all
and restarting with the good old minidom.

As this code is mostly identical to Fredrik's client, the license
remains the same.


mic

[1]: http://online.effbot.org/2003_05_01_archive.htm#technorati

P.S: Hey Abe! Ever since discovering Hep I had a voice in my head
telling me your name was familiar, but never got to make the link.
It's a small web eh? :)

Ok, enough personal use of the public medium.

--
Michele Campeotto - www.micampe.it

You know there ain't no devil,
there's just god when he's drunk

Attachment: FlickrClient.tar.gz
Description: GNU Zip compressed data

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise