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


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.


  • 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


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.)

Guide to Elliptic Curve Cryptography (Springer Professional Computing)
Guide to Elliptic Curve Cryptography (Springer Professional Computing)
The study of elliptic curves by algebraists, algebraic geometers and number theorists
dates back to the middle of the nineteenth century. There now exists an extensive literature
that describes the beautiful and elegant properties of these marvelous objects. In
1984, Hendrik Lenstra described an ingenious algorithm for factoring
Implicit Objects Computer Graphics
Implicit Objects Computer Graphics
Implicit definition and description of geometric objects and surfaces plays a critical role in the appearance and manipulation of computer graphics. In addition, the mathematical definition of shapes, using an implicit form, has pivotal applications for geometric modeling, visualization and animation. Until recently, the parametric form has been...
Finite Element Methods for Engineers
Finite Element Methods for Engineers
The advent of high-speed electronic digital computers has given tremendous impetus to all numerical methods for solving engineering problems. Finite element methods form one of the most versatile classes of such methods, and were originally developed in the field of structural analysis. They are, however, equally applicable to continuum mechanics...

SAP Basis Certification Questions: SAP Basis Interview Questions, Answers, and Explanations
SAP Basis Certification Questions: SAP Basis Interview Questions, Answers, and Explanations
The Comprehensive Guide to Screening SAP Basis Candidates Certification Questions, Answers, and Explanations! It' s clear that SAP Basis is one of the most challenging areas in SAP. Finding resources can be difficult. SAP Basis Certification Questions, Answers, and Explanations guides you through your learning process. From helping you to...
Supermanifolds: Theory and Applications
Supermanifolds: Theory and Applications
A book written in a relaxed and friendly manner, that moreover, tries to appeal to both, physicists and mathematicians, by using their specific parlance at various parts. As already said, a concise, but at the same time reasonably complete, exposition of the basics of supermanifold theory. A concise but up-to-date account of some of the main...
The Theory of Everything: The Origin and Fate of the Universe
The Theory of Everything: The Origin and Fate of the Universe

In this series of lectures I shall try to give an outline of what we think is the history of the universe from the big bang to black holes. In the first lecture I shall briefly review past ideas about the universe and how we got to our present picture. One might call this the history of the history of the universe.

In the second...

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