▶Book Description
The Python 3 Standard Library is a vast array of modules that you can use for developing various kinds of applications. It contains an exhaustive list of libraries, and this book will help you choose the best one to address specific programming problems in Python.
The Modern Python Standard Library Cookbook begins with recipes on containers and data structures and guides you in performing effective text management in Python. You will find Python recipes for command-line operations, networking, filesystems and directories, and concurrent execution. You will learn about Python security essentials in Python and get to grips with various development tools for debugging, benchmarking, inspection, error reporting, and tracing. The book includes recipes to help you create graphical user interfaces for your application. You will learn to work with multimedia components and perform mathematical operations on date and time. The recipes will also show you how to deploy different searching and sorting algorithms on your data.
By the end of the book, you will have acquired the skills needed to write clean code in Python and develop applications that meet your needs.
▶What You Will Learn
⦁ Store multiple values per key in associative containers
⦁ Create interactive character-based user interfaces
⦁ Work with native time and display data for your time zone
⦁ Read/write SGML family languages, both as a SAX and DOM parser to meet file sizes and other requirements
⦁ Group equivalent items using itertools and sorted features together
⦁ Use partials to create unary functions out of multi-argument functions
⦁ Implement hashing algorithms to store passwords in a safe way
▶Key Features
⦁ Strategic recipes for effective application development in Python
⦁ Techniques to create GUIs and implement security through cryptography
⦁ Best practices for developing readily scalable, production-ready applications
▶Who This Book Is For
This book is well suited for developers who want to write expressive, highly responsive, manageable, scalable, and resilient code in Python. Prior programming knowledge of Python is expected.
▶What this book covers
⦁ Chapter 1, Containers and Data Structures, covers less obvious cases of data structures and containers provided by the standard library. While more basic containers such as list and dict are taken for granted, the chapter will dive into less common containers and more advanced usages of the built-in containers.
⦁ Chapter 2, Text Management, covers text manipulation, string comparison, matching, and the most common needs when formatting output for text-based software.
⦁ Chapter 3, Command Line, covers how to write terminal/shell based software, parsing arguments, writing interactive shells, and implement logging.
⦁ Chapter 4, Filesystem and Directories, covers how to work with directories and files, traverse file systems and work with multiple encoding types related to file systems and file names.
⦁ Chapter 5, Date and Time, covers how to parse dates and times, format them, and apply math over dates to compute past and future dates.
⦁ Chapter 6, Read/Write Data, covers how to read and write data in common file formats, such as CSV, XML, and ZIP, and how to properly manage encoding text files.
⦁ Chapter 7, Algorithms, covers some of the most common algorithms for sorting, searching, and zipping, and common operations that you might have to apply on any kind of sets of data.
⦁ Chapter 8, Cryptography, covers security-related functions that are provided by the standard library or that can be implemented with the hashing functions available in the standard library.
⦁ Chapter 9, Concurrency, covers the various concurrency models provided by the standard library, such as threads, processes, and coroutines, with a specific focus on the orchestration of those executors.
⦁ Chapter 10, Networking, covers features provided by the standard library to implement networking-based applications, how to read from some common protocols, such as FTP and IMAP, and how to implement general-purpose TCP/IP applications.
⦁ Chapter 11, Web Development, covers how to implement HTTP-based applications, simple HTTP servers, and fully-featured web applications. It will also cover how to interact with third-party software through HTTP.
⦁ Chapter 12, Multimedia, covers basic operations on detecting file types, checking images, and generating sounds.
⦁ Chapter 13, Graphical User Interfaces, covers the most common building blocks of UI-based applications that can be combined to create simple applications for desktop environments.
⦁ Chapter 14, Development Tools, covers tools provided by the standard library to help developers in their everyday work, such as writing tests and debugging software.