--- id: localstack-twisted version: "26.4.0" license: MIT License license_treatment: permissive maintenance: active --- # localstack-twisted — An asynchronous networking framework written in Python License: permissive · Maintenance: active · Downloads: 77.2K/mo ## 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 above — 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 pip install localstack-twisted uv add localstack-twisted 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_current - Install friction: low - Maintenance: active - Downloads: 77.2K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags async networking framework, event-driven I/O python, twisted distribution, asynchronous networking library, localstack twisted, reactive programming python, network protocol implementation, async-networking, event-driven-io, localstack-optimized [View on SkillFed](https://skillfed.io/packages/localstack-twisted) · [View on PyPI](https://pypi.org/project/localstack-twisted/)