OpenFlow Data Plane Abstraction (OF-DPA) API Guide and Reference Manual
Appendix B - Ryu HOWTO

Ruy is an OpenFlow controller written in Python. is a free software available under Apache2 licence. more details visit project homepage: http://osrg.github.io/ryu

Prerequisites:

(for Debian-based distributives)

sudo apt-get install git
sudo apt-get install python-setuptools
sudo apt-get install python-pip
sudo apt-get install python-dev

Install:

sudo pip install ryu

or

Build:

git clone git://github.com/osrg/ryu.git
cd ryu;
sudo python ./setup.py install

Run:

ryu-manager <script_to_execution> [--verbose]