<commit_before>Porting Rails Flickr Example to Pylons 0.9
++++++++++++++++++++++++++++++++++++++++++

:author: <NAME>

Based on `original tutorial for Pylons 0.8 by Nicholas Piel <http://pylonshq.com/project/pylonshq/wiki/RailsFlickrExample>`_

By now you probably have already seen the `amazing screencast <http://media.rubyonrails.org/video/flickr-rails-ajax.mov>`_ where someone implements a beautiful web interface to `Flickr! <http://www.flickr.com>`_ (an online photo gallery) in under 5 minutes. Well if you haven't seen it yet, you really should do so now. But if you have you would probably be glad to know that this is possible under Pylons too!

Getting Started
===============

First install Pylons 0.9:

.. code-block:: Bash

    $ easy_install -U pylons==0.9

Then create your project:

.. code-block:: Bash

    $ paster create --template=pylons FlickrSearch

add a controller called ``flickr``:

.. code-block:: Bash

    $ cd FlickrSearch
    $ paster controller flickr

Our project is going to use a third party library for Flickr web services. We've picked flickr.py from the `Flickr! API list <http://www.flickr.com/services/api/>`_. All third party libraries you add to a Pylons project can go in the ``lib`` directory so download http://flickrpy.googlecode.com/svn/trunk/flickr.py and put it in ``lib``:
    
.. code-block:: Bash

    $ cd flickrsearch/lib
    $ wget http://jamesclarke.info/projects/flickr/flickr.py<commit_msg>[svn] forgot to fix a second flickr.py link in r2006<commit_after>Porting Rails Flickr Example to Pylons 0.9
++++++++++++++++++++++++++++++++++++++++++

:author: <NAME>

Based on `original tutorial for Pylons 0.8 by <NAME> <http://pylonshq.com/project/pylonshq/wiki/RailsFlickrExample>`_

By now you probably have already seen the `amazing screencast <http://media.rubyonrails.org/video/flickr-rails-ajax.mov>`_ where someone implements a beautiful web interface to `Flickr! <http://www.flickr.com>`_ (an online photo gallery) in under 5 minutes. Well if you haven't seen it yet, you really should do so now. But if you have you would probably be glad to know that this is possible under Pylons too!

Getting Started
===============

First install Pylons 0.9:

.. code-block:: Bash

    $ easy_install -U pylons==0.9

Then create your project:

.. code-block:: Bash

    $ paster create --template=pylons FlickrSearch

add a controller called ``flickr``:

.. code-block:: Bash

    $ cd FlickrSearch
    $ paster controller flickr

Our project is going to use a third party library for Flickr web services. We've picked flickr.py from the `Flickr! API list <http://www.flickr.com/services/api/>`_. All third party libraries you add to a Pylons project can go in the ``lib`` directory so download http://flickrpy.googlecode.com/svn/trunk/flickr.py and put it in ``lib``:
    
.. code-block:: Bash

    $ cd flickrsearch/lib
    $ wget http://flickrpy.googlecode.com/svn/trunk/flickr.py
{'fraction_non_alphanumeric': 0.13424190800681432, 'fraction_numerical': 0.007495741056218058, 'mean_word_length': 4.001703577512777, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 14, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1032098', 'n_tokens_mistral': 984, 'n_tokens_neox': 891, 'n_words': 339}