Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Asyncio
  3. autobahn-python

autobahn-python

NOASSERTIONPythonv26_7_1

A Python library providing WebSocket and WAMP (Web Application Messaging Protocol) implementations for Twisted and asyncio.

Visit WebsiteGitHubGitHub
2.5k stars771 forks0 contributors

What is autobahn-python?

Autobahn|Python is a library that implements the WebSocket protocol and the Web Application Messaging Protocol (WAMP) for Python. It provides the tools to create clients and servers for real-time, bidirectional communication, with WAMP enabling structured messaging patterns like Remote Procedure Calls and Publish/Subscribe over WebSocket.

Target Audience

Python developers building real-time applications such as chat systems, live dashboards, IoT device communication, or any service requiring low-latency, bidirectional messaging between clients and servers.

Value Proposition

Developers choose Autobahn|Python for its robust, asynchronous implementation that works seamlessly with both Twisted and asyncio, its strict standards compliance verified by the Autobahn Testsuite, and its comprehensive feature set including multiple serializers and compression options out-of-the-box.

Overview

WebSocket and WAMP in Python for Twisted and asyncio

Use Cases

Best For

  • Building real-time WebSocket servers and clients in Python
  • Implementing WAMP-based applications with RPC and Pub/Sub messaging
  • Developing IoT platforms requiring bidirectional device communication
  • Creating live data dashboards or financial trading systems
  • Building collaborative applications like multiplayer games or shared editing tools
  • Adding real-time features to existing web applications with Python backends

Not Ideal For

  • Projects needing only basic WebSocket functionality without the structured messaging overhead of WAMP
  • Teams unwilling to deploy and manage a separate WAMP router like Crossbar.io
  • Environments where dependency minimization is critical due to the extensive optional packages for compression and encryption
  • Applications already committed to alternative real-time protocols such as MQTT or Socket.IO

Pros & Cons

Pros

Asynchronous High Performance

Fully asynchronous architecture on both Twisted and asyncio enables efficient real-time communication, with SIMD-accelerated native extensions (NVX) for WebSocket operations as highlighted in the features.

Standards Compliance

Passes 100% of the Autobahn Testsuite for WebSocket client and server compliance, ensuring reliable conformance to RFC6455 and interoperability with other implementations.

Comprehensive Serializer Support

Includes multiple serializers like JSON, MessagePack, CBOR, UBJSON, and Flatbuffers out-of-the-box, providing flexibility for different data formats without extra installs.

Cross-Platform Optimization

Runs on CPython and PyPy with binary wheels for major platforms, and supports advanced compression like Brotli through optional dependencies, optimizing for both performance and compatibility.

Cons

WAMP Router Dependency

WAMP functionality requires an external router such as Crossbar.io or other options, adding infrastructure complexity and maintenance overhead compared to standalone WebSocket solutions.

Optional Feature Complexity

Features like compression, encryption, and NVX extensions involve multiple optional dependencies (e.g., via 'pip install autobahn[compress]'), which can complicate deployment and increase dependency management.

Incomplete Performance Extensions

The NVX (Native Vector Extensions) for SIMD acceleration is marked as ALPHA and not yet complete, limiting guaranteed performance benefits and stability for production use.

Frequently Asked Questions

Quick Stats

Stars2,542
Forks771
Contributors0
Open Issues187
Last commit8 days ago
CreatedSince 2011

Tags

#asyncio#python-library#messaging-protocol#websocket#wamp#python#pubsub#pub-sub#rpc#twisted#real-time

Built With

T
Twisted
a
asyncio
P
Python
C
CFFI

Links & Resources

Website

Included in

Python290.8kAsyncio5.0k
Auto-fetched 6 hours ago

Related Projects

FastAPIFastAPI

FastAPI framework, high performance, easy to learn, fast to code, ready for production

Stars100,813
Forks9,675
Last commit11 hours ago
sanicsanic

Accelerate your web app development | Build fast. Run fast.

Stars18,637
Forks1,589
Last commit4 days ago
aiohttpaiohttp

Asynchronous HTTP client/server framework for asyncio and Python

Stars16,505
Forks2,357
Last commit1 day ago
StarletteStarlette

The little ASGI framework that shines. 🌟

Stars12,490
Forks1,235
Last commit20 days ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub