网页 综合 更新时间 2026-11-14 16:48:27

Twisted

自动蜘蛛 twistedmatrix.com 正文约 2558 字
Licensed under the open source MIT License
Twisted makes it easy to implement custom network applications. Here's a TCP server that echoes back everything that's written to it:
Learn more about writing servers, writing clients and the core networking libraries, including support for SSL, UDP, scheduled events, unit testing infrastructure, and much more.
Twisted includes an event-driven web server. Here's a sample web application; notice how the resource object persists in memory, rather than being recreated on each request:
Learn more about web application development, templates and Twisted' HTTP client.
Here's a simple publish/subscribe server, where clients see all messages posted by other clients:
You can test this out by opening two terminals and doing telnet localhost 1025 in each, then typing things.
Twisted includes a sophisticated IMAP4 client library.
Give this a try, supplying your IMAP4 username, app password (generate one for gmail, generate one for fastmail), and client endpoint description for your IMAP4 server. You'll see the subject of the first message in your mailbox printed.
See the TwistedMail documentation for more information.
Twisted includes an SSH client & server, "conch" (i.e.: the Twisted Shell).
You can use this client to run "hello world" on any SSH server that your local SSH agent can authenticate to, if you pass your username, host name, and optionally port number on the command line.
Twisted also supports many common network protocols, including SMTP, POP3, IMAP, SSHv2, and DNS.
For more information see our documentation and API reference.
Get in touch with the Twisted community through email, Stack Overflow or Gitter / IRC.
Learn about the Twisted development process and how to contribute.
Help improve Twisted on Windows!
Read about software using Twisted and their success stories.
Learn about the individuals and organisations that sponsor Twisted development.
Find out what Twisted Matrix Laboratories is.
See the code for Twisted (and more) on GitHub.
It supports CPython 3.7+ and PyPy3.
Twisted 20.3.0 was the last version with Python 2.7 and PyPy2 support.
Financial support can be provided for the Twisted project via the Python Software Foundation or via GitHub Sponsors !
For donations greater than $400 per month, we will display your logo at the top of the page. For donations greater than $200 per month, we will display your logo on this page. Check GitHub Sponsors for more information about sponsoring perks.
Donations are tax-deductible in USA via the Python Software Foundation.
访问原文 返回搜索 https://twistedmatrix.com/
本页为82搜索生成的网页快照,内容来自站内索引;演示数据的原文链接仅作示例。