Developer's Library - Hellmann D. - The Python Standard Library by Example [2011, PDF, ENG]

:  1
 

turbanoff

: 16 6

: 97

turbanoff · 09--12 23:44 (13 , . 10--12 11:20)

The Python Standard Library by Example
: 2011
: Doug Hellmann
: Addison Wesley
ISBN: 978-0-321-76734-9
:
: PDF
: (eBook)
:
: 1343
: The Python Standard Library contains hundreds of modules for interacting with the operating system, interpreter, and Internetall extensively tested and ready to jump-start your application development. The Python Standard Library by Example introduces virtually every important area of the Python 2.7 library through concise, stand-alone source code/output examples, designed for easy learning and reuse.
Building on his popular Python Module of the Week blog series, author and Python expert Doug Hellmann focuses on showing not telling. He explains code behavior through downloadable examples that fully demonstrate each feature.
Youll find practical code for working with text, data types, algorithms, math, file systems, networking, the Internet, XML, email, cryptography, concurrency, runtime and language services, and much more. Each section fully covers one module, and links to valuable additional resources, making this book an ideal tutorial and reference. Coverage includes
  1. Manipulating text with string, textwrap, re, and difflib
  2. Implementing data structures: collections, array, queue, struct, copy, and more
  3. Reading, writing, and manipulating files and directories
  4. Regular expression pattern matching
  5. Exchanging data and providing for persistence Archiving and data compression
  6. Managing processes and threads
  7. Using application building blocks: parsing command-line options, prompting for passwords, scheduling events, and logging
  8. Testing, debugging, and compilation
  9. Controlling runtime configuration
  10. Using module and package utilities
If youre new to Python, this book will quickly give you access to a whole new world of functionality. If youve worked with Python before, youll discover new, powerful solutions and better ways to use the modules youve already tried.
Tables xxxi
Foreword xxxiii
Acknowledgments xxxvii
About the Author xxxix
Introduction 1
Chapter 1: Text 3
1.1 stringText Constants and Templates 4
1.2 textwrapFormatting Text Paragraphs 9
1.3 reRegular Expressions 13
1.4 difflibCompare Sequences 61
Chapter 2: Data Structures 69
2.1 collectionsContainer Data Types 70
2.2 arraySequence of Fixed-Type Data 84
2.3 heapqHeap Sort Algorithm 87
2.4 bisectMaintain Lists in Sorted Order 93
2.5 QueueThread-Safe FIFO Implementation 96
2.6 structBinary Data Structures 102
2.7 weakrefImpermanent References to Objects 106
2.8 copyDuplicate Objects 117
2.9 pprintPretty-Print Data Structures 123
Chapter 3: Algorithms 129
3.1 functoolsTools for Manipulating Functions 129
3.2 itertoolsIterator Functions 141
3.3 operatorFunctional Interface to Built-in Operators 153
3.4 contextlibContext Manager Utilities 163
Chapter 4: Dates and Times 173
4.1 timeClock Time 173
4.2 datetimeDate and Time Value Manipulation 180
4.3 calendarWork with Dates 191
Chapter 5: Mathematics 197
5.1 decimalFixed and Floating-Point Math 197
5.2 fractionsRational Numbers 207
5.3 randomPseudorandom Number Generators 211
5.4 mathMathematical Functions 223
Chapter 6: The File System 247
6.1 os.pathPlatform-Independent Manipulation of Filenames 248
6.2 globFilename Pattern Matching 257
6.3 linecacheRead Text Files Efficiently 261
6.4 tempfileTemporary File System Objects 265
6.5 shutilHigh-Level File Operations 271
6.6 mmapMemory-Map Files 279
6.7 codecsString Encoding and Decoding 284
6.8 StringIOText Buffers with a File-like API 314
6.9 fnmatchUNIX-Style Glob Pattern Matching 315
6.10 dircacheCache Directory Listings 319
6.11 filecmpCompare Files 322
Chapter 7: Data Persistence and Exchange 333
7.1 pickleObject Serialization 334
7.2 shelvePersistent Storage of Objects 343
7.3 anydbmDBM-Style Databases 347
7.4 whichdbIdentify DBM-Style Database Formats 350
7.5 sqlite3Embedded Relational Database 351
7.6 xml.etree.ElementTreeXML Manipulation API 387
7.7 csvComma-Separated Value Files 411
Chapter 8: Data Compression and Archiving 421
8.1 zlibGNU zlib Compression 421
8.2 gzipRead and Write GNU Zip Files 430
8.3 bz2bzip2 Compression 436
8.4 tarfileTar Archive Access 448
8.5 zipfileZIP Archive Access 457
Chapter 9: Cryptography 469
9.1 hashlibCryptographic Hashing 469
9.2 hmacCryptographic Message Signing and Verification 473
Chapter 10: Processes and Threads 481
10.1 subprocessSpawning Additional Processes 481
10.2 signalAsynchronous System Events 497
10.3 threadingManage Concurrent Operations 505
10.4 multiprocessingManage Processes like Threads 529
Chapter 11: Networking 561
11.1 socketNetwork Communication 561
11.2 selectWait for I/O Efficiently 594
11.3 SocketServerCreating Network Servers 609
11.4 asyncoreAsynchronous I/O 619
11.5 asynchatAsynchronous Protocol Handler 629
Chapter 12: The Internet 637
12.1 urlparseSplit URLs into Components 638
12.2 BaseHTTPServerBase Classes for Implementing Web Servers 644
12.3 urllibNetwork Resource Access 651
12.4 urllib2Network Resource Access 657
12.5 base64Encode Binary Data with ASCII 670
12.6 robotparserInternet Spider Access Control 674
12.7 CookieHTTP Cookies 677
12.8 uuidUniversally Unique Identifiers 684
12.9 jsonJavaScript Object Notation 690
12.10 xmlrpclibClient Library for XML-RPC 702
12.11 SimpleXMLRPCServerAn XML-RPC Server 714
Chapter 13: Email 727
13.1 smtplibSimple Mail Transfer Protocol Client 727
13.2 smtpdSample Mail Servers 734
13.3 imaplibIMAP4 Client Library 738
13.4 mailboxManipulate Email Archives 758
Chapter 14: Application Building Blocks 769
14.1 getoptCommand-Line Option Parsing 770
14.2 optparseCommand-Line Option Parser 777
14.3 argparseCommand-Line Option and Argument Parsing 795
14.4 readlineThe GNU Readline Library 823
14.5 getpassSecure Password Prompt 836
14.6 cmdLine-Oriented Command Processors 839
14.7 shlexParse Shell-Style Syntaxes 852
14.8 ConfigParserWork with Configuration Files 861
14.9 loggingReport Status, Error, and Informational Messages 878
14.10 fileinputCommand-Line Filter Framework 883
14.11 atexitProgram Shutdown Callbacks 890
14.12 schedTimed Event Scheduler 894
Chapter 15: Internationalization and Localization 899
15.1 gettextMessage Catalogs 899
15.2 localeCultural Localization API 909
Chapter 16: Developer Tools 919
16.1 pydocOnline Help for Modules 920
16.2 doctestTesting through Documentation 921
16.3 unittestAutomated Testing Framework 949
16.4 tracebackExceptions and Stack Traces 958
16.5 cgitbDetailed Traceback Reports 965
16.6 pdbInteractive Debugger 975
16.7 traceFollow Program Flow 1012
16.8 profile and pstatsPerformance Analysis 1022
16.9 timeitTime the Execution of Small Bits of Python Code 1031
16.10 compileallByte-Compile Source Files 1037
16.11 pyclbrClass Browser 1039
Chapter 17: Runtime Features 1045
17.1 siteSite-Wide Configuration 1046
17.2 sysSystem-Specific Configuration 1055
17.3 osPortable Access to Operating System Specific Features 1108
17.4 platformSystem Version Information 1129
17.5 resourceSystem Resource Management 1134
17.6 gcGarbage Collector 1138
17.7 sysconfigInterpreter Compile-Time Configuration 1160
Chapter 18: Language Tools 1169
18.1 warningsNonfatal Alerts 1170
18.2 abcAbstract Base Classes 1178
18.3 disPython Bytecode Disassembler 1186
18.4 inspectInspect Live Objects 1200
18.5 exceptionsBuilt-in Exception Classes 1216
Chapter 19: Modules and Packages 1235
19.1 impPythons Import Mechanism 1235
19.2 zipimportLoad Python Code from ZIP Archives 1240
19.3 pkgutilPackage Utilities 1247
Index of Python Modules 1259
Index 1261
Download
Rutracker.org , -, -
? ( .torrent )
[]  [] 

Phtysio

: 17 5

: 28


Phtysio · 24--14 10:54 ( 2 3 )

, , .
[]  [] 

kenuis

: 13 3

: 46


kenuis · 21--17 16:16 ( 2 7 )


https://www.amazon.com/Python-Standard-Library-Example-Developers/dp/0134291050/r...c27d398fdb9ec9a3
[]  [] 

ArjunNBo

: 15 9

: 456


ArjunNBo · 12--18 22:36 ( 1 2 )

3- python 1- :
The Python 3 Standard Library by Example (Developer's Library) 1st Edition
2- , :
://new.bookzone.com.ua/books/perl_python_ruby/standartnaya_biblioteka_python_3_spravochnik_s_primerami
- .
- 1- (py3) :
://www.allitebooks.com/the-python-3-standard-library-by-example/
[]  [] 

igoryan1991

: 14 5

: 7


igoryan1991 · 12--19 23:35 ( 10 )

ArjunNBo ():
75802483 3- python 1- :
The Python 3 Standard Library by Example (Developer's Library) 1st Edition
2- , :
://new.bookzone.com.ua/books/perl_python_ruby/standartnaya_biblioteka_python_3_spravochnik_s_primerami
- .
- 1- (py3) :
://www.allitebooks.com/the-python-3-standard-library-by-example/
[]  [] 
 
Loading...
Error