ฉันแนะนำ: Twisted ( http://twistedmatrix.com )
  เอ็นจิ้นเครือข่ายที่ขับเคลื่อนด้วยเหตุการณ์ที่เขียนใน Python และได้รับลิขสิทธิ์ภายใต้ใบอนุญาต MIT โอเพ่นซอร์ส
เป็น cross-platform และติดตั้งไว้แล้วใน OS X 10.5 ถึง 10.12 ท่ามกลางสิ่งอื่น ๆ คุณสามารถเริ่มต้นเว็บเซิร์ฟเวอร์แบบง่าย ๆ ในไดเรกทอรีปัจจุบันด้วย:
twistd -no web --path=.
รายละเอียด
คำอธิบายของตัวเลือก (ดูtwistd --helpเพิ่มเติม):
-n, --nodaemon       don't daemonize, don't use default umask of 0077
-o, --no_save        do not save state on shutdown
"web" เป็นคำสั่งที่ใช้งานเว็บเซิร์ฟเวอร์อย่างง่าย ๆ บนเอ็นจิ้น Twisted async นอกจากนี้ยังยอมรับตัวเลือกบรรทัดคำสั่ง (หลังจากคำสั่ง "เว็บ" - ดูtwistd web --helpเพิ่มเติม):
  --path=             <path> is either a specific file or a directory to be
                      set as the root of the web server. Use this if you
                      have a directory full of HTML, cgi, php3, epy, or rpy
                      files or any other files that you want to be served up
                      raw.
นอกจากนี้ยังมีคำสั่งอื่น ๆ อีกมากมายเช่น:
conch            A Conch SSH service.
dns              A domain name server.
ftp              An FTP server.
inetd            An inetd(8) replacement.
mail             An email service
... etc
การติดตั้ง
อูบุนตู
sudo apt-get install python-twisted-web (or python-twisted for the full engine)
Mac OS-X (ติดตั้งล่วงหน้าใน 10.5 - 10.12 หรือมีให้ใน MacPorts และผ่าน Pip)
sudo port install py-twisted
ของ windows
installer available for download at http://twistedmatrix.com/
HTTPS
Twisted ยังสามารถใช้ใบรับรองความปลอดภัยเพื่อเข้ารหัสการเชื่อมต่อ ใช้สิ่งนี้กับตัวเลือกที่มีอยู่--pathและ--port(สำหรับ HTTP ธรรมดา) ของคุณ
twistd -no web -c cert.pem -k privkey.pem --https=4433