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

Ryu is an OpenFlow controller written in Python.
Ryu is a free software available under Apache2 licence.
For 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]