localstack-twisted
An asynchronous networking framework written in Python
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-twisteduv
uv add localstack-twistedpoetry
poetry add localstack-twistedInstalling 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
Tags
More Networking packages
h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
psutilpsutil retrieves real-time information about…
permissive · top 1,000 on PyPI
pyOpenSSLpyOpenSSL wraps OpenSSL's SSL/TLS functionality…
permissive · top 1,000 on PyPI
uvloopuvloop is a drop-in replacement for Python's…
permissive · top 1,000 on PyPI
execnetexecnet lets you spawn and communicate with…
permissive · top 1,000 on PyPI
pyzmqPyZMQ provides Python bindings for ZeroMQ…
permissive · top 1,000 on PyPI
TwistedTwisted is an event-driven networking framework…
permissive · top 5,000 on PyPI
txaiotxaio provides a compatibility layer that lets…
permissive · top 5,000 on PyPI
terraform-localA wrapper script that runs Terraform against…
permissive · top 15,000 on PyPI
treqtreq is a high-level HTTP client library for…
permissive · top 15,000 on PyPI
tornadoTornado is a Python web framework and…
permissive · top 1,000 on PyPI
localstackLocalStack is a command-line tool that emulates…
permissive · top 15,000 on PyPI
pytest-twistedA pytest plugin that enables testing of…
permissive · top 15,000 on PyPI
localstack-clientA Python client that wraps boto3 to redirect…
permissive · top 5,000 on PyPI
pulumi-localA command-line wrapper that adapts Pulumi…
permissive · top 15,000 on PyPI
anyioAnyIO provides a unified asynchronous API that…
permissive · top 100 on PyPI