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

Contemporary Optical Image Processing with MATLAB
Contemporary Optical Image Processing with MATLAB
This book serves two purposes: first to introduce readers to the concepts of geometrical optics, physical optics and techniques of optical imaging and image processing, and secondly to provide them with experience in modeling the theory and applications using the commonly used software tool MATLAB®. A comprehensively revised...
Handbook of Digital and Multimedia Forensic Evidence
Handbook of Digital and Multimedia Forensic Evidence

In April 2005, I received a telephone call from Humana Press Senior Editor, Harvey Kane, inquiring whether there might be a need for a book to be published concerning the different aspects of computer forensics. During a subsequent meeting to discuss the current state of available texts covering this topic, I noted to Mr. Kane that there were...

What Functional Managers Need to Know About Project Management (The IIL/Wiley Series in Project Management)
What Functional Managers Need to Know About Project Management (The IIL/Wiley Series in Project Management)

Discover how functional managers can apply the Kerzner Approach® to project management

As a functional manager today, you need to become more involved in project management. That doesn't mean you need to become a project manager, but rather you need to know how to perform specific project-related tasks, work with project team...


C++ Programming: From Problem Analysis to Program Design
C++ Programming: From Problem Analysis to Program Design

Now in its fourth edition, C++ Programming: From Problem Analysis to Program Design remains the definitive text for CS1 courses. Best-selling author D.S. Malik employs a student-focused approach, using complete programming examples to teach introductory programming concepts. This fourth edition has been enhanced to further demonstrate the use...

Network Security Auditing (Networking Technology: Security)
Network Security Auditing (Networking Technology: Security)

Mention the word audit to IT professionals and you will probably see their eyes glaze over as they imagine frightening visions of auditors with pointy tails, pitchforks, and checklists run ning around and pointing out all of the things they have done wrong to their manager. The purpose of a security audit is not to place blame or pick...

The Best Damn Cisco Internetworking Book Period
The Best Damn Cisco Internetworking Book Period
Cisco is almost synonymous with networking.There is almost no area of networking in which
Cisco is not a key player, or is not making inroads.You name it Cisco makes it—routers, switches,
firewalls, management software, and so on. It can be quite an undertaking to locate and acquire
all of the information needed to configure,
...
©2019 LearnIT (support@pdfchm.net) - Privacy Policy