The Python Standard Library by Example

“Hellmann’s writing has become an indispensable resource for me and many others as it fills a critical gap in Python Documentation with examples.”
— Jesse Noller, Python Core Developer and PSF Board Member

Master the Powerful Python Standard Library through Real Code Examples

The Python Standard Library contains hundreds of modules for interacting with the operating system, interpreter, and Internet—all 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.

You’ll 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:

  • Manipulating text with string, textwrap, re, and difflib
  • Implementing data structures: collections, array, queue, struct, copy, and more
  • Reading, writing, and manipulating files and directories
  • Regular expression pattern matching
  • Exchanging data and providing for persistence Archiving and data compression
  • Managing processes and threads
  • Using application “building blocks”: parsing command-line options, prompting for passwords, scheduling events, and logging
  • Testing, debugging, and compilation
  • Controlling runtime configuration
  • Using module and package utilities

If you’re new to Python, this book will quickly give you access to a whole new world of functionality. If you’ve worked with Python before, you’ll discover new, powerful solutions and better ways to use the modules you’ve already tried.

Table of Contents
Chapter 1. Text
Chapter 2. Data Structures
Chapter 3. Algorithms
Chapter 4. Dates and Times
Chapter 5. Mathematics
Chapter 6. The File System
Chapter 7. Data Persistence and Exchange
Chapter 8. Data Compression and Archiving
Chapter 9. Cryptography
Chapter 10. Processes and Threads
Chapter 11. Networking
Chapter 12. The Internet
Chapter 13. Email
Chapter 14. Application Building Blocks
Chapter 15. Internationalization and Localization
Chapter 16. Developer Tools
Chapter 17. Runtime Features
Chapter 18. Language Tools
Chapter 19. Modules and Packages

Book Details

  • Paperback: 1344 pages
  • Publisher: Addison-Wesley Professional (June 2011)
  • Language: English
  • ISBN-10: 0321767349
  • ISBN-13: 978-0321767349
Download [7.8 MiB]

You may also like...

No Responses

  1. hamid says:

    so damn informative book. thanks 😀
    But it seems this is not the right font.

Leave a Reply