qmetrics.net

Autobahn Python

Python WebSocket and WAMP protocol library

Autobahn Python screenshot

Implements WebSocket and WAMP for Python on Twisted and asyncio, for clients and servers speaking real-time messaging protocols.

Overview

Autobahn Python is part of the Autobahn family and provides Python implementations of the WebSocket protocol and the Web Application Messaging Protocol (WAMP). It targets Python 3.11 and newer and can run on either Twisted or asyncio by choosing the corresponding import path and optional install flavor.

WebSocket support covers RFC 6455 with compression options, TLS, proxy usage, and message, frame, and streaming APIs. WAMP adds routed publish-subscribe and remote procedure calls on top of WebSocket; connecting WAMP clients requires a WAMP router such as Crossbar.io or another compatible router named in the documentation.

Optional extras install Twisted, compression algorithms, TLS and WAMP-cryptosign or SCRAM authentication support, and additional serializers including MessagePack and CBOR. NVX provides SIMD-accelerated native helpers for XOR masking and UTF-8 validation on supported x86 CPUs. Wheels are published for CPython and PyPy across Linux, macOS, and Windows.

Example code in the documentation shows echo WebSocket servers and WAMP components that subscribe, publish, register, and call procedures. The maintainers document an AI contribution policy for releases after a stated version line.

Key features

  • WebSocket client and server APIs
  • WAMP pub/sub and RPC support
  • Twisted and asyncio backends
  • WebSocket per-message compression
  • TLS for secure WebSocket transport
  • Multiple WAMP serializers
  • NVX SIMD acceleration helpers

Use cases

  • Real-time web messaging in Python
  • WAMP microservices behind a router
  • Twisted or asyncio WebSocket servers
  • Pub/sub and RPC over WebSocket

Tags

Similar software

Netty

Event-driven Java framework for protocol servers and clients

Netty is an asynchronous, event-driven network stack for building maintainable high-performance protocol servers and clients in Java.

★ 35.1k⟳ todayApache-2.0

Tokio

Rust runtime for reliable asynchronous network applications

Tokio is an event-driven, non-blocking I/O platform for asynchronous Rust programs. It supplies scheduling, timers, async TCP and UDP, and building blocks for network services.

★ 33.8k⟳ todayMIT
Frameworks & PlatformsDesktop/CLI app

libuv

Cross-platform asynchronous I/O support library

libuv is a multi-platform library centered on non-blocking I/O. Node.js and several other runtimes embed it for networking and event handling.

★ 27.4k⟳ 3 days agoMIT
Frameworks & PlatformsDesktop/CLI app

Ws

Node.js WebSocket client and server library

The ws package implements WebSocket client and server roles for Node.js. It is not for browser runtimes; front ends should use the native WebSocket API or an isomorphic wrapper.

★ 22.8k⟳ todayMIT
Frameworks & PlatformsDesktop/CLI app

WebRTC

Pure Go WebRTC stack for real-time media

Pion WebRTC implements the WebRTC API in Go without cgo, enabling peer connections, media, data channels, and ICE across servers, desktops, mobile, and WebAssembly targets.

★ 16.9k⟳ 3 days agoMIT
Frameworks & PlatformsDesktop/CLI app

Workflow

C++ async networking and parallel workflow engine

Sogou C++ Workflow is an enterprise-style C++ engine for HTTP servers, async clients, DAG workflows, and parallel compute used in Sogou’s online backends.

★ 14.4k⟳ 2 days agoApache-2.0