Registry / aws / os-ken

os-ken

JSON →
library4.2.1pypypi✓ verified 81d ago

A component-based software defined networking framework for OpenStack, currently at version 4.1.1. It is actively maintained with a focus on SDN controller development.

pip install os-ken
INSTALL
IMPORT
SIG · OS-KEN
O
os-ken
awspythonv4.2.1
Install
8.4s avg
Import
Disk
120MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v4.2.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 116MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 8.4s · import 0.000s · 114MB
120MB installed
● package 120MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

pbr
from os_ken import pbr
from os_ken.base.app_manager import OFPHandler

Simple SDN controller app that prints switch ID on connection.

from os_ken.base.app_manager import OSKenApp from os_ken.controller.handler import set_ev_cls from os_ken.ofproto.ofproto_v1_3 import OFPFlowMod class SimpleSwitch(OSKenApp): @set_ev_cls(OFPFlowMod) def switch_features_handler(self, ev): msg = ev.msg print(f"Switch {msg.datapath.id} connected") if __name__ == '__main__': from os_ken.cmd.manager import Controller c = Controller() c.start()
osenv --version
Debug
Known issues
breakingPython 3.10+ required; os-ken 4.x drops Python 3.8/3.9 support.
fix
Use Python 3.10 or later, or pin to os-ken 3.x if older Python needed.
affects: >=4.0.0
breakingRenamed base app class from RyuApp to OSKenApp; all Ryu imports broken.
fix
Replace 'ryu' with 'os_ken' in imports and RyuApp with OSKenApp.
affects: all
gotchaos-ken uses same OF-Config and OpenFlow libraries as Ryu but with different module paths.
fix
Always import from os_ken not ryu; check os_ken documentation for exact paths.
affects: all
deprecatedSome Ryu extension modules (e.g., ryu.topology) may not be fully ported; use os_ken.topology.
fix
Check if the extension is available under os_ken; fallback to lower version if needed.
affects: <4.0.0
Upgrade
Version history
4.2.1latest on PyPI · released Jun 12, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Amazon
1
Resources
os-ken — pip install os-ken · libregistry