Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Python Networking

You're reading from   Learning Python Networking Utilize Python 3 to get network applications up and running quickly and easily

Arrow left icon
Product type Paperback
Published in Jun 2015
Publisher
ISBN-13 9781784396008
Length 320 pages
Edition 1st Edition
Languages
Concepts
Arrow right icon
Toc

Table of Contents (12) Chapters Close

Preface 1. Network Programming and Python 2. HTTP and Working with the Web FREE CHAPTER 3. APIs in Action 4. Engaging with E-mails 5. Interacting with Remote Systems 6. IP and DNS 7. Programming with Sockets 8. Client and Server Applications 9. Applications for the Web A. Working with Wireshark Index

Python and the Web


Using some of the techniques discussed in this book, in particular Chapter 8, Client and Server Applications, it is possible to use Python to write a full web server that handles all four of the steps of handling an HTTP request that we listed in the previous section. There are several actively developed web servers already in existence written in pure Python, including Gunicorn (http://gunicorn.org), and CherryPy (http://www.cherrypy.org). There is even a very basic HTTP server in the standard library http.server module.

Writing a full HTTP server is not a trivial task and a detailed treatment is well beyond the scope of this book. It is also not a very common requirement nowadays, primarily due to the prevalence of excellent web servers that are already ready to deploy. If you do feel the need to have a crack at this challenge though, I would start with looking through the source code of the web servers mentioned earlier, looking in more detail at the frameworks listed...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime