<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Software and Opinions &#187; flipy</title>
	<atom:link href="http://ianloic.com/tag/flipy/feed/" rel="self" type="application/rss+xml" />
	<link>http://ianloic.com</link>
	<description>from Ian McKellar</description>
	<lastBuildDate>Wed, 07 Sep 2011 21:48:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<atom:link rel='hub' href='http://ianloic.com/?pushpress=hub'/>
		<item>
		<title>Flipy, a new Python library for Flickr</title>
		<link>http://ianloic.com/2010/01/26/flipy/</link>
		<comments>http://ianloic.com/2010/01/26/flipy/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 19:31:25 +0000</pubDate>
		<dc:creator>Ian McKellar</dc:creator>
				<category><![CDATA[Default]]></category>
		<category><![CDATA[flickr]]></category>
		<category><![CDATA[flipy]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://ianloic.com/?p=185</guid>
		<description><![CDATA[In the past day or so I&#8217;ve written a new Python library for Flickr. It came from some frustration using other Python libraries. They&#8217;re all great, but none of them work quite how I want. My goal was to have &#8230; <a href="http://ianloic.com/2010/01/26/flipy/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>In the past day or so I&#8217;ve written a new Python library for Flickr. It came from some frustration using other Python libraries. They&#8217;re all great, but none of them work quite how I want.</p>
<p>My goal was to have a library that feels like <a href="http://en.wikipedia.org/wiki/Python_(programming_language)#Neologisms">Python</a> and the Flickr API at the same time. I think it&#8217;s worked out pretty well so far. You can make calls using the standard Flickr API calls as <a href="http://www.flickr.com/services/api/">documented</a> on the Flickr site, but the response objects feel like normal Python objects. For example you can do something like this:</p>
<pre class="prettyprint">from flipy import Flipy
flickr = Flipy(MY_API_KEY)
me = flickr.people.findByUsername(username='ianloic')
me_info = flickr.people.getInfo(user_id=me.nsid)
print 'My name is %s. I have %s photos at %s.' % (me_info.realname, me_info.photos.count, me_info.photosurl)</pre>
<p>I&#8217;ve put more details about the mapping in the <a href="http://github.com/ianloic/flipy#readme">README</a>.</p>
<p>Beyond simple mapping of methods to responses I&#8217;m working on decorating certain important response objects such as users and photos with more object oriented methods. For example right now if you have a user object you can call <code class="prettyprint">user.photos()</code> and get a iterator for of a user&#8217;s photos. My code takes care of all of the paging behind the scenes.</p>
<p>Since I haven&#8217;t implemented authentication or uploading yet so right now it&#8217;s mostly useful for simple mashup-style applications, but I&#8217;ll get uploads and authentication complete when I get back from <a href="http://en.wikipedia.org/wiki/Jordan">Jordan</a> next week.</p>
<p>Check out the code on <a href="http://github.com/ianloic/flipy">github</a> and let me know what you think.</p>
]]></content:encoded>
			<wfw:commentRss>http://ianloic.com/2010/01/26/flipy/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

