twisted 25.5.0


pip install twisted

  Latest version

Released: Jun 07, 2025


Meta
Author: Twisted Matrix Community
Requires Python: >=3.8.0

Classifiers

Programming Language
  • Python :: 3
  • Python :: 3 :: Only
  • Python :: 3.8
  • Python :: 3.9
  • Python :: 3.10
  • Python :: 3.11
  • Python :: 3.12
  • Python :: 3.13

gitter rtd pypi ci

For information on changes in this release, see the NEWS file.

Sponsors

Twisted is an MIT-licensed open source project with its ongoing development made possible entirely by the support of community and these awesome sponsors. If you’d like to join them, please consider sponsoring Twisted’s development.

Thinkst Canary

SFTPPlus

What is this?

Twisted is a Python event-based framework for internet applications. It includes modules for many different purposes, including the following:

  • twisted.web: HTTP clients and servers, HTML templating, and a WSGI server

  • twisted.conch: SSHv2 and Telnet clients and servers and terminal emulators

  • twisted.words: Clients and servers for IRC, XMPP, and other IM protocols

  • twisted.mail: IMAPv4, POP3, SMTP clients and servers

  • twisted.positioning: Tools for communicating with NMEA-compatible GPS receivers

  • twisted.names: DNS client and tools for making your own DNS servers

  • twisted.trial: A unit testing framework that integrates well with Twisted-based code.

Twisted supports all major system event loops – select (all platforms), poll (most POSIX platforms), epoll (Linux), kqueue (FreeBSD, macOS), IOCP (Windows), and various GUI event loops (GTK+2/3, Qt, wxWidgets). Third-party reactors can plug into Twisted, and provide support for additional event loops.

Installing

To install the latest version of Twisted using pip:

$ pip install twisted

Additional instructions for installing this software are in the installation instructions.

Documentation and Support

Twisted’s documentation is available from the Twisted Matrix Read The Docs website. This documentation contains how-tos, code examples, and an API reference.

Help is also available on the Twisted mailing list.

There is also an IRC channel, #twisted, on the Libera.Chat network. A web client is available at web.libera.chat.

Unit Tests

Twisted has a comprehensive test suite, which can be run by tox:

$ tox -l                       # to view all test environments
$ tox -e nocov                 # to run all the tests without coverage
$ tox -e withcov               # to run all the tests with coverage
$ tox -e alldeps-withcov-posix # install all dependencies, run tests with coverage on POSIX platform

You can test running the test suite under the different reactors with the TWISTED_REACTOR environment variable:

$ env TWISTED_REACTOR=epoll tox -e alldeps-withcov-posix

Some of these tests may fail if you:

  • don’t have the dependencies required for a particular subsystem installed,

  • have a firewall blocking some ports (or things like Multicast, which Linux NAT has shown itself to do), or

  • run them as root.

Static Code Checkers

You can ensure that code complies to Twisted coding standards:

$ tox -e lint   # run pre-commit to check coding stanards
$ tox -e mypy   # run MyPy static type checker to check for type errors

Or, for speed, use pre-commit directly:

$ pipx run pre-commit run

Warranty

THIS SOFTWARE IS PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE USE OF THIS SOFTWARE IS WITH YOU.

IN NO EVENT WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE LIBRARY, BE LIABLE TO YOU FOR ANY DAMAGES, EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

Again, see the included LICENSE file for specific legal details.

25.5.0 Jun 07, 2025
25.5.0rc1 May 25, 2025
24.11.0 Dec 02, 2024
24.11.0rc2 Dec 02, 2024
24.11.0rc1 Nov 22, 2024
24.10.0 Oct 28, 2024
24.10.0rc1 Oct 19, 2024
24.7.0 Aug 10, 2024
24.7.0rc2 Aug 06, 2024
24.7.0rc1 Jul 29, 2024
24.3.0 Mar 01, 2024
24.2.0rc1 Feb 21, 2024
23.10.0 Oct 31, 2023
23.10.0rc1 Oct 24, 2023
23.8.0 Aug 28, 2023
23.8.0rc1 Aug 17, 2023
22.10.0 Oct 31, 2022
22.10.0rc1 Oct 26, 2022
22.8.0 Sep 07, 2022
22.8.0rc1 Aug 28, 2022
22.4.0 Apr 11, 2022
22.4.0rc1 Apr 04, 2022
22.2.0 Mar 03, 2022
22.2.0rc1 Feb 08, 2022
22.1.0 Feb 07, 2022
22.1.0rc1 Jan 26, 2022
21.7.0 Jul 28, 2021
21.7.0rc3 Jul 23, 2021
21.7.0rc2 Jul 20, 2021
21.7.0rc1 Jul 10, 2021
21.2.0 Feb 28, 2021
21.2.0rc1 Feb 15, 2021
20.3.0 Mar 20, 2020
20.3.0rc1 Mar 08, 2020
19.10.0 Nov 11, 2019
19.10.0rc1 Oct 14, 2019
19.7.0 Aug 06, 2019
19.7.0rc1 Jul 21, 2019
19.2.1 Jun 06, 2019
19.2.0 Apr 10, 2019
19.2.0rc2 Mar 27, 2019
19.2.0rc1 Feb 24, 2019
18.9.0 Oct 15, 2018
18.9.0rc1 Sep 26, 2018
18.7.0 Jul 13, 2018
18.7.0rc2 Jul 05, 2018
18.7.0rc1 Jul 01, 2018
18.4.0 Apr 29, 2018
18.4.0rc1 Mar 31, 2018
17.9.0 Sep 23, 2017
17.9.0rc1 Sep 04, 2017
17.5.0 Jun 11, 2017
17.1.0 Feb 11, 2017
17.1.0rc1 Jan 28, 2017
16.7.0rc2 Jan 12, 2017
16.7.0rc1 Dec 23, 2016
16.6.0 Nov 25, 2016
16.6.0rc1 Nov 10, 2016
16.5.0 Oct 29, 2016
16.5.0rc2 Oct 23, 2016
16.5.0rc1 Oct 10, 2016
16.4.1 Sep 14, 2016
16.4.0 Aug 28, 2016
16.3.2 Aug 19, 2016
16.3.1 Aug 16, 2016
16.3.0 Jul 06, 2016
16.2.0 May 18, 2016
16.1.1 Apr 11, 2016
16.1.0 Apr 04, 2016
16.0.0 Mar 15, 2016
15.5.0 Nov 29, 2015
15.4.0 Sep 04, 2015
15.3.0 Aug 04, 2015
15.2.1 May 24, 2015
15.2.0 May 19, 2015
15.1.0 Apr 13, 2015
15.0.0 Jan 30, 2015
14.0.2 Sep 18, 2014
14.0.1 Sep 17, 2014
14.0.0 May 12, 2014
13.2.0 Nov 08, 2013
13.1.0 Nov 08, 2013
13.0.0 Apr 03, 2013
12.3.0 Dec 26, 2012
12.2.0 Sep 01, 2012
12.1.0 Jun 05, 2012
12.0.0 Feb 11, 2012
11.1.0 Nov 17, 2011
11.0.0 Apr 03, 2011
10.2.0 Nov 30, 2010
10.1.0 Jul 04, 2010
10.0.0 Mar 05, 2010
9.0.0 Mar 05, 2010
2.1.0 Oct 11, 2005
15.4.0.win32 Sep 04, 2015
15.4.0.win Sep 04, 2015
15.3.0.win32 Aug 04, 2015
15.3.0.win Aug 04, 2015
15.2.1.win32 May 24, 2015
15.2.1.win May 24, 2015
15.2.0.win32 May 19, 2015
15.2.0.win May 19, 2015
15.1.0.win32 Apr 13, 2015
15.1.0.win Apr 13, 2015
15.0.0.win32 Jan 30, 2015
15.0.0.win Jan 30, 2015
14.0.2.win32 Sep 18, 2014
14.0.2.win Sep 18, 2014
14.0.1.win Sep 17, 2014
14.0.0.win32 May 12, 2014
14.0.0.win May 12, 2014
13.2.0.win32 Nov 08, 2013
13.1.0.win32 Nov 08, 2013
13.0.0.win32 Apr 03, 2013
12.3.0.win32 Dec 26, 2012
12.2.0.win32 Sep 01, 2012
12.2.0.win Sep 01, 2012
12.1.0.win32 Jun 05, 2012
12.1.0.win Jun 05, 2012
12.0.0.win32 Feb 11, 2012
12.0.0.win Feb 11, 2012
11.1.0.win32 Nov 17, 2011
11.0.0.winxp32 Apr 03, 2011
10.2.0.winxp32 Nov 30, 2010
10.1.0.winxp32 Jul 04, 2010

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras:
Dependencies:
attrs (>=22.2.0)
automat (>=24.8.0)
constantly (>=15.1)
hyperlink (>=17.1.1)
incremental (>=24.7.0)
typing-extensions (>=4.2.0)
zope-interface (>=5)