Skip to main content

twink

twink is a python openflow library.

twink uses plain openflow binary message instead of forcing you mastering a bundled complicated openflow protocol classes. You may use whatever openflow message parsing, building libraries. twink supports all openflow versions (1.0--1.4).

twink.threading provides a threading-based server implementation. You can get started with python standard libraries.

twink.gevent has a gevent based openflow server, so for example, you can create an openflow controller server with websocket support.

twink.ovs offers you ovs-ofctl based openflow message creation.

twink.ext provides utility functionalities.

For convenience, twink has ofp4 openflow 1.3 message parser/builder as twink.ofp4, and twink.ofp5 for openflow 1.4.

parallel and concurrency

twink.gevent or twink.threading enables openflow message parallel handling. While processing some openflow message with ovs-ofctl and suspend the process waiting for reply, another openflow message can be handled in another handler. If you use threading based controller, be sure using mutex.

server or client

It does not matter because Openflow protocol is symmetric in syntax. Not only creating server-controller or client-switch, twink helps creating server-switch and client-controller, which are not standard style. You can use this library even in python interactive mode. twink is useful in debugging openflow protocol. The most import part in creating server, is writing a handler function, which symbol is func(openflow_message, channel_instance) and passed to Channel class as handle member.

LICENSE

This software is licensed under Apache software license 2.0 http://www.apache.org/licenses/LICENSE-2.0

Release files for twink 0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for twink 0.3
File Size Uploaded
twink-0.3.tar.gz 52.3 kB Details

Release files / twink-0.3.tar.gz

Download URL twink-0.3.tar.gz
Size 52.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8912989a83c1cd9cf1bd8054c0d13ad05871cf5dd40609bdee9f0292223016ce
BLAKE2b-256 checksum
How to use checksums
32a258965a3c31f83e15047a610d67a47b0858b729795a62c30bead0fb7c07b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/3.6.6

Release history Release notifications | RSS feed

This release

0.3 This release

1 release file

0.2

1 release file

0.1

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page