Atjaunināt sīkdatņu piekrišanu

E-grāmata: Twisted Network Programming Essentials: Event-driven Network Programming with Python

3.20/5 (115 ratings by Goodreads)
  • Formāts: 194 pages
  • Izdošanas datums: 12-Mar-2013
  • Izdevniecība: O'Reilly Media
  • Valoda: eng
  • ISBN-13: 9781449326074
Citas grāmatas par šo tēmu:
  • Formāts - EPUB+DRM
  • Cena: 30,42 €*
  • * ši ir gala cena, t.i., netiek piemērotas nekādas papildus atlaides
  • Ielikt grozā
  • Pievienot vēlmju sarakstam
  • Šī e-grāmata paredzēta tikai personīgai lietošanai. E-grāmatas nav iespējams atgriezt un nauda par iegādātajām e-grāmatām netiek atmaksāta.
  • Formāts: 194 pages
  • Izdošanas datums: 12-Mar-2013
  • Izdevniecība: O'Reilly Media
  • Valoda: eng
  • ISBN-13: 9781449326074
Citas grāmatas par šo tēmu:

DRM restrictions

  • Kopēšana (kopēt/ievietot):

    nav atļauts

  • Drukāšana:

    nav atļauts

  • Lietošana:

    Digitālo tiesību pārvaldība (Digital Rights Management (DRM))
    Izdevējs ir piegādājis šo grāmatu šifrētā veidā, kas nozīmē, ka jums ir jāinstalē bezmaksas programmatūra, lai to atbloķētu un lasītu. Lai lasītu šo e-grāmatu, jums ir jāizveido Adobe ID. Vairāk informācijas šeit. E-grāmatu var lasīt un lejupielādēt līdz 6 ierīcēm (vienam lietotājam ar vienu un to pašu Adobe ID).

    Nepieciešamā programmatūra
    Lai lasītu šo e-grāmatu mobilajā ierīcē (tālrunī vai planšetdatorā), jums būs jāinstalē šī bezmaksas lietotne: PocketBook Reader (iOS / Android)

    Lai lejupielādētu un lasītu šo e-grāmatu datorā vai Mac datorā, jums ir nepieciešamid Adobe Digital Editions (šī ir bezmaksas lietotne, kas īpaši izstrādāta e-grāmatām. Tā nav tas pats, kas Adobe Reader, kas, iespējams, jau ir jūsu datorā.)

    Jūs nevarat lasīt šo e-grāmatu, izmantojot Amazon Kindle.

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
Foreword to the First Edition ix
Preface xiii
Part I An Introduction to Twisted
1 Getting Started
3(8)
Installing Twisted
3(2)
Installation on Linux
3(1)
Installation on Windows
4(1)
Installation on OS X
5(1)
Installing from Source
5(2)
Required Dependencies
5(1)
Installing Twisted from a Release Tarball
6(1)
Installing Twisted from a Source Checkout
6(1)
Installing Optional Dependencies from Source
6(1)
Testing Your Installation
7(1)
Using the Twisted Documentation
8(1)
API Documentation
8(1)
Subproject Documentation
8(1)
Finding Answers to Your Questions
9(2)
Mailing Lists
9(1)
IRC Channels
9(1)
Stack Overflow
9(1)
Twisted Blogs
9(2)
2 Building Basic Clients and Servers
11(14)
A TCP Echo Server and Client
11(1)
Event-Driven Programming
12(2)
The Reactor
14(1)
Transports
14(1)
Protocols
15(1)
Protocol Factories
16(1)
Decoupling Transports and Protocols
16(1)
A TCP Quote Server and Client
16(3)
Protocol State Machines
19(3)
More Practice and Next Steps
22(3)
3 Writing Asynchronous Code with Deferreds
25(14)
What Deferreds Do and Don't Do
25(1)
The Structure of a Deferred Object
26(2)
Callback Chains and Using Deferreds in the Reactor
28(2)
Practice: What Do These Deferred Chains Do?
30(3)
Exercise 1
31(1)
Exercise 2
31(1)
Exercise 3
31(1)
Exercise 4
32(1)
Exercise 5
32(1)
Exercise 6
33(1)
The Truth About addCallbacks
33(2)
Exercise 7
34(1)
Exercise 8
35(1)
Key Facts About Deferreds
35(1)
Summary of the Deferred API
36(1)
More Practice and Next Steps
36(3)
4 Web Servers
39(14)
Responding to HTTP Requests: A Low-Level Review
39(4)
The Structure of an HTTP Request
40(2)
Parsing HTTP Requests
42(1)
Handling GET Requests
43(5)
Serving Static Content
43(2)
Serving Dynamic Content
45(1)
Dynamic Dispatch
46(2)
Handling POST Requests
48(1)
A Minimal POST Example
48(1)
Asynchronous Responses
49(2)
More Practice and Next Steps
51(2)
5 Web Clients
53(10)
Basic HTTP Resource Retrieval
53(2)
Printing a Web Resource
53(1)
Downloading a Web Resource
54(1)
Agent
55(5)
Requesting Resources with Agent
55(2)
Retrieving Response Metadata
57(1)
POSTing Data with Agent
58(2)
More Practice and Next Steps
60(3)
Part II Building Production-Grade Twisted Services
6 Deploying Twisted Applications
63(8)
The Twisted Application Infrastructure
63(5)
Services
64(1)
Applications
64(1)
TAC Files
64(1)
twistd
65(1)
Plugins
66(2)
More twistd Examples
68(1)
More Practice and Next Steps
68(3)
Suggested Exercises
69(2)
7 Logging
71(6)
Basic In-Application Logging
71(2)
Twistd Logging
73(1)
Custom Loggers
73(2)
Key Facts and Caveats About Logging
75(2)
8 Databases
77(4)
Nonblocking Database Queries
77(3)
More Practice and Next Steps
80(1)
9 Authentication
81(12)
The Components of Twisted Cred
81(1)
Twisted Cred: An Example
82(4)
Credentials Checkers
86(3)
Authentication in Twisted Applications
89(2)
More Practice and Next Steps
91(2)
10 Threads and Subprocesses
93(10)
Threads
93(3)
Subprocesses
96(4)
Running a Subprocess and Getting the Result
96(1)
Custom Process Protocols
97(3)
More Practice and Next Steps
100(3)
11 Testing
103(16)
Writing and Running Twisted Unit Tests with Trial
103(1)
Testing Protocols
104(4)
Tests and the Reactor
108(7)
Testing Deferreds
109(3)
Testing the Passage of Time
112(3)
More Practice and Next Steps
115(4)
Part III More Protocols and More Practice
12 Twisted Words
119(6)
IRC Clients
119(2)
IRC Servers
121(3)
More Practice and Next Steps
124(1)
13 Twisted Mail
125(20)
SMTP Clients and Servers
126(6)
The SMTP Protocol
126(1)
Sending Emails Using SMTP
127(1)
SMTP Servers
128(2)
Storing Mail
130(2)
IMAP Clients and Servers
132(7)
IMAP Servers
133(4)
IMAP Clients
137(2)
POP3 Clients and Servers
139(4)
POP3 Servers
139(4)
More Practice and Next Steps
143(2)
14 SSH
145(16)
SSH Servers
145(6)
A Basic SSH Server
145(6)
Using Public Keys for Authentication
151(2)
Providing an Administrative Python Shell
153(3)
Running Commands on a Remote Server
156(3)
SSH Clients
156(3)
More Practice and Next Steps
159(2)
15 The End
161
Jessica McKellar is a software engineer from Cambridge, MA. She enjoys the Internet, networking, low-level systems engineering, and contributing to and helping other people contribute to open source software. She is a Twisted maintainer, organizer for the Boston Python user group, and a local STEM volunteer. Abe Fettig is a software developer and maintainer of Hep, an open source message server that makes it possible to transparently route information between RSS, email, weblogs, and web services. He speaks frequently at software conferences including PyCon and lives in Portland, Maine with his wife, Hannah.