Home | Amazing | Today | Tags | Publishers | Years | Account | Search 
Mastering Object-oriented Python

Buy

For those who know the basics of object-oriented Python this book is a must-have. With 750 code samples and a relaxed tutorial approach, it’s the seamless route to more sophisticated programming.

Overview

  • Create applications with flexible logging, powerful configuration and command-line options, automated unit tests, and good documentation.
  • Use the Python special methods to integrate seamlessly with built-in features and the standard library
  • Design classes to support object persistence in JSON, YAML, Pickle, CSV, XML, Shelve, and SQL

In Detail

This practical example-oriented guide will teach you advanced concepts of object-oriented programming in Python. This book will present detailed examples of almost all of the special method names that support creating classes that integrate seamlessly with Python's built-in features. It will show you how to use JSON, YAML, Pickle, CSV, XML, Shelve, and SQL to create persistent objects and transmit objects between processes. The book also covers logging, warnings, unit testing, configuration files, and how to work with the command line.

This book is broken into three major parts: Pythonic Classes via Special Methods; Persistence and Serialization; Testing, Debugging, Deploying, and Maintaining. The special methods are broken down into several focus areas: initialization, basics, attribute access, callables, contexts, containers, collections, numbers, and more advanced techniques such as decorators and mixin classes.

What you will learn from this book

  • Understand the different design patterns for the __init__() method
  • Discover the essential features of Python 3's abstract base classes and how you can use them for your own applications
  • Design callable objects and context managers that leverage the with statement
  • Perform object serialization in formats such as JSON, YAML, Pickle, CSV, and XML
  • Employ the Shelve module as a sophisticated local database
  • Map Python objects to a SQL database using the built-in SQLite module
  • Transmit Python objects via RESTful web services
  • Devise strategies for automated unit testing, including how to use the doctest and the unittest.mock module
  • Parse command-line arguments and integrate this with configuration files and environment variables

Approach

This book follows a standard tutorial approach with approximately 750 code samples spread through the 19 chapters. This amounts to over 5,900 lines of code that illustrate each concept.

(HTML tags aren't allowed.)

Ghost Wars: The Secret History of the CIA, Afghanistan, and Bin Laden, from the Soviet Invasion to September 10, 2001 (Penguin Books)
Ghost Wars: The Secret History of the CIA, Afghanistan, and Bin Laden, from the Soviet Invasion to September 10, 2001 (Penguin Books)
Winner of the 2005 Pulitzer Prize

The explosive first-hand account of America's secret history in Afghanistan


With the publication of Ghost Wars, Steve Coll became not only a Pulitzer Prize winner, but also the expert on the rise of the Taliban, the emergence of Bin Laden, and the secret
...
Brainware : Bio-Inspired Architecture and Its Hardware Implementation
Brainware : Bio-Inspired Architecture and Its Hardware Implementation

The human brain, the ultimate intelligent processor, can handle ambiguous and uncertain information adequately. The implementation of such a human-brain architecture and function is called "brainware". Brainware is a candidate for the new tool that will realize a human-friendly computer society. As one of the LSI implementations of...

Pro iOS Persistence: Using Core Data
Pro iOS Persistence: Using Core Data

Pro iOS Persistence explains how to build apps in Objective-C and Swift that persist and use data most effectively including the popular Core Data framework. Covering common and advanced persistence patterns, this book prepares any iOS developer to store and retrieve data accurately and efficiently.

This...


Big Data Bootcamp: What Managers Need to Know to Profit from the Big Data Revolution
Big Data Bootcamp: What Managers Need to Know to Profit from the Big Data Revolution
 

Investors and technology gurus have called big data one of the most important trends to come along in decades. Big Data Bootcamp explains what big data is and how you can use it in your company to become one of tomorrow’s market leaders. Along the way, it explains the very latest...

Essential Anesthesia: From Science to Practice (Cambridge Medicine)
Essential Anesthesia: From Science to Practice (Cambridge Medicine)

Essential Anesthesia is a concise, accessible introduction to anesthetic practice. Now in its second edition, it provides a thorough overview of the science and practice of anesthesia. Part I describes the evaluation of the patient, the different approaches to anesthesia, and the post-operative care of the patient in pain. Part II introduces...

Modeling and Computation in Engineering II
Modeling and Computation in Engineering II

Modeling and Computation in Engineering II (CMCE 2013, Hong Kong, 22-23 June 2013) includes 50 contributions on modeling and simulation technology, which were presented at the 2nd SREE Conference on Modeling and Computation in Engineering (CMCE 2013) and the 3rd SREE Workshop on Applied Mechanics and Civil Engineering...

©2021 LearnIT (support@pdfchm.net) - Privacy Policy