skillfed

localstack-twisted

An asynchronous networking framework written in Python

localstack-twisted v26.4.0 77.2K downloads/30d#14,551 on PyPI5,975
Permissive license MIT License Active released

What it is and what it does

This package is a curated distribution of Twisted, an established asynchronous networking framework for Python, repackaged by LocalStack with tests and unused modules removed to reduce installation size. It provides the core Twisted functionality for building event-driven, non-blocking network applications—servers, clients, protocols, and reactive components—while maintaining compatibility with the standard Twisted API.

The package depends on 11 runtime libraries including attrs, h2, hyperlink, pyopenssl, and zope-interface, which together provide protocol handling, HTTP/2 support, TLS encryption, and interface definitions. It supports Python 3.8 through 3.12 and is actively maintained, with the latest release tracking recent Twisted upstream versions. The permissive MIT license and low install friction make it accessible for most projects.

Use it for:

  • Building asynchronous TCP/UDP servers and clients without blocking I/O.
  • Implementing custom network protocols and protocol handlers for real-time applications.
  • Creating event-driven web services and WebSocket applications with Twisted's HTTP support.
  • Developing reactive systems that handle concurrent connections efficiently.
  • LocalStack environments where reduced package size is beneficial for container or embedded deployments.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

A LocalStack-optimized distribution of Twisted that provides asynchronous networking and event-driven I/O capabilities for Python applications, with reduced size by excluding tests and unused modules.

Yes, if you need Twisted's asynchronous networking capabilities and either use LocalStack or prefer the size-optimized distribution. The active maintenance, low install friction, permissive license, and lack of known vulnerabilities make it a sound choice. However, verify that the excluded modules don't affect your specific use case, and confirm compatibility if you depend on packages expecting the standard Twisted distribution.

Install

localstack-twisted on PyPI

pip

pip install localstack-twisted

uv

uv add localstack-twisted

poetry

poetry add localstack-twisted

Installing localstack-twisted

Before you install

Low install friction with 11 runtime dependencies. The package is actively maintained with a recent release (95 days ago) and the underlying repository shows active development with 5975 stars.

License in practice

MIT License permits commercial and private use with minimal restrictions, making it suitable for most projects without licensing concerns.

Quickstart

pip install localstack-twisted

from twisted.internet import reactor
from twisted.internet.protocol import Protocol

class EchoProtocol(Protocol):
    def dataReceived(self, data):
        self.transport.write(data)

reactor.run()

Requires Python 3.8 or later; some functionality may depend on system-level networking libraries.

Verify before relying

  • Whether the size reduction from excluding tests and modules meaningfully impacts performance or functionality compared to standard Twisted.
  • Compatibility guarantees between this distribution and packages expecting the standard Twisted package.
  • Whether LocalStack-specific optimizations introduce behavioral differences in edge cases.

Package facts

License MIT License (permissive)
Python support supports the current Python release (>=3.8.0)
Install friction low — pure-Python wheel
Runtime dependencies 11 — attrs, constantly, h2, hyperlink, idna, incremental, priority, pyopenssl, twisted-iocpsupport, typing-extensions, zope-interface
Maintenance actively maintained — 95 days since the last release
Last repo commit
First released
Downloads 77,172/month — #14,551 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: localstack_twisted-26.4.0-py3-none-any.whl

Programming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Tags

async networking frameworkevent-driven I/O pythontwisted distributionasynchronous networking librarylocalstack twistedreactive programming pythonnetwork protocol implementation
async-networkingevent-driven-iolocalstack-optimized

More Networking packages