Twisted Network Programming Essentials
Event-driven network programming with Python
Paperback Engels 2013 2e druk 9781449326111Samenvatting
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
Specificaties
Lezersrecensies
Inhoudsopgave
Preface
Part 1: An Introduction to Twisted
1. Getting Started
-Installing Twisted
-Installing from Source
-Testing Your Installation
-Using the Twisted Documentation
-Finding Answers to Your Questions
2. Building Basic Clients and Servers
-A TCP Echo Server and Client
-Event-Driven Programming
-The Reactor
-Transports
-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 Don't Do
-The Structure of a Deferred Object
-Callback Chains and Using Deferreds in the Reactor
-Practice: What Do These Deferred Chains Do?
-The Truth About addCallbacks
-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
-Handling GET Requests
-Handling POST Requests
-Asynchronous Responses
-More Practice and Next Steps
5. Web Clients
-Basic HTTP Resource Retrieval
-Agent
-More Practice and Next Steps
Part 2: Building Production-Grade Twisted Services
6. Deploying Twisted Applications
-The Twisted Application Infrastructure
-More twistd Examples
-More Practice and Next Steps
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
-More Practice and Next Steps
11. Testing
-Writing and Running Twisted Unit Tests with Trial
-Testing Protocols
-Tests and the Reactor
-More Practice and Next Steps
Part 3: More Protocols and More Practice
12. Twisted Words
-IRC Clients
-IRC Servers
-More Practice and Next Steps
13. Twisted Mail
-SMTP Clients and Servers
-IMAP Clients and Servers
-POP3 Clients and Servers
-More Practice and Next Steps
14. SSH
-SSH Servers
-Using Public Keys for Authentication
-Providing an Administrative Python Shell
-Running Commands on a Remote Server
-More Practice and Next Steps
15. The End
-Contributing to Twisted
Index
Anderen die dit boek kochten, kochten ook
Rubrieken
- advisering
- algemeen management
- coaching en trainen
- communicatie en media
- economie
- financieel management
- inkoop en logistiek
- internet en social media
- it-management / ict
- juridisch
- leiderschap
- marketing
- mens en maatschappij
- non-profit
- ondernemen
- organisatiekunde
- personal finance
- personeelsmanagement
- persoonlijke effectiviteit
- projectmanagement
- psychologie
- reclame en verkoop
- strategisch management
- verandermanagement
- werk en loopbaan