Autobahn|Python implements the WebSocket and WAMP protocols for Python on Twisted and asyncio, for building real-time clients and servers.
Overview
Autobahn|Python is part of the Autobahn project and provides open-source protocol implementations for Python 3.11 and later on both Twisted and asyncio. Applications can speak plain WebSocket or full WAMP for routed RPC and publish–subscribe messaging.
The WebSocket stack targets RFC 6455 with optional per-message compression, TLS, proxy support, and optional NVX SIMD acceleration for masking and UTF-8 validation. WAMP components can subscribe, publish, register procedures, and call remote methods once connected to a WAMP router such as Crossbar.io.
Installable from PyPI with platform wheels for common Linux, macOS, and Windows targets on CPython and PyPy. Optional extras add Twisted networking, compression algorithms, and encryption or WAMP authentication methods. Multiple WAMP serializers ship by default, including JSON, MessagePack, CBOR, and FlatBuffers.
Documentation covers programming guides, wheel inventories, and compatibility notes across supported Python versions.
Key features
- WebSocket client and server
- WAMP ApplicationSession API
- Twisted and asyncio backends
- TLS and proxy support
- WebSocket per-message compression
- WAMP RPC and pub/sub
- Multiple WAMP serializers
- Optional NVX acceleration
Use cases
- Real-time web messaging
- WAMP microservice RPC
- Publish–subscribe backends
- WebSocket echo and relay servers
- Crossbar.io application clients