Twisted Network Programming Essentials. 2nd Edition - Helion
ISBN: 978-14-493-2607-4
stron: 194, Format: ebook
Data wydania: 2013-03-12
Księgarnia: Helion
Cena książki: 126,65 zł (poprzednio: 147,27 zł)
Oszczędzasz: 14% (-20,62 zł)
Get started with Twisted, the event-driven networking framework written in Python. With this introductory guide, you’ll learn the key concepts and design patterns to build event-driven client and server applications for many popular networking protocols. You’ll also learn the tools to build new protocols using Twisted’s primitives.
Start by building basic TCP clients and servers, and then focus on deploying production-grade applications with the Twisted Application infrastructure. Along the way, you can play with and extend examples of common tasks you’ll face when building network applications. If you’re familiar with Python, you’re ready for Twisted.
- Learn the core components of Twisted servers and clients
- Write asynchronous code with the Deferred API
- Construct HTTP servers with Twisted’s high-level web APIs
- Use the Agent API to develop flexible web clients
- Configure and deploy Twisted services in a robust and standardized fashion
- Access databases using Twisted’s nonblocking interface
- Add common server components: logging, authentication, threads and processes, and testing
- Explore ways to build clients and servers for IRC, popular mail protocols, and SSH
Osoby które kupowały "Twisted Network Programming Essentials. 2nd Edition", wybierały także:
- Cisco CCNA 200-301. Kurs video. Podstawy sieci komputerowych i konfiguracji. Część 1 790,00 zł, (237,00 zł -70%)
- Sieci komputerowe. Najczęstsze problemy i ich rozwiązania 119,00 zł, (59,50 zł -50%)
- Praktyczne projekty sieciowe 69,00 zł, (34,50 zł -50%)
- Sieci komputerowe. Kurs. Wydanie II 44,90 zł, (22,45 zł -50%)
- Active Directory w systemach wolnego oprogramowania 44,90 zł, (22,45 zł -50%)
Spis treści
Twisted Network Programming Essentials. Event-driven Network Programming with Python. 2nd Edition eBook -- spis treści
- Twisted Network Programming Essentials
- Foreword to the First Edition
- Preface
- Why Use Twisted?
- What This Book Covers
- Conventions Used in This Book
- What Youll Need
- Changes Since the Previous Edition
- Using Code Examples
- Safari Books Online
- How to Contact Us
- Acknowledgments
- I. An Introduction to Twisted
- 1. Getting Started
- Installing Twisted
- Installation on Linux
- More package options and optional dependencies
- Installation on Windows
- Optional dependencies
- Adding Twisted utilities to your PATH
- Installation on OS X
- Optional dependencies
- Installation on Linux
- Installing from Source
- Required Dependencies
- Installing a C compiler
- Installing zope.interface
- Installing Twisted from a Release Tarball
- Installing Twisted from a Source Checkout
- Installing Optional Dependencies from Source
- Required Dependencies
- Testing Your Installation
- Using the Twisted Documentation
- API Documentation
- Subproject Documentation
- Finding Answers to Your Questions
- Mailing Lists
- IRC Channels
- Stack Overflow
- Twisted Blogs
- Installing Twisted
- 2. Building Basic Clients and Servers
- A TCP Echo Server and Client
- Event-Driven Programming
- The Reactor
- Transports
- Protocols
- Protocol Factories
- Decoupling Transports and Protocols
- A TCP Quote Server and Client
- Protocol State Machines
- More Practice and Next Steps
- 3. Writing Asynchronous Code with Deferreds
- What Deferreds Do and Dont Do
- The Structure of a Deferred Object
- Callback Chains and Using Deferreds in the Reactor
- Practice: What Do These Deferred Chains Do?
- Exercise 1
- Exercise 2
- Exercise 3
- Exercise 4
- Exercise 5
- Exercise 6
- The Truth About addCallbacks
- Exercise 7
- Exercise 8
- Key Facts About Deferreds
- Summary of the Deferred API
- More Practice and Next Steps
- 4. Web Servers
- Responding to HTTP Requests: A Low-Level Review
- The Structure of an HTTP Request
- Parsing HTTP Requests
- Handling GET Requests
- Serving Static Content
- Static URL dispatch
- Serving Dynamic Content
- Dynamic Dispatch
- Creating resources that are both renderable and have children
- Redirects
- Serving Static Content
- Handling POST Requests
- A Minimal POST Example
- Asynchronous Responses
- More Practice and Next Steps
- Responding to HTTP Requests: A Low-Level Review
- 5. Web Clients
- Basic HTTP Resource Retrieval
- Printing a Web Resource
- Downloading a Web Resource
- Agent
- Requesting Resources with Agent
- Retrieving Response Metadata
- POSTing Data with Agent
- More Practice and Next Steps
- Basic HTTP Resource Retrieval
- 1. Getting Started
- II. Building Production-Grade Twisted Services
- 6. Deploying Twisted Applications
- The Twisted Application Infrastructure
- Services
- Applications
- TAC Files
- twistd
- Plugins
- More twistd Examples
- More Practice and Next Steps
- Suggested Exercises
- The Twisted Application Infrastructure
- 7. Logging
- Basic In-Application Logging
- twistd Logging
- Custom Loggers
- Key Facts and Caveats About Logging
- 8. Databases
- Nonblocking Database Queries
- More Practice and Next Steps
- 9. Authentication
- The Components of Twisted Cred
- Twisted Cred: An Example
- Credentials Checkers
- Authentication in Twisted Applications
- More Practice and Next Steps
- 10. Threads and Subprocesses
- Threads
- Subprocesses
- Running a Subprocess and Getting the Result
- Custom Process Protocols
- More Practice and Next Steps
- 11. Testing
- Writing and Running Twisted Unit Tests with Trial
- Testing Protocols
- Tests and the Reactor
- Testing Deferreds
- Testing the Passage of Time
- More Practice and Next Steps
- 6. Deploying Twisted Applications
- III. More Protocols and More Practice
- 12. Twisted Words
- IRC Clients
- IRC Servers
- More Practice and Next Steps
- 13. Twisted Mail
- SMTP Clients and Servers
- The SMTP Protocol
- Sending Emails Using SMTP
- SMTP Servers
- Storing Mail
- IMAP Clients and Servers
- IMAP Servers
- IMAP Clients
- POP3 Clients and Servers
- POP3 Servers
- More Practice and Next Steps
- SMTP Clients and Servers
- 14. SSH
- SSH Servers
- A Basic SSH Server
- Using Public Keys for Authentication
- Providing an Administrative Python Shell
- Running Commands on a Remote Server
- SSH Clients
- More Practice and Next Steps
- SSH Servers
- 15. The End
- Contributing to Twisted
- 12. Twisted Words
- Index
- About the Authors
- Colophon
- Copyright