qmetrics.net

Twisted

Python event-driven networking engine for internet applications

Twisted screenshot

Twisted is a Python event-based framework for building internet applications. It ships protocol modules for HTTP, mail, SSH, DNS, IRC, XMPP, and more.

Overview

Twisted is an event-driven networking engine for Python aimed at internet protocols and custom network programs. It lets developers implement servers and clients around a single reactor model instead of blocking threads for each connection.

Bundled subprojects cover common protocols: HTTP clients and servers with HTML templating and a WSGI server, SSH and Telnet via conch, IRC and XMPP via words, IMAP/POP/SMTP mail, DNS via names, GPS tooling, and an integrated trial test runner. Examples on the project site show TCP echo servers, web counters, pub/sub lines, IMAP clients, and SSH command clients.

The reactor abstraction supports major system event loops including select, poll, epoll on Linux, kqueue on FreeBSD and macOS, IOCP on Windows, and several GUI loops. Third-party reactors can plug in for additional environments. Installation is available through pip, with documentation and API references published separately.

Twisted targets authors who need fine-grained control over protocol behavior in Python, from small network utilities to long-lived services, and supports CPython 3.7+ and PyPy3.

Key features

  • HTTP client and server modules
  • SSHv2 and Telnet support
  • IRC, XMPP, and IM protocols
  • IMAP, POP3, and SMTP mail
  • DNS client and server tools
  • Pluggable reactor event loops
  • Integrated trial testing framework
  • WSGI-capable web server

Use cases

  • Custom TCP and UDP network services
  • Mail and messaging protocol servers
  • SSH automation clients
  • Embedded HTTP microservices in Python
  • Protocol prototyping and learning

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